Browse Source

More warnings courtesy of -Wextra

master
Gavan Fantom 14 years ago
parent
commit
91c1c7e6be
  1. 2
      Makefile
  2. 12
      main.c

2
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

12
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()) {

Loading…
Cancel
Save