Fix bootloaders to make the StaticAnalysis build test happy.
authorDean Camera <dean@fourwalledcubicle.com>
Sat, 5 May 2012 21:27:07 +0000 (21:27 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Sat, 5 May 2012 21:27:07 +0000 (21:27 +0000)
Bootloaders/CDC/BootloaderCDC.c
Bootloaders/HID/BootloaderHID.c

index d057349..211b054 100644 (file)
@@ -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)();
        }
 }
index 2255f0f..acc351a 100644 (file)
@@ -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)();
        }
 }