]> Zhao Yanbai Git Server - minix.git/commitdiff
Globally enable -Wall warnings for GCC
authorErik van der Kouwe <erik@minix3.org>
Wed, 8 Jun 2011 19:19:45 +0000 (19:19 +0000)
committerErik van der Kouwe <erik@minix3.org>
Wed, 8 Jun 2011 19:21:03 +0000 (19:21 +0000)
commands/elle/Makefile
commands/find/Makefile
commands/grep/Makefile
drivers/at_wini/at_wini.c
drivers/dec21140A/Makefile
servers/devman/Makefile
servers/lwip/Makefile
servers/vm/Makefile
share/mk/bsd.gcc.mk

index 8cc771897b3f2f4e5efba18ed815226218a52aef..d93dfe5d12105ac564a45466fa160d5eae9924ff 100644 (file)
@@ -6,7 +6,7 @@ SRCS.elle= eemain.c eecmds.c eesite.c eevini.c eedisp.c eeterm.c eeerr.c  \
       eef2.c eefd.c eehelp.c eekmac.c eef3.c eesrch.c eequer.c \
       eefill.c eediag.c sbstr.c sbm.c sberr.c
 SRCS.ellec= ellec.c
-CPPFLAGS+= -DIGN_JOB_CONTROL -wa
+CPPFLAGS+= -DIGN_JOB_CONTROl
 MAN.elle=
 MAN.ellec=
 
index ec8f99c60e0080cb990924e9946340c27334abbd..5cbcfd73abe9dc939952924c08b9fb955cf68e9a 100644 (file)
@@ -6,8 +6,6 @@
 PROG=  find
 SRCS=  find.c function.c ls.c main.c misc.c operator.c option.c
 
-CFLAGS += -Wall
-
 LDADD+=-lutil
 DPADD+=${LIBUTIL}
 
index cd28a33f755ebf71179e33f9bc9fbab163bd67be..8aa2ff9c793ff11c5e297b52ac97baad3fbfe855 100644 (file)
@@ -19,7 +19,6 @@ LDADD=  -lz
 DPADD=  ${LIBZ}
 
 .if ${COMPILER_TYPE} == "gnu"
-CFLAGS+= -Wall
 CPPFLAGS+= -isystem ../../../include
 .endif
 
index 21c5fe1a1274a7f75416d1afa5e484693c78c0a3..3577b9dad5b42874304fbe3a1331a73b97eef13e 100644 (file)
@@ -399,8 +399,6 @@ PRIVATE void init_drive(struct wini *w, int base_cmd, int base_ctl,
 }
 
 PRIVATE int quirkmatch(struct quirk *table, u8_t bcr, u8_t scr, u8_t interface, u16_t vid, u16_t did) {
-       int i = 0;
-
        while(table->vendor) {
                if(table->vendor == vid && table->device == did &&
                        table->pci_class == bcr &&
index d86b181ab46fcdb5921f56a04d8b2cdc6d646e14..09bdba94c53e70e09a3a202f359ebc5305d052a7 100644 (file)
@@ -12,6 +12,6 @@ MAN=
 BINDIR?= /usr/sbin
 
 debug=         0
-CPPFLAGS+=     -Ddebug=${debug} -ws -w -Wall
+CPPFLAGS+=     -Ddebug=${debug} -w
 
 .include <bsd.prog.mk>
index 1a6840e6607f2c77b2fc37394aae1b6a2813bed1..a839f535fe107b8479673c068d37f8c5f1129018 100644 (file)
@@ -10,4 +10,3 @@ INSTALLFLAGS+=        -S 128k
 
 MAN=
 .include <bsd.prog.mk>
-CFLAGS += -Wall
index 34afd7f536ab6db8d3ff8cd0cfcea7fd4b51590c..728984673540c902bd30de664325df72091f79f4 100644 (file)
@@ -21,6 +21,6 @@ BINDIR?= /usr/sbin
 CPPFLAGS+=  -I${.CURDIR} -D_MINIX -D_SYSTEM
 CPPFLAGS+= -I${.CURDIR}/../../lib/liblwip/include
 
-CFLAGS += -Wall -Wextra -std=c99
+CFLAGS += -Wextra -std=c99
 
 .include <bsd.prog.mk>
index 511b29d93b1c949aa5ab7b88de7257ab56579b92..ca6ef54d6e1157f205e0630ebd1bc3e571e23b23 100644 (file)
@@ -16,9 +16,6 @@ INSTALLFLAGS+=        -S 128k
 
 CPPFLAGS+= -I${.CURDIR} -I${.CURDIR}/arch/${ARCH}
 CPPFLAGS+=     -I${MINIXSRCDIR}
-.if ${CC} == gcc
-CFLAGS+= -Wall -Werror
-.endif
 
 .include "arch/${ARCH}/Makefile.inc"
 .include <bsd.prog.mk>
index 66ee4ee40b90a104b3347d098dc1f57b91bfb85c..e132ae809619204807d153821e07e0bf6b91b271 100644 (file)
@@ -1,2 +1,2 @@
 AFLAGS+=-D__ASSEMBLY__ -D_EM_WSIZE=4
-CFLAGS+= -fno-builtin
+CFLAGS+= -fno-builtin -Wall