]> gcc.gnu.org Git - gcc.git/commitdiff
doc: Fix up -Waddress documentation
authorJakub Jelinek <jakub@redhat.com>
Thu, 9 Jun 2022 08:19:53 +0000 (10:19 +0200)
committerJakub Jelinek <jakub@redhat.com>
Thu, 9 Jun 2022 08:19:53 +0000 (10:19 +0200)
WHen looking up the -Waddress documentation due to some PR that mentioned it,
I've noticed some typos and thus I'm fixing them.

2022-06-09  Jakub Jelinek  <jakub@redhat.com>

* doc/invoke.texi (-Waddress): Fix a typo in small example.
Fix typos inptr_t -> intptr_t and uinptr_t -> uintptr_t.

gcc/doc/invoke.texi

index ac0c06cd2b0b9c3d92fc17ce4fcb4bcb8a078751..174bc09e5cf226672987706d3d8cd0ab01a874b9 100644 (file)
@@ -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
This page took 0.082503 seconds and 5 git commands to generate.