Globally enable -Wall warnings for GCC
This commit is contained in:
parent
900a273d3d
commit
c2da8cb535
9 changed files with 4 additions and 13 deletions
|
@ -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 \
|
eef2.c eefd.c eehelp.c eekmac.c eef3.c eesrch.c eequer.c \
|
||||||
eefill.c eediag.c sbstr.c sbm.c sberr.c
|
eefill.c eediag.c sbstr.c sbm.c sberr.c
|
||||||
SRCS.ellec= ellec.c
|
SRCS.ellec= ellec.c
|
||||||
CPPFLAGS+= -DIGN_JOB_CONTROL -wa
|
CPPFLAGS+= -DIGN_JOB_CONTROl
|
||||||
MAN.elle=
|
MAN.elle=
|
||||||
MAN.ellec=
|
MAN.ellec=
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,6 @@
|
||||||
PROG= find
|
PROG= find
|
||||||
SRCS= find.c function.c ls.c main.c misc.c operator.c option.c
|
SRCS= find.c function.c ls.c main.c misc.c operator.c option.c
|
||||||
|
|
||||||
CFLAGS += -Wall
|
|
||||||
|
|
||||||
LDADD+=-lutil
|
LDADD+=-lutil
|
||||||
DPADD+=${LIBUTIL}
|
DPADD+=${LIBUTIL}
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,6 @@ LDADD= -lz
|
||||||
DPADD= ${LIBZ}
|
DPADD= ${LIBZ}
|
||||||
|
|
||||||
.if ${COMPILER_TYPE} == "gnu"
|
.if ${COMPILER_TYPE} == "gnu"
|
||||||
CFLAGS+= -Wall
|
|
||||||
CPPFLAGS+= -isystem ../../../include
|
CPPFLAGS+= -isystem ../../../include
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
|
|
@ -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) {
|
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) {
|
while(table->vendor) {
|
||||||
if(table->vendor == vid && table->device == did &&
|
if(table->vendor == vid && table->device == did &&
|
||||||
table->pci_class == bcr &&
|
table->pci_class == bcr &&
|
||||||
|
|
|
@ -12,6 +12,6 @@ MAN=
|
||||||
BINDIR?= /usr/sbin
|
BINDIR?= /usr/sbin
|
||||||
|
|
||||||
debug= 0
|
debug= 0
|
||||||
CPPFLAGS+= -Ddebug=${debug} -ws -w -Wall
|
CPPFLAGS+= -Ddebug=${debug} -w
|
||||||
|
|
||||||
.include <bsd.prog.mk>
|
.include <bsd.prog.mk>
|
||||||
|
|
|
@ -10,4 +10,3 @@ INSTALLFLAGS+= -S 128k
|
||||||
|
|
||||||
MAN=
|
MAN=
|
||||||
.include <bsd.prog.mk>
|
.include <bsd.prog.mk>
|
||||||
CFLAGS += -Wall
|
|
||||||
|
|
|
@ -21,6 +21,6 @@ BINDIR?= /usr/sbin
|
||||||
CPPFLAGS+= -I${.CURDIR} -D_MINIX -D_SYSTEM
|
CPPFLAGS+= -I${.CURDIR} -D_MINIX -D_SYSTEM
|
||||||
CPPFLAGS+= -I${.CURDIR}/../../lib/liblwip/include
|
CPPFLAGS+= -I${.CURDIR}/../../lib/liblwip/include
|
||||||
|
|
||||||
CFLAGS += -Wall -Wextra -std=c99
|
CFLAGS += -Wextra -std=c99
|
||||||
|
|
||||||
.include <bsd.prog.mk>
|
.include <bsd.prog.mk>
|
||||||
|
|
|
@ -16,9 +16,6 @@ INSTALLFLAGS+= -S 128k
|
||||||
|
|
||||||
CPPFLAGS+= -I${.CURDIR} -I${.CURDIR}/arch/${ARCH}
|
CPPFLAGS+= -I${.CURDIR} -I${.CURDIR}/arch/${ARCH}
|
||||||
CPPFLAGS+= -I${MINIXSRCDIR}
|
CPPFLAGS+= -I${MINIXSRCDIR}
|
||||||
.if ${CC} == gcc
|
|
||||||
CFLAGS+= -Wall -Werror
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.include "arch/${ARCH}/Makefile.inc"
|
.include "arch/${ARCH}/Makefile.inc"
|
||||||
.include <bsd.prog.mk>
|
.include <bsd.prog.mk>
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
AFLAGS+=-D__ASSEMBLY__ -D_EM_WSIZE=4
|
AFLAGS+=-D__ASSEMBLY__ -D_EM_WSIZE=4
|
||||||
CFLAGS+= -fno-builtin
|
CFLAGS+= -fno-builtin -Wall
|
||||||
|
|
Loading…
Reference in a new issue