Fix vgahook sign issue; add warning to build to catch future cases.
authorKevin O'Connor <kevin@koconnor.net>
Sun, 3 Jan 2010 23:09:08 +0000 (18:09 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Sun, 3 Jan 2010 23:09:08 +0000 (18:09 -0500)
Makefile
src/vgahooks.c

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 \
index 26ae1563b199e9f7770c45f886daac231687ee0f..26c5d354994ac812623666d72a6050867d3c7dc2 100644 (file)
@@ -106,7 +106,7 @@ getAMDRamSpeed(void)
 static void
 via_155f18(struct bregs *regs)
 {
-    u32 ramspeed, fbsize;
+    int ramspeed, fbsize;
 
     int bdf = pci_find_device(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_K8M890CE_3);
     if (bdf >= 0) {