diff options
Diffstat (limited to 'usr/src/tools')
| -rw-r--r-- | usr/src/tools/aw/Makefile | 5 | ||||
| -rw-r--r-- | usr/src/tools/codereview/Makefile | 3 | ||||
| -rw-r--r-- | usr/src/tools/cscope-fast/Makefile | 8 | ||||
| -rw-r--r-- | usr/src/tools/ctf/Makefile.ctf | 3 | ||||
| -rw-r--r-- | usr/src/tools/ctf/ctfstrip/Makefile | 1 | ||||
| -rw-r--r-- | usr/src/tools/ctf/cvt/Makefile.com | 4 | ||||
| -rw-r--r-- | usr/src/tools/ctf/dump/Makefile.com | 2 | ||||
| -rw-r--r-- | usr/src/tools/ctf/dwarf/Makefile.com | 2 | ||||
| -rw-r--r-- | usr/src/tools/ctf/stabs/Makefile.com | 2 | ||||
| -rw-r--r-- | usr/src/tools/cw/cw.c | 16 | ||||
| -rw-r--r-- | usr/src/tools/elfextract/Makefile | 3 | ||||
| -rw-r--r-- | usr/src/tools/elfsign/Makefile | 2 | ||||
| -rw-r--r-- | usr/src/tools/findunref/Makefile | 3 | ||||
| -rw-r--r-- | usr/src/tools/install.bin/Makefile | 1 | ||||
| -rw-r--r-- | usr/src/tools/ndrgen/Makefile | 2 | ||||
| -rw-r--r-- | usr/src/tools/pmodes/Makefile | 2 | ||||
| -rw-r--r-- | usr/src/tools/protocmp/Makefile | 2 | ||||
| -rw-r--r-- | usr/src/tools/protolist/Makefile | 1 |
18 files changed, 42 insertions, 20 deletions
diff --git a/usr/src/tools/aw/Makefile b/usr/src/tools/aw/Makefile index 77ad41aff0..af2bf8f735 100644 --- a/usr/src/tools/aw/Makefile +++ b/usr/src/tools/aw/Makefile @@ -23,16 +23,13 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# -# tools/aw/Makefile -# PROG = aw include ../Makefile.tools CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized LINTFLAGS += -ux -Xa -errchk=locfmtchk,parentheses diff --git a/usr/src/tools/codereview/Makefile b/usr/src/tools/codereview/Makefile index fb826203d3..ba126eb340 100644 --- a/usr/src/tools/codereview/Makefile +++ b/usr/src/tools/codereview/Makefile @@ -22,7 +22,6 @@ # Copyright 1999 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" PROG= codereview @@ -33,6 +32,8 @@ TMPDIR= /tmp include ../Makefile.tools +CERRWARN += -_gcc=-Wno-parentheses + MAN1FILES= codereview.1 $(ROOTONBLDMAN1FILES) := FILEMODE= 644 diff --git a/usr/src/tools/cscope-fast/Makefile b/usr/src/tools/cscope-fast/Makefile index b37183c3cb..6a2270bbed 100644 --- a/usr/src/tools/cscope-fast/Makefile +++ b/usr/src/tools/cscope-fast/Makefile @@ -19,11 +19,11 @@ # # CDDL HEADER END # -# -# ident "%Z%%M% %I% %E% SMI" + # # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. +# PROG= cscope-fast @@ -45,6 +45,10 @@ PATLEN= 250 STMTMAX= 10000 YYLMAX= 10251 CFLAGS += -DPATLEN=$(PATLEN) -DSTMTMAX=$(STMTMAX) -DYYLMAX=$(YYLMAX) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-unused +CERRWARN += -_gcc=-Wno-uninitialized CFLAGS += $(CCVERBOSE) LDLIBS += -lcurses -ll diff --git a/usr/src/tools/ctf/Makefile.ctf b/usr/src/tools/ctf/Makefile.ctf index 7b42b93bb6..ace863e89b 100644 --- a/usr/src/tools/ctf/Makefile.ctf +++ b/usr/src/tools/ctf/Makefile.ctf @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# include ../../../Makefile.tools @@ -46,3 +44,4 @@ HDRDIRS= \ CPPFLAGS += $(HDRDIRS) CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses diff --git a/usr/src/tools/ctf/ctfstrip/Makefile b/usr/src/tools/ctf/ctfstrip/Makefile index 80eca447e4..dee8591408 100644 --- a/usr/src/tools/ctf/ctfstrip/Makefile +++ b/usr/src/tools/ctf/ctfstrip/Makefile @@ -17,6 +17,7 @@ SRCS = \ CFLAGS += $(CCVERBOSE) include $(SRC)/tools/Makefile.tools +CERRWARN += -_gcc=-Wno-unused-variable OBJS = $(SRCS:%.c=%.o) LINTFILES = $(SRCS:%.c=%.ln) diff --git a/usr/src/tools/ctf/cvt/Makefile.com b/usr/src/tools/ctf/cvt/Makefile.com index 051751ec5a..fb35379c3a 100644 --- a/usr/src/tools/ctf/cvt/Makefile.com +++ b/usr/src/tools/ctf/cvt/Makefile.com @@ -78,6 +78,10 @@ CPPFLAGS += -D_REENTRANT CFLAGS += $(CTF_FLAGS) LINTFLAGS += -mnux +CERRWARN += -_gcc=-Wno-unused +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch + C99MODE = $(C99_ENABLE) ctfconvert := LDFLAGS += $(DWARFLDFLAGS) diff --git a/usr/src/tools/ctf/dump/Makefile.com b/usr/src/tools/ctf/dump/Makefile.com index 2fbbeb1415..ca3e925d01 100644 --- a/usr/src/tools/ctf/dump/Makefile.com +++ b/usr/src/tools/ctf/dump/Makefile.com @@ -36,6 +36,8 @@ LDLIBS += -lelf -lz OBJS = $(SRCS:%.c=%.o) LINTFILES = $(SRCS:%.c=%.ln) +CERRWARN += -_gcc=-Wno-uninitialized + .NO_PARALLEL: .PARALLEL: $(OBJS) $(LINTFILES) diff --git a/usr/src/tools/ctf/dwarf/Makefile.com b/usr/src/tools/ctf/dwarf/Makefile.com index 4c25cdda1d..51e788ff04 100644 --- a/usr/src/tools/ctf/dwarf/Makefile.com +++ b/usr/src/tools/ctf/dwarf/Makefile.com @@ -74,6 +74,8 @@ FILEMODE = 0755 SRCDIR = ../common/ CPPFLAGS += -I$(SRCDIR) -DELF_TARGET_ALL=1 +CERRWARN += -_gcc=-Wno-unused +CERRWARN += -_gcc=-Wno-implicit-function-declaration LDLIBS = -lelf -lc diff --git a/usr/src/tools/ctf/stabs/Makefile.com b/usr/src/tools/ctf/stabs/Makefile.com index e3f8e9689a..6703c34f06 100644 --- a/usr/src/tools/ctf/stabs/Makefile.com +++ b/usr/src/tools/ctf/stabs/Makefile.com @@ -44,6 +44,8 @@ OBJS = $(SRCS:%.c=%.o) LINTFILES = $(SRCS:%.c=%.ln) LINTFLAGS = -mnux -L$(ROOT)/usr/lib +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused .NO_PARALLEL: .PARALLEL: $(OBJS) $(LINTFILES) diff --git a/usr/src/tools/cw/cw.c b/usr/src/tools/cw/cw.c index 7e27294770..ded39c12ff 100644 --- a/usr/src/tools/cw/cw.c +++ b/usr/src/tools/cw/cw.c @@ -526,17 +526,12 @@ warnings(struct aelist *h) if (warningsonce++) return; + /* + * Enable as many warnings as exist, then disable those that we never + * ever want. + */ newae(h, "-Wall"); - newae(h, "-Wno-unknown-pragmas"); - newae(h, "-Wno-missing-braces"); - newae(h, "-Wno-sign-compare"); - newae(h, "-Wno-parentheses"); - newae(h, "-Wno-uninitialized"); - newae(h, "-Wno-implicit-function-declaration"); - newae(h, "-Wno-unused"); - newae(h, "-Wno-trigraphs"); - newae(h, "-Wno-char-subscripts"); - newae(h, "-Wno-switch"); + newae(h, "-Wextra"); } static void @@ -655,6 +650,7 @@ do_gcc(cw_ictx_t *ctx) newae(ctx->i_ae, "-fno-inline-functions"); newae(ctx->i_ae, "-fno-builtin"); newae(ctx->i_ae, "-fno-asm"); + newae(ctx->i_ae, "-fdiagnostics-show-option"); newae(ctx->i_ae, "-nodefaultlibs"); #if defined(__sparc) diff --git a/usr/src/tools/elfextract/Makefile b/usr/src/tools/elfextract/Makefile index 7a3e6838d4..9f153231fb 100644 --- a/usr/src/tools/elfextract/Makefile +++ b/usr/src/tools/elfextract/Makefile @@ -23,7 +23,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" include ../Makefile.tools @@ -31,6 +30,8 @@ PROG = elfextract include ../Makefile.tools +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-implicit-function-declaration .KEEP_STATE: diff --git a/usr/src/tools/elfsign/Makefile b/usr/src/tools/elfsign/Makefile index 29e18c13d9..ece759e450 100644 --- a/usr/src/tools/elfsign/Makefile +++ b/usr/src/tools/elfsign/Makefile @@ -49,6 +49,8 @@ CPPFLAGS += -I$(SRC)/lib/libkmf/include CPPFLAGS += -I$(SRC)/lib/libcryptoutil/common LDFLAGS += -lmd -lelf -lkmf -lcryptoutil -lc +CERRWARN += -_gcc=-Wno-unused + .KEEP_STATE: all: $(PROG) $(SHFILES) diff --git a/usr/src/tools/findunref/Makefile b/usr/src/tools/findunref/Makefile index 752174a9f6..7023c2ab35 100644 --- a/usr/src/tools/findunref/Makefile +++ b/usr/src/tools/findunref/Makefile @@ -31,6 +31,9 @@ LINTFLAGS += -ux include ../Makefile.tools +CERRWARN += -_gcc=-Wno-unused +CERRWARN += -_gcc=-Wno-parentheses + $(ROOTONBLDMAN1FILES) := FILEMODE= 644 EXCEPTION_SRC= common open diff --git a/usr/src/tools/install.bin/Makefile b/usr/src/tools/install.bin/Makefile index a049e94ccd..216e79e63e 100644 --- a/usr/src/tools/install.bin/Makefile +++ b/usr/src/tools/install.bin/Makefile @@ -31,6 +31,7 @@ SRCS= $(PROG).c ../protocmp/stdusers.c include ../Makefile.tools CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-type-limits CPPFLAGS += -I../protocmp LDLIBS += -lgen CLEANFILES += $(OBJS) diff --git a/usr/src/tools/ndrgen/Makefile b/usr/src/tools/ndrgen/Makefile index 1a94e3128e..a60e584989 100644 --- a/usr/src/tools/ndrgen/Makefile +++ b/usr/src/tools/ndrgen/Makefile @@ -34,6 +34,8 @@ SRCS= $(OBJS:%.o=%.c) include ../Makefile.tools CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused CLEANFILES += $(OBJS) y.tab.c y.tab.h diff --git a/usr/src/tools/pmodes/Makefile b/usr/src/tools/pmodes/Makefile index 6552242279..7f669bb433 100644 --- a/usr/src/tools/pmodes/Makefile +++ b/usr/src/tools/pmodes/Makefile @@ -32,6 +32,8 @@ CLEANFILES += $(OBJS) include ../Makefile.tools CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized .KEEP_STATE: diff --git a/usr/src/tools/protocmp/Makefile b/usr/src/tools/protocmp/Makefile index 32f804c009..ace2b982b3 100644 --- a/usr/src/tools/protocmp/Makefile +++ b/usr/src/tools/protocmp/Makefile @@ -33,6 +33,8 @@ CLEANFILES += $(CMP_OBJS) include ../Makefile.tools CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused .KEEP_STATE: diff --git a/usr/src/tools/protolist/Makefile b/usr/src/tools/protolist/Makefile index 7fd71a1762..5f93e59df8 100644 --- a/usr/src/tools/protolist/Makefile +++ b/usr/src/tools/protolist/Makefile @@ -30,6 +30,7 @@ include ../Makefile.tools CFLAGS += $(CCVERBOSE) CPPFLAGS += -I../protocmp +CERRWARN += -_gcc=-Wno-parentheses CLEANFILES += $(OBJS) .KEEP_STATE: |
