More warnings courtesy of -Wextra

This commit is contained in:
2011-05-18 14:47:56 +00:00
parent 6e7ef6488f
commit 91c1c7e6be
2 changed files with 7 additions and 7 deletions

View File

@@ -6,7 +6,7 @@ SSRCS=crt0.s
CSRCS=main.c i2c.c wmp.c timer.c
COPTIM?=-O1
CFLAGS=-march=armv4t -msoft-float $(COPTIM) -Wall -Werror
CFLAGS=-march=armv4t -msoft-float $(COPTIM) -Wall -Werror -Wextra
LDSCRIPT=lpc2103_flash.ld
CC=arm-elf-gcc

12
main.c
View File

@@ -100,12 +100,12 @@ unsigned int count = 0;
void minmax_sample(void)
{
int count;
int fast_roll_min, fast_roll_max;
int fast_pitch_min, fast_pitch_max;
int fast_yaw_min, fast_yaw_max;
int slow_roll_min, slow_roll_max;
int slow_pitch_min, slow_pitch_max;
int slow_yaw_min, slow_yaw_max;
unsigned int fast_roll_min, fast_roll_max;
unsigned int fast_pitch_min, fast_pitch_max;
unsigned int fast_yaw_min, fast_yaw_max;
unsigned int slow_roll_min, slow_roll_max;
unsigned int slow_pitch_min, slow_pitch_max;
unsigned int slow_yaw_min, slow_yaw_max;
putstr("Sampling min/max values\r\n");
if (!wmp_sample()) {