Fix up the StaticAnalysis build test so that it does not report invalid configurations.
authorDean Camera <dean@fourwalledcubicle.com>
Sat, 15 Sep 2012 14:52:15 +0000 (14:52 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Sat, 15 Sep 2012 14:52:15 +0000 (14:52 +0000)
Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c
BuildTests/StaticAnalysisTest/makefile

index f40a3e6..058ccc6 100644 (file)
@@ -657,6 +657,11 @@ int hard_reboot(void)
 #include <dev/usb/usb_ioctl.h>
 #endif
 
 #include <dev/usb/usb_ioctl.h>
 #endif
 
+#ifndef USB_GET_DEVICEINFO
+# define USB_GET_DEVICEINFO 0
+# error The USB_GET_DEVICEINFO ioctl() value is not defined for your system.
+#endif
+
 int open_usb_device(int vid, int pid)
 {
        int r, fd;
 int open_usb_device(int vid, int pid)
 {
        int r, fd;
index 6e6ed3c..abac69e 100644 (file)
@@ -14,9 +14,12 @@ LUFA_PATH := ../../LUFA/
 CPPCHECK_EXCLUDES := FATFs/            \
                      PetiteFATFs/      \
                      uip/
 CPPCHECK_EXCLUDES := FATFs/            \
                      PetiteFATFs/      \
                      uip/
+
 CPPCHECK_INCLUDES := $(patsubst %/,%,$(LUFA_PATH))/CodeTemplates/               \
                      $(patsubst %/,%,$(LUFA_PATH))/../Projects/AVRISP-MKII/
 
 CPPCHECK_INCLUDES := $(patsubst %/,%,$(LUFA_PATH))/CodeTemplates/               \
                      $(patsubst %/,%,$(LUFA_PATH))/../Projects/AVRISP-MKII/
 
+CPPCHECK_FLAGS    := -U TEMPLATE_FUNC_NAME
+
 SRC               := $(patsubst %/,%,$(LUFA_PATH))/..
 
 all: begin cppcheck end
 SRC               := $(patsubst %/,%,$(LUFA_PATH))/..
 
 all: begin cppcheck end