aboutsummaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorJens Wiklander <jens.wiklander@linaro.org>2018-09-26 15:32:49 +0200
committerJérôme Forissier <jerome.forissier@linaro.org>2018-09-27 14:28:44 +0200
commit439203cb04cee677a6cd8bf9cb02b82d626713cc (patch)
treef139daddb8eac442584a4db881a2d3cbf67519f9 /mk
parent2197c7c208773910eafa378cbc5504cbe5d97df6 (diff)
Allow mixed declaration and code
Removes the -Wdeclaration-after-statement compiler flag to allow mixed declaration and code Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'mk')
-rw-r--r--mk/compile.mk3
1 files changed, 1 insertions, 2 deletions
diff --git a/mk/compile.mk b/mk/compile.mk
index 7c6c890d..4f065a9c 100644
--- a/mk/compile.mk
+++ b/mk/compile.mk
@@ -40,8 +40,7 @@ comp-cflags-warns-medium = \
-Waggregate-return -Wredundant-decls
comp-cflags-warns-low = \
-Wold-style-definition -Wstrict-aliasing=2 \
- -Wundef -pedantic \
- -Wdeclaration-after-statement
+ -Wundef -pedantic
comp-cflags-warns-1:= $(comp-cflags-warns-high)
comp-cflags-warns-2:= $(comp-cflags-warns-1) $(comp-cflags-warns-medium)