diff options
author | Keith Packard <keithp@keithp.com> | 2011-08-28 15:43:32 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-08-28 15:43:32 -0700 |
commit | 8eaa1c4697a3cfc2406e1adadc3094f7f712341a (patch) | |
tree | 633ba7aea9d8f4af99b32ce97a9aef25c9defdb0 /src | |
parent | 7c6a3195dec6ac68f5d7b3f883ccc2c316384e76 (diff) |
altos: Add pragma to eliminate unreachable code warning on SDCC
This pragma was removed as GCC doesn't support it; make it conditional
on SDCC so that we eliminate a warning message.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/core/ao_panic.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/ao_panic.c b/src/core/ao_panic.c index b6ff65cc..244917a8 100644 --- a/src/core/ao_panic.c +++ b/src/core/ao_panic.c @@ -58,6 +58,9 @@ ao_panic(uint8_t reason) ao_beep(AO_BEEP_OFF); ao_panic_delay(2); +#ifdef SDCC +#pragma disable_warning 126 +#endif for (n = 0; n < reason; n++) { ao_led_on(AO_LED_RED); ao_beep(AO_BEEP_MID); |