Skip to content

Commit

Permalink
Fix up the StaticAnalysis build test so that it does not report inval…
Browse files Browse the repository at this point in the history
…id configurations.

git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2485 d5102386-fcda-11dd-9fdb-3debd5008f28
  • Loading branch information
Dean authored and Dean committed Sep 15, 2012
1 parent 4950c04 commit de042bf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 3 additions & 0 deletions BuildTests/StaticAnalysisTest/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit de042bf

Please sign in to comment.