summaryrefslogtreecommitdiffhomepage
path: root/cparser.1
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2011-06-21 22:22:54 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2011-06-21 22:26:29 +0200
commitd6b73cf5a5ea248432191eda4f1ee63c49140f6b (patch)
tree0a8ca7f8751c6843dfaa7b749f26a461a9d57812 /cparser.1
parentee588394b56f570a37ab0a55c3cba5df5ee4c9d2 (diff)
Make warning switch parsing compatible to GCC: -W[no-][error=]warning.
Diffstat (limited to 'cparser.1')
-rw-r--r--cparser.121
1 files changed, 12 insertions, 9 deletions
diff --git a/cparser.1 b/cparser.1
index 1b7a266..450b87c 100644
--- a/cparser.1
+++ b/cparser.1
@@ -1,5 +1,5 @@
.\" Please adjust this date whenever revising the manpage.
-.Dd December 21, 2008
+.Dd June 21, 2011
.Dt CPARSER 1
.Sh NAME
.Nm cparser
@@ -14,7 +14,7 @@
.Op Fl - Ns Oo Cm no- Oc Ns Cm ms
.Op Fl g
.Op Fl O Ns Ar level
-.Op Fl W Ns Oo Cm no- Ns | Ns Cm error- Oc Ns Ar warn
+.Op Fl W Ns Oo Cm no- Oc Ns Oo Cm error= Oc Ns Ar warning
.Op Fl w
.Op Fl I Ar dir
.Op Fl L Ar dir
@@ -91,14 +91,17 @@ format.
.\" TODO expand
Select the optimization level.
Sensible values are between 0 and 4, inclusive.
-.It Fl W Ns Oo Cm no- Ns | Ns Cm error- Oc Ns Ar warn
.\" TODO expand
-Disable/enable a specific warning.
-Every warning option has a corresponding
-.Cm no-
-switch to deactivate it and an
-.Cm error-
-switch to turn it into an error.
+.It Fl W Ns Ar warning
+Enable the specified warning.
+.It Fl Wno- Ns Ar warning
+Disable the specified warning.
+.It Fl Werror= Ns Ar warning
+Enable the specified warning and turn it into an error.
+.It Fl Wno-error= Ns Ar warning
+Force the specified warning to only be a warning, even in the presence of
+.Fl Werror .
+This neither enables nor disables the warning itself.
.It Fl Waddress
Warn about suspicious use of addresses, like using the address of a function or variable as boolean condition or comparing with the address of a string literal.
.It Fl Waggregate-return