altos: Clean up some minor warnings from -Wall
[fw/altos] / src / stm / ao_adc_stm.c
index 53f19b406d20a884f6c33b6219b2dc55f10e9b76..505addfac7a64b810660497478be53eaabcdaeb1 100644 (file)
@@ -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