Commit 72fc4a20 authored by Dean Camera's avatar Dean Camera

Clean up unnecessary CPPCheck static analysis suppression comments, force...

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.
parent 826a77e9
......@@ -59,6 +59,7 @@ void Application_Jump_Check(void)
if ((MCUSR & (1 << WDRF)) && (MagicBootKey == MAGIC_BOOT_KEY))
{
MagicBootKey = 0;
// cppcheck-suppress constStatement
((void (*)(void))0x0000)();
}
......
......@@ -18,10 +18,13 @@ CPPCHECK_EXCLUDES := FATFs/ \
CPPCHECK_INCLUDES := $(patsubst %/,%,$(LUFA_PATH))/CodeTemplates/ \
$(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))/..
# Build test cannot be run with multiple parallel jobs
.NOTPARALLEL:
all: begin cppcheck end
begin:
......
......@@ -70,6 +70,8 @@
/* Function Prototypes: */
void SetupHardware(void);
void EVENT_USB_UIDChange(void);
#endif
......@@ -30,7 +30,6 @@
#if defined(TEMPLATE_FUNC_NAME)
// cppcheck-suppress unusedFunction
uint8_t TEMPLATE_FUNC_NAME (void* const Buffer,
uint16_t Length)
{
......
......@@ -30,7 +30,6 @@
#if defined(TEMPLATE_FUNC_NAME)
// cppcheck-suppress unusedFunction
uint8_t TEMPLATE_FUNC_NAME (const void* const Buffer,
uint16_t Length)
{
......
......@@ -30,7 +30,6 @@
#if defined(TEMPLATE_FUNC_NAME)
// cppcheck-suppress unusedFunction
uint8_t TEMPLATE_FUNC_NAME (TEMPLATE_BUFFER_TYPE const Buffer,
uint16_t Length,
uint16_t* const BytesProcessed)
......
......@@ -30,7 +30,6 @@
#if defined(TEMPLATE_FUNC_NAME)
// cppcheck-suppress unusedFunction
uint8_t TEMPLATE_FUNC_NAME (TEMPLATE_BUFFER_TYPE const Buffer,
uint16_t Length,
uint16_t* const BytesProcessed)
......
......@@ -30,7 +30,6 @@
#if defined(TEMPLATE_FUNC_NAME)
// cppcheck-suppress unusedFunction
uint8_t TEMPLATE_FUNC_NAME (void* const Buffer,
uint16_t Length)
{
......
......@@ -30,7 +30,6 @@
#if defined(TEMPLATE_FUNC_NAME)
// cppcheck-suppress unusedFunction
uint8_t TEMPLATE_FUNC_NAME (const void* const Buffer,
uint16_t Length)
{
......
......@@ -30,7 +30,6 @@
#if defined(TEMPLATE_FUNC_NAME)
// cppcheck-suppress unusedFunction
uint8_t TEMPLATE_FUNC_NAME (TEMPLATE_BUFFER_TYPE const Buffer,
uint16_t Length,
uint16_t* const BytesProcessed)
......
......@@ -30,7 +30,6 @@
#if defined(TEMPLATE_FUNC_NAME)
// cppcheck-suppress unusedFunction
uint8_t TEMPLATE_FUNC_NAME (TEMPLATE_BUFFER_TYPE const Buffer,
uint16_t Length,
uint16_t* const BytesProcessed)
......
......@@ -30,7 +30,6 @@
#if defined(TEMPLATE_FUNC_NAME)
// cppcheck-suppress unusedFunction
uint8_t TEMPLATE_FUNC_NAME (void* const Buffer,
uint16_t Length)
{
......
......@@ -30,7 +30,6 @@
#if defined(TEMPLATE_FUNC_NAME)
// cppcheck-suppress unusedFunction
uint8_t TEMPLATE_FUNC_NAME (const void* const Buffer,
uint16_t Length)
{
......
......@@ -30,7 +30,6 @@
#if defined(TEMPLATE_FUNC_NAME)
// cppcheck-suppress unusedFunction
uint8_t TEMPLATE_FUNC_NAME (TEMPLATE_BUFFER_TYPE const Buffer,
uint16_t Length,
uint16_t* const BytesProcessed)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment