github / github/codeql

C++ false positive: return statement requested after a call to a [[noreturn]] function

Aperta
#3,327 1 commento 0 reazioni 1 assegnatario Rivendicata da @dbartol Vedi su GitHub
C++ false-positive good first issue
Lingua principale
CodeQL
Stelle
10.1k
Fork
2.1k
Merge medio
2g 15h
PR unite (30g)
141

Descrizione

### Synopsis

See references below for code.

The macro `ASTERIA_THROW()` [2] expands to a call to `::rocket::sprintf_and_throw<::std::runtime_error>()` [3], which is marked `[[noreturn]]`, so the enclosing function cannot return from this path; a `return` statement is unnecessary.

### References

1. Original alert:
2. `ASTERIA_THROW`:
3. `::rocket::sprintf_and_throw<::std::runtime_error>`:

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.