]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Doc: Improve wording of -Werror documentation [PR58973]
authorSandra Loosemore <sloosemore@baylibre.com>
Wed, 2 Apr 2025 21:29:33 +0000 (21:29 +0000)
committerSandra Loosemore <sloosemore@baylibre.com>
Wed, 2 Apr 2025 21:45:57 +0000 (21:45 +0000)
gcc/ChangeLog
PR driver/58973
* common.opt (Werror, Werror=): Use less awkward wording in
description.
(pedantic-errors): Likewise.
* doc/invoke.texi (Warning Options): Likewise for -Werror and
-Werror= here.

Co-Authored-By: GUO Yixuan <culu.gyx@gmail.com>
gcc/common.opt
gcc/doc/invoke.texi

index 9400c4b94e8885936e2c092413363304c83356a0..b9e74cd3ac411f318db0c68ff77b7ee96ab610ef 100644 (file)
@@ -614,11 +614,11 @@ Warn when an optimization pass is disabled.
 
 Werror
 Common Var(warnings_are_errors)
-Treat all warnings as errors.
+Turn all warnings into errors.
 
 Werror=
 Common Joined
-Treat specified warning as error.
+Turn the specified warning into an error.
 
 Wextra
 Common Var(extra_warnings) Warning
@@ -3805,7 +3805,7 @@ Common Alias(Wpedantic)
 
 pedantic-errors
 Common Var(flag_pedantic_errors)
-Like -pedantic but issue them as errors.
+Like -pedantic but issue errors instead of warnings.
 
 pg
 Driver
index b2b9b37ca83a114b671722a8794acfb062080f34..4c9af429ab08fa3ce3721fea0f10c3c1246c7416 100644 (file)
@@ -6145,12 +6145,12 @@ Inhibit all warning messages.
 @opindex Werror
 @opindex Wno-error
 @item -Werror
-Make all warnings into errors.
+Turn all warnings into errors.
 
 @opindex Werror=
 @opindex Wno-error=
 @item -Werror=
-Make the specified warning into an error.  The specifier for a warning
+Turn the specified warning into an error.  The specifier for a warning
 is appended; for example @option{-Werror=switch} turns the warnings
 controlled by @option{-Wswitch} into errors.  This switch takes a
 negative form, to be used to negate @option{-Werror} for specific