| GNU C++ Compiler
|
Debugging: Warnings
|
- control reaches end of non-void function '?'
- Function '?' promised to return a value, but there is at least one
way to get through the function without executing a return
statement. Good structured programming style dictates that
each function should have at most 1 return statement, which
should be the very last statement in the function.
- implicit declaration of function `?'
- This is a serious error.
- If this is a library function, make sure you have
#include'd the necessary header file (use the
man command to find out what header file you
need).
- If this is a function you have written yourself,
make sure you have a prototype for it. Also,
check that you've spelled all names the same
way everywhere--function prototypes, calls
and definitions (remember that case matters).
- statement with no effect
- Means just what it says--this statement does absolutely
nothing useful; check to see if you forgot
an
= as part of a compound operator
(+=, -=, etc.)
- suggest parentheses around assignment used as truth
value
- Check for '=' where you really mean to use '=='
(especially in conditional expressions like
if,
while, for, etc.)
- unknown escape sequence `\?'
- Only the following characters may follow a backslash:
0, a, b, n, t, x##, \, ".
Mail me your suggestions!
Back to Debugging Page
Back to GNU C++ Compiler Home Page
Back to my Home Page
Andrews University's Home Page