]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
build: Add -Wdeclaration-after-statement.
authorAndre Noll <maan@tuebingen.mpg.de>
Sat, 18 Jun 2016 18:25:28 +0000 (20:25 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 17 Jul 2016 11:37:30 +0000 (13:37 +0200)
No code in the tree has declarations after statements, so this
change produces no new warnings. It makes sure, however, that we do
not introduce such declarations in the future. The option was not
enabled only because old gcc versions do not support it. Since we
require gcc-4.2.x or newer these days, we can count on the option
and enable it unconditionally.

Makefile.real

index cc8225ba07852de3779fd21742b59442ba0cf336..d54a80da3f2d50bcc63b937b1f933530cffca52f 100644 (file)
@@ -113,6 +113,7 @@ STRICT_CFLAGS += -Wredundant-decls
 STRICT_CFLAGS += -Wno-sign-compare -Wno-unknown-pragmas
 STRICT_CFLAGS += -Wformat -Wformat-security
 STRICT_CFLAGS += -Wmissing-format-attribute
+STRICT_CFLAGS += -Wdeclaration-after-statement
 
 LDFLAGS += $(clock_gettime_ldflags)