summaryrefslogtreecommitdiff
path: root/src/stm/ao_adc_stm.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-12-20 22:15:25 -0800
committerKeith Packard <keithp@keithp.com>2013-12-20 22:19:35 -0800
commitb31b4622d5bd92c0cc0851818f5b595dbdb60ead (patch)
tree7ce882a3f9a583903d2054471769a82e7c3de852 /src/stm/ao_adc_stm.c
parent755082d36231c1b247bc0e1f13919dd9b5c362a8 (diff)
altos: Clean up some minor warnings from -Wall
Unused variables, functions and labels, missing enums in switch. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/stm/ao_adc_stm.c')
-rw-r--r--src/stm/ao_adc_stm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/stm/ao_adc_stm.c b/src/stm/ao_adc_stm.c
index 53f19b40..505addfa 100644
--- a/src/stm/ao_adc_stm.c
+++ b/src/stm/ao_adc_stm.c
@@ -109,8 +109,10 @@ static void
ao_adc_dump(void) __reentrant
{
struct ao_data packet;
- int16_t *d;
+#ifndef AO_ADC_DUMP
uint8_t i;
+ int16_t *d;
+#endif
ao_data_get(&packet);
#ifdef AO_ADC_DUMP