More warnings courtesy of -Wextra
This commit is contained in:
2
Makefile
2
Makefile
@@ -6,7 +6,7 @@ SSRCS=crt0.s
|
|||||||
CSRCS=main.c i2c.c wmp.c timer.c
|
CSRCS=main.c i2c.c wmp.c timer.c
|
||||||
|
|
||||||
COPTIM?=-O1
|
COPTIM?=-O1
|
||||||
CFLAGS=-march=armv4t -msoft-float $(COPTIM) -Wall -Werror
|
CFLAGS=-march=armv4t -msoft-float $(COPTIM) -Wall -Werror -Wextra
|
||||||
|
|
||||||
LDSCRIPT=lpc2103_flash.ld
|
LDSCRIPT=lpc2103_flash.ld
|
||||||
CC=arm-elf-gcc
|
CC=arm-elf-gcc
|
||||||
|
|||||||
12
main.c
12
main.c
@@ -100,12 +100,12 @@ unsigned int count = 0;
|
|||||||
void minmax_sample(void)
|
void minmax_sample(void)
|
||||||
{
|
{
|
||||||
int count;
|
int count;
|
||||||
int fast_roll_min, fast_roll_max;
|
unsigned int fast_roll_min, fast_roll_max;
|
||||||
int fast_pitch_min, fast_pitch_max;
|
unsigned int fast_pitch_min, fast_pitch_max;
|
||||||
int fast_yaw_min, fast_yaw_max;
|
unsigned int fast_yaw_min, fast_yaw_max;
|
||||||
int slow_roll_min, slow_roll_max;
|
unsigned int slow_roll_min, slow_roll_max;
|
||||||
int slow_pitch_min, slow_pitch_max;
|
unsigned int slow_pitch_min, slow_pitch_max;
|
||||||
int slow_yaw_min, slow_yaw_max;
|
unsigned int slow_yaw_min, slow_yaw_max;
|
||||||
|
|
||||||
putstr("Sampling min/max values\r\n");
|
putstr("Sampling min/max values\r\n");
|
||||||
if (!wmp_sample()) {
|
if (!wmp_sample()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user