diff options
Diffstat (limited to 'gcc/doc/invoke.texi')
-rw-r--r-- | gcc/doc/invoke.texi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index ac0c06c..174bc09 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -8901,7 +8901,7 @@ such as in void f (void); void g (void) @{ - if (!func) // warning: expression evaluates to false + if (!f) // warning: expression evaluates to false abort (); @} @end smallexample @@ -8927,7 +8927,7 @@ weak symbols), so their use in a conditional might indicate missing parentheses in a function call or a missing dereference in an array expression. The subset of the warning for object pointers can be suppressed by casting the pointer operand to an integer type such -as @code{inptr_t} or @code{uinptr_t}. +as @code{intptr_t} or @code{uintptr_t}. Comparisons against string literals result in unspecified behavior and are not portable, and suggest the intent was to call @code{strcmp}. The warning is suppressed if the suspicious expression is the result |