summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-08-28 15:43:32 -0700
committerKeith Packard <keithp@keithp.com>2011-08-28 15:43:32 -0700
commit8eaa1c4697a3cfc2406e1adadc3094f7f712341a (patch)
tree633ba7aea9d8f4af99b32ce97a9aef25c9defdb0
parent7c6a3195dec6ac68f5d7b3f883ccc2c316384e76 (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>
-rw-r--r--src/core/ao_panic.c3
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);