From 91c1c7e6bedfe066e833eac8ccae1f93b9346891 Mon Sep 17 00:00:00 2001 From: Gavan Fantom Date: Wed, 18 May 2011 14:47:56 +0000 Subject: [PATCH] More warnings courtesy of -Wextra --- Makefile | 2 +- main.c | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 09a5b5d..13496ee 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/main.c b/main.c index aac509e..a24f7b9 100644 --- a/main.c +++ b/main.c @@ -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()) {