Main Content
Function not reachable
Function is called from unreachable part of code
Description
This check appears on a function definition. The check appears gray if the function is called only from an unreachable part of the code. The unreachable code can occur in one of the following ways:
The code is reached through a condition that is always false.
The code follows a
break
orreturn
statement.The code follows a red check.
If your code does not contain a main
function,
this check is disabled
Note
This check is not turned on by default. To turn on this check, you must specify
the appropriate analysis option. For more
information, see Detect uncalled
functions (-uncalled-function-checks)
.
Diagnosing This Check
Examples
Check Information
Group: Data flow |
Language: C | C++ |
Acronym: FNR |