summaryrefslogtreecommitdiffhomepage
path: root/cparser.1
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2008-11-30 14:56:42 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2008-11-30 14:56:42 +0100
commit0ab7d8bb95d84dd2d483afffe91141427664bb6e (patch)
treee9d29572b2cc93dcf5e3b8afceb5a43e954d8adf /cparser.1
parentc6083a78b21bc4e8a9bed0fe21b042b873e23fc7 (diff)
Fix typo, document -Wl, and -Wp,.
[r24157]
Diffstat (limited to 'cparser.1')
-rw-r--r--cparser.112
1 files changed, 11 insertions, 1 deletions
diff --git a/cparser.1 b/cparser.1
index 5b2b060..1421688 100644
--- a/cparser.1
+++ b/cparser.1
@@ -25,6 +25,8 @@
.Op Fl l Ar library
.Op Fl o Ar outfile
.Op Fl x Ar language
+.Op Fl Wl, Ns Ar option
+.Op Fl Wp, Ns Ar option
.Ar
.Sh DESCRIPTION
.Nm
@@ -128,7 +130,7 @@ In particular these are
.Fl Wunused-variable .
.It Fl Wcast-qual
Warn whenever a pointer cast removes qualifiers from the pointed-to type, e.g. casting a const char* to char*.
-.It Fl char-subscripts
+.It Fl Wchar-subscripts
Warn about using an expression of type char as array subscript, e.g. char c; arr[c].
.It Fl Wdeclaration-after-statement
Warn about mixing declarations and statements, which is not allowed prior to C99.
@@ -249,6 +251,14 @@ C++ file
.It Cm none
Revert to auto-detection
.El
+.It Fl Wl, Ns Ar option
+Pass
+.Ar option
+to the linker.
+.It Fl Wp, Ns Ar option
+Pass
+.Ar option
+to the preprocessor.
.El
.Sh SEE ALSO
.Xr gcc 1 ,