summaryrefslogtreecommitdiff
path: root/Makefile.toolchain
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.toolchain')
-rw-r--r--Makefile.toolchain11
1 files changed, 4 insertions, 7 deletions
diff --git a/Makefile.toolchain b/Makefile.toolchain
index 7cb8e212d1..23161d7bfd 100644
--- a/Makefile.toolchain
+++ b/Makefile.toolchain
@@ -45,13 +45,10 @@ HOSTCXX?=$(CCACHE) $(HOST_CROSS_COMPILE)g++
PROTOC?=protoc
C_WARN = -Wstrict-prototypes -Wdeclaration-after-statement -Wno-pointer-sign
-COMMON_WARN = -Wall -Werror -Wundef -Wno-trigraphs -fno-strict-aliasing \
- -fno-common -Werror-implicit-function-declaration \
- -Wno-format-security -fno-strict-overflow
-ifeq ($(cc-name),clang)
-# clang is pickier when it comes to packed struct members alignment.
-C_WARN+= -Wno-address-of-packed-member
-endif
+COMMON_WARN = -Wall -Wundef -Werror -Werror-implicit-function-declaration \
+ -Wno-trigraphs -Wno-format-security -Wno-address-of-packed-member \
+ -fno-common -fno-strict-aliasing -fno-strict-overflow
+
CFLAGS_WARN = $(COMMON_WARN) $(C_WARN)
CXXFLAGS_WARN = $(COMMON_WARN)
CFLAGS_DEBUG= -g