diff options
author | Sandra Loosemore <sloosemore@baylibre.com> | 2025-04-02 21:29:33 +0000 |
---|---|---|
committer | Sandra Loosemore <sloosemore@baylibre.com> | 2025-04-02 21:45:57 +0000 |
commit | 0acac6c432aef97222f14a1b87b9e9f9ee94c9e8 (patch) | |
tree | b765c11498c7dfb7a83d0ad65cc81d207e111805 /gcc | |
parent | a66de265ab865aacbb6c4957916605c7bac7ff48 (diff) | |
download | gcc-0acac6c432aef97222f14a1b87b9e9f9ee94c9e8.zip gcc-0acac6c432aef97222f14a1b87b9e9f9ee94c9e8.tar.gz gcc-0acac6c432aef97222f14a1b87b9e9f9ee94c9e8.tar.bz2 |
Doc: Improve wording of -Werror documentation [PR58973]
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>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/common.opt | 6 | ||||
-rw-r--r-- | gcc/doc/invoke.texi | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/gcc/common.opt b/gcc/common.opt index 9400c4b..b9e74cd 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -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 diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index b2b9b37..4c9af42 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -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 |