aboutsummaryrefslogtreecommitdiffstats
path: root/BuildTests/ModuleTest
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2012-09-09 14:44:17 +0000
committerDean Camera <dean@fourwalledcubicle.com>2012-09-09 14:44:17 +0000
commitce5f5bd1c3285fe2dd9f554503bee12dca4d60e4 (patch)
tree5e1381c330854ef82eec4a7d763dfd85e00d01b9 /BuildTests/ModuleTest
parent5f614861a6c192874b18c752a88086750ee8d900 (diff)
downloadlufa-ce5f5bd1c3285fe2dd9f554503bee12dca4d60e4.tar.gz
lufa-ce5f5bd1c3285fe2dd9f554503bee12dca4d60e4.tar.bz2
lufa-ce5f5bd1c3285fe2dd9f554503bee12dca4d60e4.zip
Update ModuleTest build test to enable new warnings supported in the latest Atmel Toolchain release's included AVR-GCC version.
Diffstat (limited to 'BuildTests/ModuleTest')
-rw-r--r--BuildTests/ModuleTest/makefile.test30
1 files changed, 24 insertions, 6 deletions
diff --git a/BuildTests/ModuleTest/makefile.test b/BuildTests/ModuleTest/makefile.test
index 1ea9173ed..55f3941bf 100644
--- a/BuildTests/ModuleTest/makefile.test
+++ b/BuildTests/ModuleTest/makefile.test
@@ -22,11 +22,11 @@ LUFA_PATH = ../../LUFA
DEBUG_LEVEL = 0
ifeq ($(ARCH), AVR8)
-F_USB = 8000000
+ F_USB = 8000000
else ifeq ($(ARCH), XMEGA)
-F_USB = 48000000
+ F_USB = 48000000
else ifeq ($(ARCH), UC3)
-F_USB = 48000000
+ F_USB = 48000000
endif
# Generic C/C++ compiler flags
@@ -46,21 +46,39 @@ CC_FLAGS += -Wmissing-field-initializers
CC_FLAGS += -Wmissing-format-attribute
CC_FLAGS += -Woverlength-strings
CC_FLAGS += -Wswitch-default
+CC_FLAGS += -Wfloat-equal
+CC_FLAGS += -Waggregate-return
+CC_FLAGS += -Wmissing-include-dirs
+
+# Disable warnings not supported by the version of GCC used for UC3 targets (FIXME)
+ifneq ($(ARCH), UC3)
+ CC_FLAGS += -Wdouble-promotion
+endif
# Only enable rendundant declaration warnings for AVR8 target (FIXME)
ifeq ($(ARCH), AVR8)
-CC_FLAGS += -Wredundant-decls
+ CC_FLAGS += -Wredundant-decls
endif
# C compiler only flags
C_FLAGS += -Wmissing-parameter-type
+C_FLAGS += -Wmissing-prototypes
C_FLAGS += -Wnested-externs
+C_FLAGS += -Wbad-function-cast
+C_FLAGS += -Wstrict-prototypes
+C_FLAGS += -Wold-style-definition
+
+# Disable warnings not supported by the version of GCC used for UC3 targets (FIXME)
+ifneq ($(ARCH), UC3)
+ C_FLAGS += -Wunsuffixed-float-constants
+ C_FLAGS += -Wjump-misses-init
+endif
# Potential additional warnings to enable in the future (FIXME)
-#CC_FLAGS += -Wc++-compat
+#C_FLAGS += -Wc++-compat
#CC_FLAGS += -Wcast-qual
#CC_FLAGS += -Wconversion
-#CC_FLAGS += -Wjump-misses-init
+#CC_FLAGS += -Wsign-conversion
#CC_FLAGS += -pedantic
# Include LUFA build script makefiles
#n208'>208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340