diff options
| author | Keith Packard <keithp@keithp.com> | 2013-12-20 22:43:18 -0800 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2013-12-20 22:44:04 -0800 | 
| commit | 5c9172ba5681ff93d63c9c263a453d0025170045 (patch) | |
| tree | 4d4bb736b1bb76d321e5efaefe2b23f5d389a1ce /src/core | |
| parent | db8f3426ac1cf756a2e4974ca61a5ae9048c80ce (diff) | |
altos: Clean up -Wextra warnings
Unused variables, mismatching signed/unsigned and a few other misc
warnings.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/ao_config.c | 2 | ||||
| -rw-r--r-- | src/core/ao_fec.h | 2 | ||||
| -rw-r--r-- | src/core/ao_gps_report_metrum.c | 3 | ||||
| -rw-r--r-- | src/core/ao_log_metrum.c | 1 | ||||
| -rw-r--r-- | src/core/ao_radio_cmac.c | 1 | ||||
| -rw-r--r-- | src/core/ao_telemetry.c | 1 | 
6 files changed, 4 insertions, 6 deletions
diff --git a/src/core/ao_config.c b/src/core/ao_config.c index 4a1c58b9..590d8a49 100644 --- a/src/core/ao_config.c +++ b/src/core/ao_config.c @@ -658,8 +658,10 @@ ao_config_help(void) __reentrant;  static void  ao_config_show(void) __reentrant; +#if HAS_EEPROM  static void  ao_config_save(void) __reentrant; +#endif  __code struct ao_config_var ao_config_vars[] = {  #if HAS_FLIGHT diff --git a/src/core/ao_fec.h b/src/core/ao_fec.h index eedea8f4..618756c1 100644 --- a/src/core/ao_fec.h +++ b/src/core/ao_fec.h @@ -31,7 +31,7 @@ void  ao_fec_dump_bytes(const uint8_t *bytes, uint16_t len, const char *name);  #endif -static uint16_t inline +static inline uint16_t  ao_fec_crc_byte(uint8_t byte, uint16_t crc)  {  	uint8_t	bit; diff --git a/src/core/ao_gps_report_metrum.c b/src/core/ao_gps_report_metrum.c index fa038976..696a833b 100644 --- a/src/core/ao_gps_report_metrum.c +++ b/src/core/ao_gps_report_metrum.c @@ -24,9 +24,8 @@ ao_gps_report_metrum(void)  	static __xdata struct ao_log_metrum		gps_log;  	static __xdata struct ao_telemetry_location	gps_data;  	static __xdata struct ao_telemetry_satellite	gps_tracking_data; -	uint8_t	c, n, i, p, valid, packets; +	uint8_t	c, n, i;  	uint8_t svid; -	uint8_t	date_reported = 0;  	uint8_t new;  	for (;;) { diff --git a/src/core/ao_log_metrum.c b/src/core/ao_log_metrum.c index 43441e7a..91624d98 100644 --- a/src/core/ao_log_metrum.c +++ b/src/core/ao_log_metrum.c @@ -81,7 +81,6 @@ void  ao_log(void)  {  	__pdata uint16_t	next_sensor, next_other; -	uint8_t			i;  	ao_storage_setup(); diff --git a/src/core/ao_radio_cmac.c b/src/core/ao_radio_cmac.c index 3ca3c313..bff848f6 100644 --- a/src/core/ao_radio_cmac.c +++ b/src/core/ao_radio_cmac.c @@ -21,7 +21,6 @@  static __xdata uint8_t ao_radio_cmac_mutex;  __pdata int8_t ao_radio_cmac_rssi;  static __xdata uint8_t cmac_data[AO_CMAC_MAX_LEN + AO_CMAC_KEY_LEN + 2 + AO_CMAC_KEY_LEN]; -static __pdata uint8_t ao_radio_cmac_len;  static uint8_t  round_len(uint8_t len) diff --git a/src/core/ao_telemetry.c b/src/core/ao_telemetry.c index e529b717..86158063 100644 --- a/src/core/ao_telemetry.c +++ b/src/core/ao_telemetry.c @@ -211,7 +211,6 @@ ao_send_metrum_data(void)  {  	if (--ao_telemetry_metrum_data_cur <= 0) {  		__xdata	struct ao_data *packet = (__xdata struct ao_data *) &ao_data_ring[ao_data_ring_prev(ao_sample_data)]; -		uint8_t	i;  		telemetry.generic.tick = packet->tick;  		telemetry.generic.type = AO_TELEMETRY_METRUM_DATA;  | 
