aboutsummaryrefslogtreecommitdiffstats
path: root/BuildTests/ModuleTest
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2012-06-02 11:18:28 +0000
committerDean Camera <dean@fourwalledcubicle.com>2012-06-02 11:18:28 +0000
commit924c0eb6ac80186297769e5d41065831b2903573 (patch)
treef0cbeb70a965a917a4c2258ef3ca0f11a85437b6 /BuildTests/ModuleTest
parent8031d97a4f0dac1351d3ccfa999327bc3281d1df (diff)
downloadlufa-924c0eb6ac80186297769e5d41065831b2903573.tar.gz
lufa-924c0eb6ac80186297769e5d41065831b2903573.tar.bz2
lufa-924c0eb6ac80186297769e5d41065831b2903573.zip
Add C_FLAGS, CPP_FLAGS and ASM_FLAGS variables to the build system BUILD module to allow for language-specific compiler/assembler flags.
Diffstat (limited to 'BuildTests/ModuleTest')
-rw-r--r--BuildTests/ModuleTest/makefile.test11
1 files changed, 7 insertions, 4 deletions
diff --git a/BuildTests/ModuleTest/makefile.test b/BuildTests/ModuleTest/makefile.test
index 94004b8b3..b3307f897 100644
--- a/BuildTests/ModuleTest/makefile.test
+++ b/BuildTests/ModuleTest/makefile.test
@@ -27,8 +27,9 @@ TARGET = Test
SRC = $(TARGET)_C.c $(TARGET)_CPP.cpp Dummy.S $(LUFA_SRC_USB)
LUFA_PATH = ../../LUFA/
-CC_FLAGS = -Wextra
-#CC_FLAGS += -Werror # FIXME
+# Generic C/C++ compiler flags
+CC_FLAGS = -Wextra
+CC_FLAGS += -Werror
CC_FLAGS += -Wformat=2
CC_FLAGS += -Winit-self
CC_FLAGS += -Wswitch-enum
@@ -38,11 +39,9 @@ CC_FLAGS += -Wpointer-arith
CC_FLAGS += -Wcast-align
CC_FLAGS += -Wwrite-strings
CC_FLAGS += -Wlogical-op
-CC_FLAGS += -Wmissing-parameter-type
CC_FLAGS += -Wmissing-declarations
CC_FLAGS += -Wmissing-field-initializers
CC_FLAGS += -Wmissing-format-attribute
-CC_FLAGS += -Wnested-externs
CC_FLAGS += -Woverlength-strings
# Only enable rendundant declaration warnings for AVR8 target (FIXME)
@@ -50,6 +49,10 @@ ifeq ($(ARCH), AVR8)
CC_FLAGS += -Wredundant-decls
endif
+# C compiler only flags
+C_FLAGS += -Wmissing-parameter-type
+C_FLAGS += -Wnested-externs
+
# Potential additional warnings to enable in the future (FIXME)
#CC_FLAGS += -Wswitch-default
#CC_FLAGS += -Wc++-compat