]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gcc/doc: Clarify warning for variable unused
authorNathan Myers <ncm@cantrip.org>
Fri, 1 May 2026 13:22:40 +0000 (09:22 -0400)
committerNathan Myers <ncm@cantrip.org>
Mon, 4 May 2026 18:03:01 +0000 (14:03 -0400)
In the www gcc-16/porting_to, two lines in comment text on
the example code for -Wunused-variable was changed from
"pre/postincrement used" to "pre/postincrement result used".
Approval there directs that the change should be propagated
back to the texi source the example came from. This is that
propagation.

gcc/Changelog:
* doc/invoke.texi: insert "result" in comment text

gcc/doc/invoke.texi

index 16dc2179073376f76201405132e5d4c7723c710e..298ff10c0d52cd41a57a07b44a6100c37f3ecd6b 100644 (file)
@@ -8322,10 +8322,10 @@ void foo (void)
   int f = 0; // No warning, f used
   int g = f = 5;
   (void) g;
-  int h = 0; // No warning, preincrement used
+  int h = 0; // No warning, preincrement result used
   int i = ++h;
   (void) i;
-  int j = 0; // No warning, postdecrement used
+  int j = 0; // No warning, postdecrement result used
   int k = j--;
   (void) k;
   int l = 0; // No warning, l used