summaryrefslogtreecommitdiffhomepage
path: root/cparser.1
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2016-03-01 18:59:14 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2016-03-01 20:12:19 +0100
commita4a2d5ddf67e1f0a4854acc7a48e480519a0ce15 (patch)
tree65783196840bfae09f1f891ca76311d4f5465a00 /cparser.1
parente8f8c4e560c4a9033f67e1fc77dc43db9dd88215 (diff)
Add option '-Wdeclaration-after-label'.
Diffstat (limited to 'cparser.1')
-rw-r--r--cparser.16
1 files changed, 5 insertions, 1 deletions
diff --git a/cparser.1 b/cparser.1
index 8e3d1d2..9253e67 100644
--- a/cparser.1
+++ b/cparser.1
@@ -1,5 +1,5 @@
.\" Please adjust this date whenever revising the manpage.
-.Dd January 22, 2016
+.Dd March 1, 2016
.Dt CPARSER 1
.Sh NAME
.Nm cparser
@@ -160,6 +160,10 @@ In particular these are
.It Fl Wcpp
.No Show warning messages emitted by So #warning Sc directives.
Default is on.
+.It Fl Wdeclaration-after-label
+Warn when a declaration is found right after a label, which is not allowed in C.
+This option has no effect for C++, which allows this.
+Default is on as error.
.It Fl Wdeclaration-after-statement
Warn about mixing declarations and statements, which is not allowed prior to C99.
.It Fl Wdiv-by-zero