@@ -216,12 +216,16 @@ <h2 class="Sh" id="DIAGNOSTICS"><a class="permalink" href="#DIAGNOSTICS">DIAGNOS
216
216
following options alter the way warnings are processed.</ p >
217
217
< dl class ="Bl-tag ">
218
218
< dt id ="Werror "> < a class ="permalink " href ="#Werror "> < code class ="Fl "> -Werror</ code > </ a > </ dt >
219
- < dd > Make all warnings into errors.</ dd >
219
+ < dd > Make all warnings into errors. This can be negated as
220
+ < code class ="Fl "> -Wno-error</ code > to prevent turning all warnings into
221
+ errors.</ dd >
220
222
< dt id ="Werror= "> < a class ="permalink " href ="#Werror= "> < code class ="Fl "> -Werror=</ code > </ a > </ dt >
221
- < dd > Make the specified warning into an error. A warning's name is appended
222
- (example: < code class ="Fl "> -Werror=obsolete</ code > ), and this warning is
223
- implicitly enabled and turned into an error. This is an error if used with
224
- a meta warning, such as < code class ="Fl "> -Werror=all</ code > .</ dd >
223
+ < dd > Make the specified warning or meta warning into an error. A warning's name
224
+ is appended (example: < code class ="Fl "> -Werror=obsolete</ code > ), and this
225
+ warning is implicitly enabled and turned into an error. This can be
226
+ negated as < code class ="Fl "> -Wno-error=</ code > to prevent turning a
227
+ specified warning into an error, even if < code class ="Fl "> -Werror</ code >
228
+ is in effect.</ dd >
225
229
</ dl >
226
230
< p class ="Pp "> The following warnings are “meta” warnings, that
227
231
enable a collection of other warnings. If a specific warning is toggled via
@@ -242,9 +246,11 @@ <h2 class="Sh" id="DIAGNOSTICS"><a class="permalink" href="#DIAGNOSTICS">DIAGNOS
242
246
description, the corresponding warning flag is included. Note that each of
243
247
these flag also has a negation (for example,
244
248
< code class ="Fl "> -Wcharmap-redef</ code > enables the warning that
245
- < code class ="Fl "> -Wno-charmap-redef</ code > disables). Only the non-default
246
- flag is listed here. Ignoring the “no-” prefix, entries are
247
- listed alphabetically.</ p >
249
+ < code class ="Fl "> -Wno-charmap-redef</ code > disables; and
250
+ < code class ="Fl "> -Wall</ code > enables every warning that
251
+ < code class ="Fl "> -Wno-all</ code > disables). Only the non-default flag is
252
+ listed here. Ignoring the “no-” prefix, entries are listed
253
+ alphabetically.</ p >
248
254
< dl class ="Bl-tag ">
249
255
< dt id ="Wno-assert "> < a class ="permalink " href ="#Wno-assert "> < code class ="Fl "> -Wno-assert</ code > </ a > </ dt >
250
256
< dd > Warn when < code class ="Ic "> WARN</ code > < span class ="No "> -type</ span >
0 commit comments