From d2d227a23d96c11b619ec17d9e35d82bef543a62 Mon Sep 17 00:00:00 2001 From: Robert Norton Date: Tue, 26 Jun 2018 16:41:13 +0100 Subject: turn on warnings when compiling mips c then dial back ones that are triggered by generated code (probably false positives). Fix some warnings in rts.c --- mips/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mips/Makefile') diff --git a/mips/Makefile b/mips/Makefile index b43dd5d9..3592ac54 100644 --- a/mips/Makefile +++ b/mips/Makefile @@ -18,8 +18,8 @@ mips: $(MIPS_PRE) $(MIPS_TLB) $(MIPS_SAILS) $(MIPS_MAIN) ../sail mips.c: $(MIPS_PRE) $(MIPS_TLB) $(MIPS_SAILS) $(MIPS_MAIN) Makefile ../sail $(SAIL) -O -memo_z3 -c $(filter %.sail, $^) 1> $@ -mips_c: mips.c ../lib/sail.h Makefile - gcc -O2 -g -I ../lib $< ../lib/*.c -lgmp -lz -o $@ +mips_c: mips.c ../lib/sail.h ../lib/*.c Makefile + gcc -Wall -Wno-unused-but-set-variable -Wno-unused-label -Wno-maybe-uninitialized -Wno-return-type -O2 -g -I ../lib $< ../lib/*.c -lgmp -lz -o $@ sim.dtb: sim.dts dtc -O dtb -o $@ -b 0 $< -- cgit v1.2.3