Clean up unnecessary CPPCheck static analysis suppression comments, force Doxygen and GCC compiler specific macros as being always undefined when performing a static analysis of the code.

pull/1469/head
Dean Camera 12 years ago
parent 826a77e90c
commit 72fc4a204d

@ -59,6 +59,7 @@ void Application_Jump_Check(void)
if ((MCUSR & (1 << WDRF)) && (MagicBootKey == MAGIC_BOOT_KEY)) if ((MCUSR & (1 << WDRF)) && (MagicBootKey == MAGIC_BOOT_KEY))
{ {
MagicBootKey = 0; MagicBootKey = 0;
// cppcheck-suppress constStatement // cppcheck-suppress constStatement
((void (*)(void))0x0000)(); ((void (*)(void))0x0000)();
} }

@ -18,10 +18,13 @@ CPPCHECK_EXCLUDES := FATFs/ \
CPPCHECK_INCLUDES := $(patsubst %/,%,$(LUFA_PATH))/CodeTemplates/ \ CPPCHECK_INCLUDES := $(patsubst %/,%,$(LUFA_PATH))/CodeTemplates/ \
$(patsubst %/,%,$(LUFA_PATH))/../Projects/AVRISP-MKII/ $(patsubst %/,%,$(LUFA_PATH))/../Projects/AVRISP-MKII/
CPPCHECK_FLAGS := -U TEMPLATE_FUNC_NAME CPPCHECK_FLAGS := -U TEMPLATE_FUNC_NAME -U __GNUC__ -U __DOXYGEN__
SRC := $(patsubst %/,%,$(LUFA_PATH))/.. SRC := $(patsubst %/,%,$(LUFA_PATH))/..
# Build test cannot be run with multiple parallel jobs
.NOTPARALLEL:
all: begin cppcheck end all: begin cppcheck end
begin: begin:

@ -70,6 +70,8 @@
/* Function Prototypes: */ /* Function Prototypes: */
void SetupHardware(void); void SetupHardware(void);
void EVENT_USB_UIDChange(void);
#endif #endif

@ -30,7 +30,6 @@
#if defined(TEMPLATE_FUNC_NAME) #if defined(TEMPLATE_FUNC_NAME)
// cppcheck-suppress unusedFunction
uint8_t TEMPLATE_FUNC_NAME (void* const Buffer, uint8_t TEMPLATE_FUNC_NAME (void* const Buffer,
uint16_t Length) uint16_t Length)
{ {

@ -30,7 +30,6 @@
#if defined(TEMPLATE_FUNC_NAME) #if defined(TEMPLATE_FUNC_NAME)
// cppcheck-suppress unusedFunction
uint8_t TEMPLATE_FUNC_NAME (const void* const Buffer, uint8_t TEMPLATE_FUNC_NAME (const void* const Buffer,
uint16_t Length) uint16_t Length)
{ {

@ -30,7 +30,6 @@
#if defined(TEMPLATE_FUNC_NAME) #if defined(TEMPLATE_FUNC_NAME)
// cppcheck-suppress unusedFunction
uint8_t TEMPLATE_FUNC_NAME (TEMPLATE_BUFFER_TYPE const Buffer, uint8_t TEMPLATE_FUNC_NAME (TEMPLATE_BUFFER_TYPE const Buffer,
uint16_t Length, uint16_t Length,
uint16_t* const BytesProcessed) uint16_t* const BytesProcessed)

@ -30,7 +30,6 @@
#if defined(TEMPLATE_FUNC_NAME) #if defined(TEMPLATE_FUNC_NAME)
// cppcheck-suppress unusedFunction
uint8_t TEMPLATE_FUNC_NAME (TEMPLATE_BUFFER_TYPE const Buffer, uint8_t TEMPLATE_FUNC_NAME (TEMPLATE_BUFFER_TYPE const Buffer,
uint16_t Length, uint16_t Length,
uint16_t* const BytesProcessed) uint16_t* const BytesProcessed)

@ -30,7 +30,6 @@
#if defined(TEMPLATE_FUNC_NAME) #if defined(TEMPLATE_FUNC_NAME)
// cppcheck-suppress unusedFunction
uint8_t TEMPLATE_FUNC_NAME (void* const Buffer, uint8_t TEMPLATE_FUNC_NAME (void* const Buffer,
uint16_t Length) uint16_t Length)
{ {

@ -30,7 +30,6 @@
#if defined(TEMPLATE_FUNC_NAME) #if defined(TEMPLATE_FUNC_NAME)
// cppcheck-suppress unusedFunction
uint8_t TEMPLATE_FUNC_NAME (const void* const Buffer, uint8_t TEMPLATE_FUNC_NAME (const void* const Buffer,
uint16_t Length) uint16_t Length)
{ {

@ -30,7 +30,6 @@
#if defined(TEMPLATE_FUNC_NAME) #if defined(TEMPLATE_FUNC_NAME)
// cppcheck-suppress unusedFunction
uint8_t TEMPLATE_FUNC_NAME (TEMPLATE_BUFFER_TYPE const Buffer, uint8_t TEMPLATE_FUNC_NAME (TEMPLATE_BUFFER_TYPE const Buffer,
uint16_t Length, uint16_t Length,
uint16_t* const BytesProcessed) uint16_t* const BytesProcessed)

@ -30,7 +30,6 @@
#if defined(TEMPLATE_FUNC_NAME) #if defined(TEMPLATE_FUNC_NAME)
// cppcheck-suppress unusedFunction
uint8_t TEMPLATE_FUNC_NAME (TEMPLATE_BUFFER_TYPE const Buffer, uint8_t TEMPLATE_FUNC_NAME (TEMPLATE_BUFFER_TYPE const Buffer,
uint16_t Length, uint16_t Length,
uint16_t* const BytesProcessed) uint16_t* const BytesProcessed)

@ -30,7 +30,6 @@
#if defined(TEMPLATE_FUNC_NAME) #if defined(TEMPLATE_FUNC_NAME)
// cppcheck-suppress unusedFunction
uint8_t TEMPLATE_FUNC_NAME (void* const Buffer, uint8_t TEMPLATE_FUNC_NAME (void* const Buffer,
uint16_t Length) uint16_t Length)
{ {

@ -30,7 +30,6 @@
#if defined(TEMPLATE_FUNC_NAME) #if defined(TEMPLATE_FUNC_NAME)
// cppcheck-suppress unusedFunction
uint8_t TEMPLATE_FUNC_NAME (const void* const Buffer, uint8_t TEMPLATE_FUNC_NAME (const void* const Buffer,
uint16_t Length) uint16_t Length)
{ {

@ -30,7 +30,6 @@
#if defined(TEMPLATE_FUNC_NAME) #if defined(TEMPLATE_FUNC_NAME)
// cppcheck-suppress unusedFunction
uint8_t TEMPLATE_FUNC_NAME (TEMPLATE_BUFFER_TYPE const Buffer, uint8_t TEMPLATE_FUNC_NAME (TEMPLATE_BUFFER_TYPE const Buffer,
uint16_t Length, uint16_t Length,
uint16_t* const BytesProcessed) uint16_t* const BytesProcessed)

Loading…
Cancel
Save