summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2022-12-24 20:17:08 +0100
committerAlejandro Colomar <alx@kernel.org>2022-12-24 20:17:14 +0100
commite10172137816c6b79e2b95bdcf490274666f3c5d (patch)
tree7175b3e1528b26c80f4952d03ebd10da1f25f960
parente87b984d0ea5fe6b1fbccba23fd8b4dbdde1c7d5 (diff)
build-deps.mk: Add warning for declarations after statements
Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--lib/build-deps.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/build-deps.mk b/lib/build-deps.mk
index f1bfb25..1fec520 100644
--- a/lib/build-deps.mk
+++ b/lib/build-deps.mk
@@ -36,6 +36,7 @@ DEFAULT_CFLAGS := -O3
DEFAULT_CFLAGS += -Wall
DEFAULT_CFLAGS += -Wextra
DEFAULT_CFLAGS += -Wstrict-prototypes
+DEFAULT_CFLAGS += -Wdeclaration-after-statement
DEFAULT_CFLAGS += -Werror
DEFAULT_CFLAGS += -Wno-unknown-pragmas
DEFAULT_CFLAGS += -I$(builddir)