diff options
author | Ronan Desplanques <desplanques@adacore.com> | 2023-10-12 11:31:40 +0200 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2023-11-07 10:15:03 +0100 |
commit | f9e0e67b260f55fc05c7ffe01217561ac3f2aef4 (patch) | |
tree | 834ed9d0a004151a7f398593fe4c19ec7e830333 /gcc/ada/doc/gnat_ugn | |
parent | 9daee42551e2d63c9e21935fb76b2ccc22f441d1 (diff) | |
download | gcc-f9e0e67b260f55fc05c7ffe01217561ac3f2aef4.zip gcc-f9e0e67b260f55fc05c7ffe01217561ac3f2aef4.tar.gz gcc-f9e0e67b260f55fc05c7ffe01217561ac3f2aef4.tar.bz2 |
ada: Fix documentation of -gnatwc
-gnatwc has been correctly emitting warnings for expressions outside
of tests for a while, but its documentation in the user's guide had
never been updated to reflect that. Also, the documentation used
"conditional expressions" to designate boolean expressions, but
"conditional expressions" has been defined by Ada 2012 to designate
if expressions and case expressions. This patch fixes those issues.
gcc/ada/
* doc/gnat_ugn/building_executable_programs_with_gnat.rst: Fix
-gnatwc documentation.
* gnat_ugn.texi: Regenerate.
Diffstat (limited to 'gcc/ada/doc/gnat_ugn')
-rw-r--r-- | gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst b/gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst index a708ef4..21e277d 100644 --- a/gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst +++ b/gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst @@ -2942,8 +2942,8 @@ of the pragma in the :title:`GNAT_Reference_manual`). .. index:: Conditionals, constant - This switch activates warnings for conditional expressions used in - tests that are known to be True or False at compile time. The default + This switch activates warnings for boolean expressions 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 constants whose |