From bbba320911a86c0ee373f8297f80a2b82de22039 Mon Sep 17 00:00:00 2001 From: notaz Date: Mon, 5 Sep 2011 19:31:58 +0300 Subject: enable -Wall and fix warnings reported by it --- gp2x/Makefile | 8 ++++++-- gp2x/gp2x.c | 2 ++ 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'gp2x') diff --git a/gp2x/Makefile b/gp2x/Makefile index 529fa37..9d281c1 100644 --- a/gp2x/Makefile +++ b/gp2x/Makefile @@ -29,7 +29,7 @@ CFLAGS += -DWIZ_BUILD endif # NOTE: -funroll-loops will slow down compiling considerably CFLAGS += -O3 -std=c99 -msoft-float -funsigned-char -fno-common \ - -fno-builtin \ + -fno-builtin -Wall \ INCLUDES = `$(PREFIX)/bin/sdl-config --cflags` -I$(PREFIX)/include LIBS = `$(PREFIX)/bin/sdl-config --libs` \ @@ -42,6 +42,10 @@ endif .SUFFIXES: .c +all: $(BIN) + +cpu.o cpu_threaded.z: CFLAGS += -Wno-unused-variable -Wno-unused-label + %.z: %.c $(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $< @@ -57,7 +61,7 @@ endif %.o: %.s $(CC) $(ASFLAGS) $(INCLUDES) -c -o $@ $< -all: $(OBJS) +$(BIN): $(OBJS) $(CC) $(OBJS) $(LIBS) -o $(BIN) $(STRIP) $(BIN) diff --git a/gp2x/gp2x.c b/gp2x/gp2x.c index ad3c215..7bef895 100644 --- a/gp2x/gp2x.c +++ b/gp2x/gp2x.c @@ -32,7 +32,9 @@ static u32 gpsp_gp2x_dev_audio; static u32 gpsp_gp2x_dev; +#ifdef WIZ_BUILD static u32 gpsp_gp2x_gpiodev; +#endif static u32 gp2x_audio_volume = 74/2; -- cgit v1.2.3