Ensure that USB_DEVICE_ONLY or USB_HOST_ONLY is properly set for devices that physica...
[pub/USBasp.git] / BuildTests / ModuleTest / makefile.test
index 94004b8..b3307f8 100644 (file)
@@ -27,8 +27,9 @@ TARGET       = Test
 SRC          = $(TARGET)_C.c $(TARGET)_CPP.cpp Dummy.S $(LUFA_SRC_USB)\r
 LUFA_PATH    = ../../LUFA/\r
 \r
-CC_FLAGS     = -Wextra\r
-#CC_FLAGS += -Werror # FIXME\r
+# Generic C/C++ compiler flags\r
+CC_FLAGS  = -Wextra\r
+CC_FLAGS += -Werror\r
 CC_FLAGS += -Wformat=2\r
 CC_FLAGS += -Winit-self\r
 CC_FLAGS += -Wswitch-enum\r
@@ -38,11 +39,9 @@ CC_FLAGS += -Wpointer-arith
 CC_FLAGS += -Wcast-align\r
 CC_FLAGS += -Wwrite-strings\r
 CC_FLAGS += -Wlogical-op\r
-CC_FLAGS += -Wmissing-parameter-type\r
 CC_FLAGS += -Wmissing-declarations\r
 CC_FLAGS += -Wmissing-field-initializers\r
 CC_FLAGS += -Wmissing-format-attribute\r
-CC_FLAGS += -Wnested-externs\r
 CC_FLAGS += -Woverlength-strings\r
 \r
 # Only enable rendundant declaration warnings for AVR8 target (FIXME)\r
@@ -50,6 +49,10 @@ ifeq ($(ARCH), AVR8)
 CC_FLAGS += -Wredundant-decls\r
 endif\r
 \r
+# C compiler only flags\r
+C_FLAGS += -Wmissing-parameter-type\r
+C_FLAGS += -Wnested-externs\r
+\r
 # Potential additional warnings to enable in the future (FIXME)\r
 #CC_FLAGS += -Wswitch-default\r
 #CC_FLAGS += -Wc++-compat\r