From ca0bb1b87b29d40c61d335d662b2812f61c858cd Mon Sep 17 00:00:00 2001 From: Dean Date: Sat, 5 May 2012 21:27:07 +0000 Subject: Fix bootloaders to make the StaticAnalysis build test happy. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2182 d5102386-fcda-11dd-9fdb-3debd5008f28 --- Bootloaders/CDC/BootloaderCDC.c | 3 ++- Bootloaders/HID/BootloaderHID.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'Bootloaders') diff --git a/Bootloaders/CDC/BootloaderCDC.c b/Bootloaders/CDC/BootloaderCDC.c index d057349c..211b054e 100644 --- a/Bootloaders/CDC/BootloaderCDC.c +++ b/Bootloaders/CDC/BootloaderCDC.c @@ -70,10 +70,11 @@ uint32_t MagicBootKey ATTR_NO_INIT; */ void Application_Jump_Check(void) { - // If the reset source was the bootloader and the key is correct, clear it and jump to the application + /* If the reset source was the bootloader and the key is correct, clear it and jump to the application */ if ((MCUSR & (1 << WDRF)) && (MagicBootKey == MAGIC_BOOT_KEY)) { MagicBootKey = 0; + // cppcheck-suppress constStatement ((void (*)(void))0x0000)(); } } diff --git a/Bootloaders/HID/BootloaderHID.c b/Bootloaders/HID/BootloaderHID.c index 2255f0ff..acc351a3 100644 --- a/Bootloaders/HID/BootloaderHID.c +++ b/Bootloaders/HID/BootloaderHID.c @@ -55,10 +55,11 @@ uint32_t MagicBootKey ATTR_NO_INIT; */ void Application_Jump_Check(void) { - // If the reset source was the bootloader and the key is correct, clear it and jump to the application + /* If the reset source was the bootloader and the key is correct, clear it and jump to the application */ if ((MCUSR & (1 << WDRF)) && (MagicBootKey == MAGIC_BOOT_KEY)) { MagicBootKey = 0; + // cppcheck-suppress constStatement ((void (*)(void))0x0000)(); } } -- cgit v1.2.3