]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Align -gnatwc's documentation with its behavior
authorRonan Desplanques <desplanques@adacore.com>
Fri, 14 Oct 2022 14:28:58 +0000 (16:28 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 8 Nov 2022 08:35:00 +0000 (09:35 +0100)
Shortly after the -gnatwc flag was introduced, its behavior was
tweaked, but its documentation was not updated accordingly.

gcc/ada/

* doc/gnat_ugn/building_executable_programs_with_gnat.rst
(-gnatwc): Fix flag documentation.
* gnat_ugn.texi: Regenerate.

gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst
gcc/ada/gnat_ugn.texi

index 31e2e31421e3ce715b613a3b8eaae7807d4d22a7..87fb1087e42186d37c9ab5d1d891280fe8576a05 100644 (file)
@@ -2938,7 +2938,7 @@ of the pragma in the :title:`GNAT_Reference_manual`).
   tests that are known to be True or False at compile time. The default
   is that such warnings are not generated.
   Note that this warning does
-  not get issued for the use of boolean variables or constants whose
+  not get issued for the use of boolean constants whose
   values are known at compile time, since this is a standard technique
   for conditional compilation in Ada, and this would generate too many
   false positive warnings.
index 385f1d3deb57e63d4d0057d85dc422181f848f06..7b1aaeba9545b436b151a3c2d076962ffa9ac314 100644 (file)
@@ -10925,7 +10925,7 @@ This switch activates warnings for conditional expressions used in
 tests that are known to be True or False at compile time. The default
 is that such warnings are not generated.
 Note that this warning does
-not get issued for the use of boolean variables or constants whose
+not get issued for the use of boolean constants whose
 values are known at compile time, since this is a standard technique
 for conditional compilation in Ada, and this would generate too many
 false positive warnings.