From 8945705ac35cb77b23ad4cfc732fa884bceb7e35 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 18 Jun 2016 20:25:28 +0200 Subject: [PATCH] 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. --- Makefile.real | 1 + 1 file changed, 1 insertion(+) 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) -- 2.30.2