ada: Fix documentation of -gnatwc
commitf9e0e67b260f55fc05c7ffe01217561ac3f2aef4
authorRonan Desplanques <desplanques@adacore.com>
Thu, 12 Oct 2023 09:31:40 +0000 (12 11:31 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 7 Nov 2023 09:15:03 +0000 (7 10:15 +0100)
tree834ed9d0a004151a7f398593fe4c19ec7e830333
parent9daee42551e2d63c9e21935fb76b2ccc22f441d1
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.
gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst
gcc/ada/gnat_ugn.texi