diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2012-05-05 21:27:07 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2012-05-05 21:27:07 +0000 |
commit | 430973263bcf11e56c3362d2c714cc8f8c95c354 (patch) | |
tree | 38157d1841b961712c440ccb975883076e932f45 /Bootloaders | |
parent | 0e434c8f8fc1e33230a9b9c54583d59a232553e5 (diff) | |
download | lufa-430973263bcf11e56c3362d2c714cc8f8c95c354.tar.gz lufa-430973263bcf11e56c3362d2c714cc8f8c95c354.tar.bz2 lufa-430973263bcf11e56c3362d2c714cc8f8c95c354.zip |
Fix bootloaders to make the StaticAnalysis build test happy.
Diffstat (limited to 'Bootloaders')
-rw-r--r-- | Bootloaders/CDC/BootloaderCDC.c | 3 | ||||
-rw-r--r-- | Bootloaders/HID/BootloaderHID.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/Bootloaders/CDC/BootloaderCDC.c b/Bootloaders/CDC/BootloaderCDC.c index d057349c7..211b054e3 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 2255f0ffa..acc351a30 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)(); } } |