aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2012-09-15 14:52:15 +0000
committerDean Camera <dean@fourwalledcubicle.com>2012-09-15 14:52:15 +0000
commitc8f7cf7621e8c0ec9566b918a81de9726b75e0ef (patch)
tree77cbed987695f63d0ee0f1206778b7f8bd121195
parent45a56b4df7095daa1b8e2700f89baed0b2d84fa3 (diff)
downloadlufa-c8f7cf7621e8c0ec9566b918a81de9726b75e0ef.tar.gz
lufa-c8f7cf7621e8c0ec9566b918a81de9726b75e0ef.tar.bz2
lufa-c8f7cf7621e8c0ec9566b918a81de9726b75e0ef.zip
Fix up the StaticAnalysis build test so that it does not report invalid configurations.
-rw-r--r--Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c5
-rw-r--r--BuildTests/StaticAnalysisTest/makefile3
2 files changed, 8 insertions, 0 deletions
diff --git a/Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c b/Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c
index f40a3e6a0..058ccc63d 100644
--- a/Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c
+++ b/Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c
@@ -657,6 +657,11 @@ int hard_reboot(void)
#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;
diff --git a/BuildTests/StaticAnalysisTest/makefile b/BuildTests/StaticAnalysisTest/makefile
index 6e6ed3c36..abac69e90 100644
--- a/BuildTests/StaticAnalysisTest/makefile
+++ b/BuildTests/StaticAnalysisTest/makefile
@@ -14,9 +14,12 @@ LUFA_PATH := ../../LUFA/
CPPCHECK_EXCLUDES := FATFs/ \
PetiteFATFs/ \
uip/
+
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