Fix vgahook sign issue; add warning to build to catch future cases.
[seabios.git] / Makefile
index 1021e66632e2ce9ca8ebc517391e77d4ee5e0fb2..c33647e065154e016672178e7eed1bb6553c8e80 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -25,7 +25,8 @@ cc-option = $(shell if test -z "`$(1) $(2) -S -o /dev/null -xc \
               /dev/null 2>&1`"; then echo "$(2)"; else echo "$(3)"; fi ;)
 
 # Default compiler flags
-COMMONCFLAGS = -Os -MD -Wall -Wold-style-definition -Wno-strict-aliasing \
+COMMONCFLAGS = -Os -MD -Wall -Wno-strict-aliasing -Wold-style-definition \
+               $(call cc-option,$(CC),-Wtype-limits,) \
                -m32 -march=i386 -mregparm=3 -mpreferred-stack-boundary=2 \
                -mrtd -minline-all-stringops \
                -freg-struct-return -ffreestanding -fomit-frame-pointer \