From: Andre Noll Date: Sat, 18 Jun 2016 18:25:28 +0000 (+0200) Subject: build: Add -Wdeclaration-after-statement. X-Git-Tag: v0.5.7~43 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=8945705ac35cb77b23ad4cfc732fa884bceb7e35;ds=sidebyside build: Add -Wdeclaration-after-statement. 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. --- diff --git a/Makefile.real b/Makefile.real index cc8225ba..d54a80da 100644 --- a/Makefile.real +++ b/Makefile.real @@ -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)