Remove CPPCheck suppressions for unused functions, disable checking for them in the StaticAnalysisTest build test as it can't cope with GCC aliasing and mixed library/application code.

pull/1469/head
Dean Camera 12 years ago
parent 7ce76f2d81
commit 300a05d6c6

@ -20,6 +20,8 @@ CPPCHECK_INCLUDES := $(patsubst %/,%,$(LUFA_PATH))/CodeTemplates/
CPPCHECK_FLAGS := -U TEMPLATE_FUNC_NAME -U __GNUC__ -U __DOXYGEN__
CPPCHECK_SUPPRESS := variableScope missingInclude unusedFunction
SRC := $(patsubst %/,%,$(LUFA_PATH))/..
# Build test cannot be run with multiple parallel jobs

File diff suppressed because one or more lines are too long

@ -188,7 +188,6 @@ bool Audio_Device_ConfigureEndpoints(USB_ClassInfo_Audio_Device_t* const AudioIn
return true;
}
// cppcheck-suppress unusedFunction
void Audio_Device_Event_Stub(void)
{

@ -332,7 +332,6 @@ static int CDC_Device_getchar_Blocking(FILE* Stream)
}
#endif
// cppcheck-suppress unusedFunction
void CDC_Device_Event_Stub(void)
{

@ -468,7 +468,6 @@ static int CDC_Host_getchar_Blocking(FILE* Stream)
}
#endif
// cppcheck-suppress unusedFunction
void CDC_Host_Event_Stub(void)
{

@ -32,7 +32,6 @@
#define __INCLUDE_FROM_USB_DRIVER
#include "Events.h"
// cppcheck-suppress unusedFunction
void USB_Event_Stub(void)
{

@ -11,21 +11,21 @@
<lufa>
<asf>
<board id="lufa.boards.dummy.avr8" vendor="LUFA" caption="AVR8 Architecture">
<device-support value="lufa_avr8"/>
<device-support value="mega"/>
<require idref="lufa.drivers.board"/>
<require idref="lufa.drivers.board.info"/>
</board>
<board id="lufa.boards.dummy.xmega" vendor="LUFA" caption="XMEGA Architecture">
<device-support value="lufa_xmega"/>
<device-support value="xmega"/>
<require idref="lufa.drivers.board"/>
<require idref="lufa.drivers.board.info"/>
</board>
<board id="lufa.boards.dummy.uc3" vendor="LUFA" caption="UC3 Architecture">
<device-support value="lufa_uc3"/>
<device-support value="uc3"/>
<require idref="lufa.drivers.board"/>
<require idref="lufa.drivers.board.info"/>

@ -189,7 +189,6 @@ static void uIPManagement_ProcessIncomingPacket(void)
}
/* If the packet contains an Ethernet frame, process it */
// cppcheck-suppress redundantOperationIn
if (uip_len > 0)
{
switch (((struct uip_eth_hdr*)uip_buf)->type)

Loading…
Cancel
Save