# HG changeset patch # User Richard Lowe # Date 1342987426 14400 # Node ID 58bc6f85b7997e6fe5c0e0c1a52d4a1779664e54 # Parent 6bef548f1800a827045e8232d4a469601cfa2b6b 2933 compiler warning gags need better granularity Reviewed by: Eric Schrock Approved by: Garrett D'Amore diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/Makefile.master --- a/usr/src/Makefile.master Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/Makefile.master Sun Jul 22 16:03:46 2012 -0400 @@ -403,7 +403,20 @@ CERRWARN = -errtags=yes -errwarn=%all CERRWARN += -erroff=E_EMPTY_TRANSLATION_UNIT CERRWARN += -erroff=E_STATEMENT_NOT_REACHED -CERRWARN += -_gcc=-Wno-address -_gcc=-Wno-array-bounds + +CERRWARN += -_gcc=-Wno-missing-braces +CERRWARN += -_gcc=-Wno-sign-compare +CERRWARN += -_gcc=-Wno-unknown-pragmas +CERRWARN += -_gcc=-Wno-unused-parameter +CERRWARN += -_gcc=-Wno-missing-field-initializers + +# Unfortunately, this option can misfire very easily and unfixably. +CERRWARN += -_gcc=-Wno-array-bounds + +# DEBUG v. -nd make for frequent unused variables, empty conditions, etc. in +# -nd builds +$(RELEASE_BUILD)CERRWARN += -_gcc=-Wno-unused +$(RELEASE_BUILD)CERRWARN += -_gcc=-Wno-empty-body # # turn warnings into errors (C++) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/abi/appcert/static_prof/Makefile.com --- a/usr/src/cmd/abi/appcert/static_prof/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/abi/appcert/static_prof/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright (c) 1997-2000 by Sun Microsystems, Inc. # All rights reserved. # -#ident "%Z%%M% %I% %E% SMI" -# # cmd/abi/appcert/static_prof/Makefile.com # @@ -35,6 +33,8 @@ # CPPFLAGS = -I.. CFLAGS += $(LDLIBS) +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-parentheses LDLIBS = -lelf LINTFLAGS = -nmxsuF -errtags=yes diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/abi/spectrans/parser/Makefile.targ --- a/usr/src/cmd/abi/spectrans/parser/Makefile.targ Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/abi/spectrans/parser/Makefile.targ Sun Jul 22 16:03:46 2012 -0400 @@ -23,10 +23,6 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# -# cmd/abi/spectrans/util/Makefile.targ -# .KEEP_STATE: @@ -45,6 +41,10 @@ CLEANFILES += $(LINTOUT) CLOBBERFILES += $(LINTLIB) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + objs/%.o: ../%.c $(COMPILE.c) -o $@ $< $(POST_PROCESS_O) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/abi/spectrans/spec2map/Makefile.targ --- a/usr/src/cmd/abi/spectrans/spec2map/Makefile.targ Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/abi/spectrans/spec2map/Makefile.targ Sun Jul 22 16:03:46 2012 -0400 @@ -20,12 +20,9 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1997-1999 by Sun Microsystems, Inc. # All rights reserved. # -# cmd/abi/spectrans/spec2map/Makefile.targ .KEEP_STATE: @@ -37,3 +34,5 @@ util.o include ../../Makefile.cmd + +CERRWARN += -_gcc=-Wno-switch diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/abi/spectrans/spec2trace/Makefile.targ --- a/usr/src/cmd/abi/spectrans/spec2trace/Makefile.targ Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/abi/spectrans/spec2trace/Makefile.targ Sun Jul 22 16:03:46 2012 -0400 @@ -20,12 +20,9 @@ # CDDL HEADER END # # -#pragma ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1997-1999 by Sun Microsystems, Inc. # All rights reserved. # -# cmd/abi/spectrans/spec2trace/Makefile.targ .KEEP_STATE: @@ -45,6 +42,11 @@ include ../../Makefile.cmd +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-label + parseproto := RM = @echo keeping # do not remove generated C code parseproto := COPTFLAG = -g -DDEBUG -DMEM_DEBUG -DTRACE parseproto: parseproto.o diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/acct/Makefile --- a/usr/src/cmd/acct/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/acct/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -88,6 +88,11 @@ $(ETCINITPROG) := FILEMODE= 0744 $(ETCACCTPROG) := FILEMODE= 0644 +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-address + .KEEP_STATE: .PARALLEL: $(ALL) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/acct/lib/Makefile --- a/usr/src/cmd/acct/lib/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/acct/lib/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1989 by Sun Microsystems, Inc. # # @@ -34,6 +32,9 @@ include ../../Makefile.cmd CPPFLAGS = -D_LTYPES -I.. $(CPPFLAGS.master) +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-extra .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/acctadm/Makefile --- a/usr/src/cmd/acctadm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/acctadm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -35,6 +35,8 @@ ROOTMANIFESTDIR = $(ROOTSVCSYSTEM) CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses LDLIBS += -lexacct -lscf -lsecdb -ldladm POFILE = acctadm.po XGETFLAGS = -a -x acctadm.xcl diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/addbadsec/Makefile --- a/usr/src/cmd/addbadsec/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/addbadsec/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -32,6 +32,8 @@ CPPFLAGS += -D_EXTVTOC +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/allocate/Makefile --- a/usr/src/cmd/allocate/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/allocate/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -27,6 +27,11 @@ include ../Makefile.cmd +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-clobbered + ROOTSEC = $(ROOTETC)/security ROOTSECDEV = $(ROOTSEC)/dev ROOTSECLIB = $(ROOTSEC)/lib diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/amt/Makefile.com --- a/usr/src/cmd/amt/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/amt/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -20,13 +20,9 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# cmd/amt/Makefile.com -# PROG= amt OBJS= amt.o @@ -39,6 +35,8 @@ LINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2 LINTFLAGS64 += -erroff=E_NAME_USED_NOT_DEF2 +CERRWARN += -_gcc=-Wno-uninitialized + CLEANFILES += $(PROG) $(OBJS) .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/ast/msgcc/Makefile --- a/usr/src/cmd/ast/msgcc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/ast/msgcc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -47,6 +47,10 @@ CFLAGS += \ $(ASTCFLAGS) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-empty-body +CERRWARN += -_gcc=-Wno-uninitialized + LDLIBS += -last msgcpp := LDLIBS += -lpp diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/audio/audioctl/Makefile --- a/usr/src/cmd/audio/audioctl/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/audio/audioctl/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -30,6 +30,7 @@ LDLIBS += -ldevinfo CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/audio/audioplay/Makefile --- a/usr/src/cmd/audio/audioplay/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/audio/audioplay/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,9 +23,6 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" -# -# Makefile for cmd/audio/audioplay PROG= audioplay @@ -40,6 +37,8 @@ LDFLAGS += -L../utilities CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized LINTFLAGS += -m -v -u $(LDFLAGS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/audio/audiorecord/Makefile --- a/usr/src/cmd/audio/audiorecord/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/audio/audiorecord/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,9 +23,6 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# -# Makefile for cmd/audio/audiorecord PROG= audiorecord @@ -40,6 +37,7 @@ LDFLAGS += -L../utilities CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses LINTFLAGS += -m -v -u $(LDFLAGS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/audio/utilities/Makefile --- a/usr/src/cmd/audio/utilities/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/audio/utilities/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -33,6 +33,9 @@ CPPFLAGS += $(INCLUDES) CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses LINTFLAGS += -m -v -u diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/auditconfig/Makefile --- a/usr/src/cmd/auditconfig/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/auditconfig/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -38,6 +38,8 @@ MSGFILES = $(SRCS) CPPFLAGS += -I$(LIBBSM) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/auditd/Makefile --- a/usr/src/cmd/auditd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/auditd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -37,6 +37,8 @@ CPPFLAGS += -D_REENTRANT CPPFLAGS += -I$(LIBBSM) -I$(AUDITD) +CERRWARN += -_gcc=-Wno-parentheses + LDLIBS += -lbsm -lsecdb OBJS = auditd.o doorway.o queue.o diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/auditreduce/Makefile --- a/usr/src/cmd/auditreduce/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/auditreduce/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -41,6 +41,9 @@ CPPFLAGS += -I$(TABLEDIR) -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 LDLIBS += -lnsl -lbsm -lscf -ltsol +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/auditstat/Makefile --- a/usr/src/cmd/auditstat/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/auditstat/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -41,6 +41,8 @@ LDLIBS += -lbsm CPPFLAGS += -I$(STATCOMMONDIR) +CERRWARN += -_gcc=-Wno-extra + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/auths/Makefile --- a/usr/src/cmd/auths/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/auths/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG= auths SRCS= $(PROG:%=%.c) @@ -31,6 +29,8 @@ include ../Makefile.cmd +CERRWARN += -_gcc=-Wno-parentheses + ROOTBINAUTHS = $(AUTHS:%=$(ROOTBIN)/%) .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/autopush/Makefile --- a/usr/src/cmd/autopush/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/autopush/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,14 +23,14 @@ # Copyright 1989,2003 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG= autopush ROOTFS_PROG= $(PROG) include ../Makefile.cmd +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(ROOTFS_PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/avs/dsbitmap/Makefile --- a/usr/src/cmd/avs/dsbitmap/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/avs/dsbitmap/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -35,7 +35,8 @@ SRCS= $(OBJS:%.o=%.c) POFILE= $(OBJS:%.o=%.po) -CFLAGS += -v +CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized LDLIBS += -lunistat -ladm LINTFLAGS += -Xa -n -s -x -m -u -Dlint -errhdr=%user LINTFLAGS += -erroff=E_SEC_PRINTF_VAR_FMT diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/avs/dscfg/Makefile --- a/usr/src/cmd/avs/dscfg/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/avs/dscfg/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -38,7 +38,9 @@ OBJS= dscfg.o -CFLAGS += -v -D_SYSCALL32 +CFLAGS += $(CCVERBOSE) -D_SYSCALL32 +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-address LDLIBS += -ldscfg -lunistat LINTFLAGS += -Xa -n -s -x -m -u -Dlint -errhdr=%user -D_SYSCALL32 LINTFLAGS += -erroff=E_NOP_ELSE_STMT -erroff=E_FUNC_SET_NOT_USED diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/avs/dscfglockd/Makefile --- a/usr/src/cmd/avs/dscfglockd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/avs/dscfglockd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -40,7 +40,8 @@ dscfgcli := LDLIBS += -ldscfg -lnsl dscfglockd := LDLIBS += -lunistat -ldscfg -lsocket -lnsl -CFLAGS += -v -D_RDC_ -D_SYSCALL32 +CFLAGS += $(CCVERBOSE) -D_RDC_ -D_SYSCALL32 +CERRWARN += -_gcc=-Wno-switch LINTFLAGS += -Xa -n -s -x -m -u -Dlint -errhdr=%user -D_RDC_ -D_SYSCALL32 LINTFLAGS += -DDEBUG -erroff=E_SEC_SCANF_UNBOUNDED_COPY LINTDIR = $(KBASE)/lintdir diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/avs/dsstat/Makefile --- a/usr/src/cmd/avs/dsstat/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/avs/dsstat/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -39,7 +39,11 @@ multi_stats.o common.o report.o SRCS= $(OBJS:%.o=%.c) -CFLAGS += -v +CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-clobbered LDLIBS += -L/usr/lib -lkstat LINTFLAGS += -Xa -n -s -x -m -u -Dlint -errhdr=%user LINTFLAGS += -erroff=E_SEC_PRINTF_VAR_FMT -erroff=E_SEC_SPRINTF_UNBOUNDED_COPY diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/avs/dsw/Makefile --- a/usr/src/cmd/avs/dsw/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/avs/dsw/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -51,10 +51,13 @@ SRCS= $(OBJS:%.o=%.c) POFILES= $(OBJS:%.o=%.po) -CFLAGS += -v -D_DSW_ +CFLAGS += $(CCVERBOSE) -D_DSW_ LINTFLAGS += -Xa -n -s -x -m -u -Dlint -errhdr=%user -D_DSW_ -DDEBUG LINTFLAGS += -erroff=E_SEC_SCANF_UNBOUNDED_COPY LINTFLAGS += -erroff=E_SEC_PRINTF_VAR_FMT +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized all := TARGET= all install := TARGET= install diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/avs/errgen/Makefile --- a/usr/src/cmd/avs/errgen/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/avs/errgen/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -31,6 +31,7 @@ OBJS= errgen.o CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-switch LINTFLAGS += -erroff=E_SEC_SPRINTF_UNBOUNDED_COPY .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/avs/ncall/Makefile --- a/usr/src/cmd/avs/ncall/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/avs/ncall/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -46,7 +46,8 @@ LINTFLAGS += -erroff=E_BAD_FORMAT_ARG_TYPE2 LINTFLAGS += -erroff=E_FUNC_RET_ALWAYS_IGNOR2 LINTDIR = $(KBASE)/lintdir -CFLAGS += -v -D_SYSCALL32 -D__NCALL__ +CFLAGS += $(CCVERBOSE) -D_SYSCALL32 -D__NCALL__ +CERRWARN += -_gcc=-Wno-uninitialized ROOTLINK = $(ROOTLIB)/$(PROG) all := TARGET= all diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/avs/rdc/Makefile --- a/usr/src/cmd/avs/rdc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/avs/rdc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -55,13 +55,16 @@ sndrd := LDLIBS += -lrdc -lnsl sndrsyncd := LDLIBS += -lrdc -ldscfg -lunistat -CFLAGS += -v -D_RDC_ -D_SYSCALL32 +CFLAGS += $(CCVERBOSE) -D_RDC_ -D_SYSCALL32 LINTFLAGS += -Xa -n -s -x -m -u -Dlint -errhdr=%user -D_RDC_ -D_SYSCALL32 LINTFLAGS += -DDEBUG LINTFLAGS += -erroff=E_SEC_SPRINTF_UNBOUNDED_COPY LINTFLAGS += -erroff=E_SEC_SCANF_UNBOUNDED_COPY LINTFLAGS += -erroff=E_SEC_PRINTF_VAR_FMT LINTFLAGS += -erroff=E_FUNC_SET_NOT_USED +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized POFILE = rdc_all.po POFILES = sndradm.po sndrboot.po ROOTLIBLINKS = $(ROOTLIB)/sndrd $(ROOTLIB)/sndrsyncd diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/avs/sdbc/Makefile --- a/usr/src/cmd/avs/sdbc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/avs/sdbc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -59,7 +59,7 @@ sd_diag := LDLIBS += -lnsctl sdbc_dynmem := LDLIBS += -lkstat -CFLAGS += -v -D_SCM_ -D_SD_8K_BLKSIZE -D_SYSCALL32 +CFLAGS += $(CCVERBOSE) -D_SCM_ -D_SD_8K_BLKSIZE -D_SYSCALL32 CPPFLAGS += -DNSC_MULTI_TERABYTE LINTFLAGS += -Xa -n -s -x -m -u -Dlint -errhdr=%user LINTFLAGS += -D_SCM_ -D_SD_8K_BLKSIZE -D_SYSCALL32 @@ -68,6 +68,7 @@ LINTFLAGS += -erroff=E_SEC_SCANF_UNBOUNDED_COPY LINTFLAGS += -erroff=E_SEC_FORBIDDEN_WARN_ASCFTIME LINTFLAGS += -DDEBUG +CERRWARN += -_gcc=-Wno-uninitialized ROOTLINK = $(ROOTUSRSBIN)/scmadm all := TARGET= all diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/awk/Makefile --- a/usr/src/cmd/awk/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/awk/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,13 +20,10 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" # # Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# cmd/awk/Makefile -# # NOTE: awk is oawk. @@ -38,6 +35,13 @@ SRCS= $(OBJ1:%.o=%.c) include ../Makefile.cmd + +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized + # # Message catalog # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/awk_xpg4/Makefile --- a/usr/src/cmd/awk_xpg4/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/awk_xpg4/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -43,6 +41,9 @@ CPPFLAGS += -D_FILE_OFFSET_BITS=64 CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized YFLAGS += -d LDLIBS += -lm CLEANFILES= awk.c y.tab.h diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/backup/Makefile.backup --- a/usr/src/cmd/backup/Makefile.backup Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/backup/Makefile.backup Sun Jul 22 16:03:46 2012 -0400 @@ -39,6 +39,11 @@ #CSTYLEFLAGS= -c -h -p -v -P CSTYLEFLAGS= -h -p -P +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-clobbered + UFSROOTETC= $(ROOT)/etc UFSROOTUSR= $(ROOT)/usr UFSROOTUSRLIB= $(UFSROOTUSR)/lib diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/backup/dump/Makefile --- a/usr/src/cmd/backup/dump/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/backup/dump/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -67,6 +67,11 @@ CPPFLAGS= -I$(LOCAL) -I$(GENERAL) -I$(GLOBAL) -DPARTIAL \ -I$(ROLLDIR) $(CPPFLAGS.master) \ -D_LARGEFILE64_SOURCE=1 +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-clobbered +CERRWARN += -_gcc=-Wno-extra LIBDUMP= ../lib/libdump.a LINTLIBDUMP= ../lib/llib-ldump.ln -lkstat LDLIBS += $(BSTATIC) -L../lib -ldump $(BDYNAMIC) \ diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/backup/lib/Makefile --- a/usr/src/cmd/backup/lib/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/backup/lib/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY= libdump.a @@ -65,6 +63,10 @@ GENERAL= ../include GLOBAL= ../../../head CPPFLAGS= -I$(GENERAL) -I$(GLOBAL) $(CPPFLAGS.master) +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-variable LINTOUT= lint.out CLEANFILES= $(OBJECTS) $(LINTOUT) $(LINTLIB) $(DEBUGS) *.ln \ $(YSRC) $(LIBRARY) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/bart/Makefile --- a/usr/src/cmd/bart/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/bart/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -19,10 +19,9 @@ # CDDL HEADER END # # -#pragma ident "%Z%%M% %I% %E% SMI" -# # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. +# PROG= bart SRCS= rules.c create.c compare.c main.c lutbl.c @@ -30,7 +29,10 @@ BART= bart include ../Makefile.cmd + LDLIBS += -lsec -lmd +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized # # for messaging catalog diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/bc/Makefile --- a/usr/src/cmd/bc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/bc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2003 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -37,6 +35,10 @@ include ../Makefile.cmd +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label + $(XPG6EXOBJS) := CFLAGS += -DXPG6 ROOTLIBB= $(LIBB:%=$(ROOTLIB)/%) $(ROOTLIBB) := FILEMODE = $(LIBFILEMODE) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/bdiff/Makefile --- a/usr/src/cmd/bdiff/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/bdiff/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1989, 1996 by Sun Microsystems, Inc. # All rights reserved. # @@ -32,7 +30,8 @@ FILEMODE= 755 -CPPFLAGS +=-D_FILE_OFFSET_BITS=64 +CPPFLAGS += -D_FILE_OFFSET_BITS=64 +CERRWARN += -_gcc=-Wno-uninitialized .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/beadm/Makefile --- a/usr/src/cmd/beadm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/beadm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -31,6 +31,7 @@ include ../Makefile.cmd LDLIBS += -lnvpair -lbe +CERRWARN += -_gcc=-Wno-parentheses $(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/bfs/Makefile --- a/usr/src/cmd/bfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/bfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1989 by Sun Microsystems, Inc. # @@ -30,6 +28,9 @@ include ../Makefile.cmd LDLIBS += -lgen +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/bnu/Makefile.inc --- a/usr/src/cmd/bnu/Makefile.inc Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/bnu/Makefile.inc Sun Jul 22 16:03:46 2012 -0400 @@ -22,10 +22,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# -# This file is included by Makefile. The idea is to unclutter it (Makefile). -# SRCS = account.c anlwrk.c bnuconvert.c callers.c \ chremdir.c cntrl.c conn.c cpmv.c ct.c \ @@ -43,7 +39,13 @@ uuglist.c uuname.c uusched.c uustat.c uux.c \ uuxqt.c versys.c xio.c xqt.c \ ../chmod/common.c - + +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-extra +CERRWARN += -_gcc=-Wno-implicit-function-declaration TLILIB = -lnsl -lsocket PAMLIB = -lpam diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/boot/bootadm/Makefile --- a/usr/src/cmd/boot/bootadm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/boot/bootadm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -46,6 +46,10 @@ CPPFLAGS += -D_FILE_OFFSET_BITS=64 CPPFLAGS += -I../../../uts/common -I../../../common +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-label + LINTFLAGS += -erroff=E_INCONS_ARG_DECL2 LINTFLAGS += -erroff=E_INCONS_VAL_TYPE_DECL2 LINTFLAGS += -erroff=E_NAME_DEF_NOT_USED2 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/boot/installboot/Makefile --- a/usr/src/cmd/boot/installboot/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/boot/installboot/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -40,6 +40,7 @@ C99LMODE= -Xc99=%all LINTFLAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-uninitialized .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/boot/installgrub/Makefile --- a/usr/src/cmd/boot/installgrub/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/boot/installgrub/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -36,6 +36,9 @@ include ../Makefile.com CPPFLAGS += -I$(SRC)/uts/i86pc -I$(SRC)/uts/intel -I$(SRC)/uts/common +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized LDLIBS += -lmd5 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/boot/mbr/Makefile --- a/usr/src/cmd/boot/mbr/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/boot/mbr/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# BOOTPROG= mbr @@ -32,6 +30,8 @@ include ../Makefile.com +CERRWARN += -_gcc=-Wno-parentheses + .KEEP_STATE: all: $(BOOTPROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cal/Makefile --- a/usr/src/cmd/cal/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cal/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,12 +20,9 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# cmd/cal/Makefile PROG= cal @@ -35,6 +32,8 @@ DCFILE= $(PROG).dc CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/calendar/Makefile --- a/usr/src/cmd/calendar/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/calendar/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1989 by Sun Microsystems, Inc. # @@ -31,6 +29,8 @@ include ../Makefile.cmd +CERRWARN += -_gcc=-Wno-implicit-function-declaration + .KEEP_STATE: all: $(PROG) $(SHFILES) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/captoinfo/Makefile --- a/usr/src/cmd/captoinfo/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/captoinfo/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG= captoinfo @@ -36,6 +34,7 @@ LDFLAGS += $(MAPFILE.INT:%=-M%) LDLIBS += -lcurses CPPFLAGS += -I../../lib/libcurses/screen +CERRWARN += -_gcc=-Wno-parentheses .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cdrw/Makefile --- a/usr/src/cmd/cdrw/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cdrw/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG= cdrw @@ -39,6 +37,8 @@ LDLIBS += -lhal -lsecdb NONLINTLDLIBS = -ldbus-1 CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses CPPFLAGS += -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(HAL_DBUS_CPPFLAGS) LINTFLAGS += -um diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/chmod/Makefile --- a/usr/src/cmd/chmod/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/chmod/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -19,13 +19,9 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# cmd/chmod/Makefile -# PROG= chmod OBJS= $(PROG).o common.o @@ -36,6 +32,8 @@ include ../Makefile.cmd CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized CPPFLAGS += -D_FILE_OFFSET_BITS=64 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-crypto/cryptoadm/Makefile --- a/usr/src/cmd/cmd-crypto/cryptoadm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-crypto/cryptoadm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -40,6 +40,8 @@ POFILE = $(PROG)_all.po CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses LDLIBS += -lcryptoutil diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-crypto/decrypt/Makefile.com --- a/usr/src/cmd/cmd-crypto/decrypt/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-crypto/decrypt/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG = decrypt @@ -40,6 +38,9 @@ CFLAGS64 += $(CCVERBOSE) CPPFLAGS += -D_FILE_OFFSET_BITS=64 +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + LDLIBS += -lkmf -lpkcs11 -lcryptoutil .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-crypto/digest/Makefile.com --- a/usr/src/cmd/cmd-crypto/digest/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-crypto/digest/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG = digest @@ -40,6 +38,8 @@ CFLAGS64 += $(CCVERBOSE) CPPFLAGS +=-D_FILE_OFFSET_BITS=64 +CERRWARN += -_gcc=-Wno-uninitialized + LDLIBS += -lkmf -lpkcs11 -lcryptoutil .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-crypto/pktool/Makefile --- a/usr/src/cmd/cmd-crypto/pktool/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-crypto/pktool/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -52,6 +52,8 @@ -I$(KMFDIR)/ber_der/inc CFLAGS += $(CCVERBOSE) -DDEBUG +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-label LDLIBS += -lkmf -lpkcs11 -lcryptoutil diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/lib/ipmgmtd/Makefile --- a/usr/src/cmd/cmd-inet/lib/ipmgmtd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/lib/ipmgmtd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -38,6 +38,9 @@ ROOTCFGFILES= $(CFGFILES:%=$(ROOTCFGDIR)/%) ROOTMANIFESTDIR= $(ROOTSVCNETWORK) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + $(ROOTCFGFILES) := OWNER= ipadm $(ROOTCFGFILES) := GROUP= sys $(ROOTCFGFILES) := FILEMODE= 644 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/lib/nwamd/Makefile --- a/usr/src/cmd/cmd-inet/lib/nwamd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/lib/nwamd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -55,6 +55,11 @@ -linetutil -lipadm -lkstat -lnsl -lnvpair -lnwam \ -lsecdb -lscf -lsocket -lsysevent -lumem -luutil +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-label + # # Instrument with CTF data to ease debugging. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/sbin/dhcpagent/Makefile --- a/usr/src/cmd/cmd-inet/sbin/dhcpagent/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/sbin/dhcpagent/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG = dhcpagent ROOTFS_PROG = $(PROG) @@ -39,6 +37,9 @@ POFILES = $(OBJS:%.o=%.po) XGETFLAGS += -a -x dhcpagent.xcl +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses + # # to compile a debug version, do a `make COPTFLAG="-g -XO0"' # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.bin/Makefile --- a/usr/src/cmd/cmd-inet/usr.bin/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.bin/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -67,6 +67,9 @@ $(ROOTSUIDPROG) := FILEMODE= 04555 CPPFLAGS += -DSYSV -DSTRNET -DBSD_COMP -I$(CMDINETCOMMONDIR) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-function # Eventually just plain CFLAGS should be += -v, but not until all in # PROGS are lint clean. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.bin/chat/Makefile --- a/usr/src/cmd/cmd-inet/usr.bin/chat/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.bin/chat/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -2,8 +2,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG= chat OBJS= chat.o @@ -13,6 +11,8 @@ CPPFLAGS += -DSOL2 LDFLAGS += $(MAPFILE.NGB:%=-M%) +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-trigraphs .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.bin/ftp/Makefile --- a/usr/src/cmd/cmd-inet/usr.bin/ftp/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.bin/ftp/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG = ftp DEFAULTFILES = ftp.dfl @@ -41,6 +39,11 @@ -I$(SRC)/lib/gss_mechs/mech_krb5/include \ -I$(SRC)/uts/common/gssapi/mechs/krb5/include +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-clobbered +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-address + LDLIBS += -lsocket -lnsl -lgss # ftp defines its own delete and glob - localize all symbols to prevent a diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.bin/nc/Makefile --- a/usr/src/cmd/cmd-inet/usr.bin/nc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.bin/nc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG= nc OBJS= atomicio.o netcat.o socks.o strtonum.o @@ -33,6 +31,7 @@ include ../../../Makefile.cmd LDLIBS += -lresolv -lsocket +CERRWARN += -_gcc=-Wno-uninitialized .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.bin/nca/Makefile --- a/usr/src/cmd/cmd-inet/usr.bin/nca/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.bin/nca/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -47,6 +45,7 @@ INC_PATH += ../../../../uts/common/inet/nca -I. CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses CPPFLAGS += -I$(INC_PATH) .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.bin/netstat/Makefile --- a/usr/src/cmd/cmd-inet/usr.bin/netstat/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.bin/netstat/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -46,6 +46,8 @@ SRCS= $(LOCALSRCS) $(COMMONSRCS) $(STAT_COMMON_SRCS) CPPFLAGS += -DNDEBUG -I$(CMDINETCOMMONDIR) -I$(STATCOMMONDIR) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses LDLIBS += -ldhcpagent -lsocket -lnsl -lkstat -ltsnet -ltsol .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.bin/pppd/Makefile --- a/usr/src/cmd/cmd-inet/usr.bin/pppd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.bin/pppd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -50,6 +50,8 @@ EXOBJS += mschap_test.o CLOBBERFILES += mschap_test +CERRWARN += -_gcc=-Wno-uninitialized + # This is used *only* for testing the portability of the libraries # required for MS-CHAPv1. It is not needed in any normal system and # is not built by default. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.bin/pppdump/Makefile --- a/usr/src/cmd/cmd-inet/usr.bin/pppdump/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.bin/pppdump/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -11,6 +11,11 @@ CPPFLAGS += -DPPP_DEFS_IN_NET +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.bin/rdist/Makefile --- a/usr/src/cmd/cmd-inet/usr.bin/rdist/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.bin/rdist/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -47,6 +47,14 @@ -I$(SRC)/lib/gss_mechs/mech_krb5/include \ -I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-clobbered +CERRWARN += -_gcc=-Wno-uninitialized + ROOTSYMLINK= $(ROOT)/usr/ucb/$(PROG) # conditional assignments diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.bin/talk/Makefile --- a/usr/src/cmd/cmd-inet/usr.bin/talk/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.bin/talk/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -40,6 +38,7 @@ # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized CPPFLAGS += -DSYSV -DSTRNET -DBSD_COMP LDLIBS += -lcurses -lsocket -lnsl diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.bin/telnet/Makefile --- a/usr/src/cmd/cmd-inet/usr.bin/telnet/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.bin/telnet/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG= telnet OBJS= telnet.o commands.o main.o network.o ring.o \ @@ -45,6 +43,12 @@ CPPFLAGS += -DKLUDGELINEMODE -DUSE_TERMIO -DENV_HACK -DOLD_ENVIRON CPPFLAGS += $(AUTH_INCLUDES) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-extra +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-unused-label LDLIBS += -lsocket -lnsl -ltermlib LDLIBS += -lmech_krb5 LDFLAGS += $(KRUNPATH) -L$(ROOT)$(KLIBDIR_DO) -L$(ROOT)$(KLIBDIR_GL) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.bin/tftp/Makefile --- a/usr/src/cmd/cmd-inet/usr.bin/tftp/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.bin/tftp/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1989,2001 by Sun Microsystems, Inc. # All rights reserved. # @@ -34,6 +32,8 @@ include ../../Makefile.cmd-inet CPPFLAGS += -DSYSV -DSTRNET -DBSD_COMP -I$(CMDINETCOMMONDIR) +CERRWARN += -_gcc=-Wno-clobbered +CERRWARN += -_gcc=-Wno-parentheses LDLIBS += -lsocket -lnsl .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.lib/dsvclockd/Makefile --- a/usr/src/cmd/cmd-inet/usr.lib/dsvclockd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.lib/dsvclockd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG = dsvclockd OBJS = dsvclockd.o container.o datastore.o @@ -37,6 +35,7 @@ LDLIBS += -ldhcputil -ldhcpsvc CPPFLAGS += -D_REENTRANT +CERRWARN += -_gcc=-Wno-parentheses XGETFLAGS += -a .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.lib/ilbd/Makefile --- a/usr/src/cmd/cmd-inet/usr.lib/ilbd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.lib/ilbd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -49,6 +49,10 @@ CPPFLAGS += -I$(LIB_INC) CPPFLAGS += -I$(SRC)/uts/common +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-label + C99MODE = $(C99_ENABLE) # I18n diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.lib/ilbd/ilb/Makefile --- a/usr/src/cmd/cmd-inet/usr.lib/ilbd/ilb/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.lib/ilbd/ilb/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -36,6 +36,8 @@ include ../../Makefile.lib +CERRWARN += -_gcc=-Wno-uninitialized + ROOTLIBINETILB = $(ROOTLIBINET)/ilb ROOTLIBINETILBPROG = $(PROG:%=$(ROOTLIBINETILB)/%) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.lib/in.dhcpd/Makefile --- a/usr/src/cmd/cmd-inet/usr.lib/in.dhcpd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.lib/in.dhcpd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -55,6 +55,10 @@ -lsocket -lnsl -lmtmalloc -lresolv lint := LDLIBS = $(LDLIBS.cmd) -ldhcpsvc -ldhcputil -linetutil -lsocket -lnsl +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses + # # Debugging support; toggle on if needed. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.lib/in.mpathd/Makefile --- a/usr/src/cmd/cmd-inet/usr.lib/in.mpathd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.lib/in.mpathd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -46,6 +46,8 @@ LDLIBS += -lsocket -lnsl -lsysevent -lnvpair -lipmp -linetutil -ldlpi LINTFLAGS += -erroff=E_INCONS_ARG_DECL2 -erroff=E_INCONS_ARG_USED2 +CERRWARN += -_gcc=-Wno-uninitialized + # # Instrument in.mpathd with CTF data to ease debugging. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.lib/in.ndpd/Makefile --- a/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -56,6 +56,9 @@ # perfect would require a bigger rewrite. LINTFLAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + CTFCONVERT_HOOK = && $(CTFCONVERT_O) CTFMERGE_HOOK = && $(CTFMERGE) -L VERSION -o $@ $(OBJS) $(OBJS) := CFLAGS += $(CTF_FLAGS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.lib/inetd/Makefile --- a/usr/src/cmd/cmd-inet/usr.lib/inetd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.lib/inetd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -39,6 +39,9 @@ CPPFLAGS += -D_FILE_OFFSET_BITS=64 -I$(CMDINETCOMMONDIR) -D_REENTRANT $(RELEASE_BUILD)CPPFLAGS += -DNDEBUG +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-label + LDLIBS += -lsocket -lnsl -lrestart -lscf -lcontract -linetutil \ -lwrap -linetsvc -luutil -lumem -lbsm diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.lib/mdnsd/Makefile --- a/usr/src/cmd/cmd-inet/usr.lib/mdnsd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.lib/mdnsd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -48,6 +48,10 @@ include ../../../Makefile.cmd +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-uninitialized + ROOTMANIFESTDIR= $(ROOTSVCNETWORKDNS) $(ROOTMANIFEST) := FILEMODE= 444 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.lib/ncaconfd/Makefile --- a/usr/src/cmd/cmd-inet/usr.lib/ncaconfd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.lib/ncaconfd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,13 +20,9 @@ # CDDL HEADER END # # -# ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 2000 by Sun Microsystems, Inc. # All rights reserved. # -# cmd/cmd-inet/usr.lib/ncad/Makefile -# PROG = ncaconfd @@ -40,6 +36,8 @@ LDLIBS += -lsocket -lnsl CPPFLAGS += -I$(SRC)/uts/common/inet/nca +CERRWARN += -_gcc=-Wno-uninitialized + POFILE = ${PROG}.po install: all $(ROOTLIBINETPROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.lib/vrrpd/Makefile --- a/usr/src/cmd/cmd-inet/usr.lib/vrrpd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.lib/vrrpd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -47,6 +47,8 @@ LDLIBS += -lvrrpadm -lsocket -lnsl -ldladm -linetutil -lipadm -lsysevent -lnvpair -lsecdb LINTFLAGS += -erroff=E_INCONS_ARG_DECL2 -erroff=E_INCONS_ARG_USED2 +CERRWARN += -_gcc=-Wno-uninitialized + # # Instrument vrrpd with CTF data to ease debugging. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.lib/wanboot/Makefile.com --- a/usr/src/cmd/cmd-inet/usr.lib/wanboot/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.lib/wanboot/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -23,12 +23,12 @@ # Copyright 2003 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# include $(SRC)/cmd/Makefile.cmd ROOTCMDDIR = $(ROOT)/usr/lib/inet/wanboot CMNCRYPTDIR = ../../../../../common/net/wanboot/crypt +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.sadm/dhcpmgr/lib/Makefile --- a/usr/src/cmd/cmd-inet/usr.sadm/dhcpmgr/lib/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.sadm/dhcpmgr/lib/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY= dhcpmgr.a VERS= .1 @@ -48,6 +46,9 @@ -I$(SRC)/common/net/dhcp \ -I. +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-uninitialized + LDLIBS += -ldhcpsvc -ldhcputil -linetutil -lscf -lsocket -lresolv -lnsl -lc # definitions for i18n diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.sbin/Makefile --- a/usr/src/cmd/cmd-inet/usr.sbin/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.sbin/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -104,6 +104,15 @@ COMMONSRCS= $(COMMONOBJS:%.o=$(CMDINETCOMMONDIR)/%.c) SRCS+= $(COMMONSRCS) +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-extra +CERRWARN += -_gcc=-Wno-address + # # Message catalog # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.sbin/htable/Makefile --- a/usr/src/cmd/cmd-inet/usr.sbin/htable/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.sbin/htable/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,11 +20,8 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1989 by Sun Microsystems, Inc. # -# cmd/cmd-inet/usr.sbin/htable/Makefile PROG= htable OBJS= htable.o parse.o scan.o @@ -36,6 +33,11 @@ LDLIBS += -lsocket -lnsl YFLAGS += -d +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-variable + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.sbin/ifconfig/Makefile --- a/usr/src/cmd/cmd-inet/usr.sbin/ifconfig/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.sbin/ifconfig/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -37,6 +37,8 @@ SRCS= $(LOCALSRCS) $(COMMONSRCS) CPPFLAGS += -I$(CMDINETCOMMONDIR) -I$(SRC)/common/net/dhcp +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses LDLIBS += -ldhcpagent -ldlpi -linetutil -lipmp -ldladm -lipadm LINTFLAGS += -m diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.sbin/ilbadm/Makefile --- a/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -35,6 +35,10 @@ LDLIBS += -lcmdutils -lsocket -lnsl -lilb -linetutil -lkstat CPPFLAGS += -I$(SRC)/lib/libilb/common -I$(SRC)/uts/common +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + C99MODE = $(C99_ENABLE) POFILES = $(OBJS:%.o=%.po) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.sbin/in.ftpd/Makefile --- a/usr/src/cmd/cmd-inet/usr.sbin/in.ftpd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.sbin/in.ftpd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -46,6 +46,14 @@ LDLIBS += -lsocket -lnsl -lpam -lbsm -lsendfile -lgss YFLAGS += -d +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-clobbered +CERRWARN += -_gcc=-Wno-address + in.ftpd := LDFLAGS += $(MAPFILE.NGB:%=-M%) # tcov output relies on atexit(3C) registered functions being called, so stop diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.sbin/in.rdisc/Makefile --- a/usr/src/cmd/cmd-inet/usr.sbin/in.rdisc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.sbin/in.rdisc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -21,8 +21,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG= in.rdisc MANIFEST= rdisc.xml @@ -35,6 +33,7 @@ LDLIBS += -lsocket -lnsl CPPFLAGS += -DSYSV -DBSD_COMP +CERRWARN += -_gcc=-Wno-extra .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.sbin/in.routed/Makefile --- a/usr/src/cmd/cmd-inet/usr.sbin/in.routed/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.sbin/in.routed/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -37,6 +37,8 @@ CPPFLAGS += $(_D_XOPEN_EXTN) CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized LDLIBS += -lxnet -lmd -lsocket CLEAN_FILES += $(ROUTEDOBJS) $(RTQUERYOBJS) CLOBBERFILES += $(ROUTEDPROG) $(RTQUERYPROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.sbin/in.talkd/Makefile --- a/usr/src/cmd/cmd-inet/usr.sbin/in.talkd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.sbin/in.talkd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -19,8 +19,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -36,6 +34,8 @@ $(ROOTMANIFEST) := FILEMODE= 444 CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized LDLIBS += -lsocket -lnsl .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.sbin/inetadm/Makefile --- a/usr/src/cmd/cmd-inet/usr.sbin/inetadm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.sbin/inetadm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,6 @@ # Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" PROG = inetadm SRCS = inetadm.c @@ -33,6 +32,8 @@ include ../../../Makefile.cmd LDLIBS += -lscf -luutil -linetsvc +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized lint := LINTFLAGS = -ux diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.sbin/inetconv/Makefile --- a/usr/src/cmd/cmd-inet/usr.sbin/inetconv/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.sbin/inetconv/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,14 +23,13 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG = inetconv include ../../../Makefile.cmd LDLIBS += -lscf -linetsvc +CERRWARN += -_gcc=-Wno-uninitialized .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.sbin/ipadm/Makefile --- a/usr/src/cmd/cmd-inet/usr.sbin/ipadm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.sbin/ipadm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -39,6 +39,8 @@ SRCS= $(LOCALSRCS) $(COMMONSRCS) CPPFLAGS += -I$(CMDINETCOMMONDIR) +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized LDLIBS += -linetutil -lipadm -lnvpair LINTFLAGS += -m diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.sbin/ipmpstat/Makefile --- a/usr/src/cmd/cmd-inet/usr.sbin/ipmpstat/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.sbin/ipmpstat/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -29,6 +29,7 @@ include $(SRC)/cmd/Makefile.cmd C99MODE = $(C99_ENABLE) +CERRWARN += -_gcc=-Wno-uninitialized LDLIBS += -lipmp -lsocket -lsysevent -lnvpair -linetutil XGETFLAGS += -a -x $(PROG).xcl diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/Makefile --- a/usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -51,6 +51,9 @@ #pull in prototype for strtok_r CPPFLAGS += -D__EXTENSIONS__ +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized LDLIBS += -lsocket -lnsl -lnvpair -lipp diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/Makefile --- a/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -55,6 +55,9 @@ CLEANFILES += $(PROG) $(POFILES) CPPFLAGS += -DSYSV -DBSD_COMP -I$(CMDINETCOMMONDIR) -I. +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch CFLAGS += $(XSTRCONST) LDLIBS += -lipsecutil -lnsl diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.sbin/kssl/kssladm/Makefile --- a/usr/src/cmd/cmd-inet/usr.sbin/kssl/kssladm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.sbin/kssl/kssladm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -42,6 +42,8 @@ .KEEP_STATE: CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-address LDLIBS += -lkmf -lpkcs11 -lcryptoutil -lnsl -lsocket diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.sbin/nwamadm/Makefile --- a/usr/src/cmd/cmd-inet/usr.sbin/nwamadm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.sbin/nwamadm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -33,6 +33,9 @@ XGETFLAGS += -a -x $(PROG).xcl LDLIBS += -linetutil -lnsl -lnwam -lumem -lscf +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/Makefile --- a/usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -36,6 +36,12 @@ YFLAGS += -d -b nwamcfg_grammar CLEANFILES += nwamcfg_lex.c nwamcfg_grammar.tab.c nwamcfg_grammar.tab.h +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-implicit-function-declaration + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.sbin/ping/Makefile --- a/usr/src/cmd/cmd-inet/usr.sbin/ping/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.sbin/ping/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -48,6 +48,8 @@ # when running lint. LINTFLAGS += -erroff=E_INCONS_VAL_TYPE_DECL2 -erroff=E_INCONS_ARG_DECL2 +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: .PARALLEL: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.sbin/routeadm/Makefile --- a/usr/src/cmd/cmd-inet/usr.sbin/routeadm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.sbin/routeadm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -49,6 +49,8 @@ ROOTUSRSBINLINKS= $(PROG:%=$(ROOTUSRSBIN)/%) CPPFLAGS += -I../../../../common/svc -I$(CMDINETCOMMONDIR) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized $(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG LDLIBS += -lscf -luutil -lsocket diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.sbin/snoop/Makefile --- a/usr/src/cmd/cmd-inet/usr.sbin/snoop/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.sbin/snoop/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -49,6 +49,15 @@ CPPFLAGS += -I. -I$(SRC)/common/net/dhcp LDLIBS += -ldhcputil -ldlpi -lsocket -lnsl -ltsol LDFLAGS += $(MAPFILE.NGB:%=-M%) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-clobbered +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-function .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.sbin/traceroute/Makefile --- a/usr/src/cmd/cmd-inet/usr.sbin/traceroute/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.sbin/traceroute/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -52,6 +52,9 @@ LINTFLAGS += -erroff=E_FUNC_DECL_VAR_ARG2 -erroff=E_INCONS_ARG_DECL2 \ -erroff=E_INCONS_ARG_USED2 -erroff=E_INCONS_VAL_TYPE_DECL2 +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-clobbered + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cmd-inet/usr.sbin/wificonfig/Makefile --- a/usr/src/cmd/cmd-inet/usr.sbin/wificonfig/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cmd-inet/usr.sbin/wificonfig/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,10 +23,6 @@ # Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# -# cmd/cmd-inet/usr.sbin/wificonfig/Makefile -# PROG= wificonfig OBJS= wificonfig.o @@ -38,6 +34,8 @@ $(ROOTSBIN)/wificonfig := FILEMODE = 04755 ROOTUSRSBINLINKS = $(ROOTUSRSBIN)/$(PROG) +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-parentheses .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/compress/Makefile --- a/usr/src/cmd/compress/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/compress/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -1,4 +1,3 @@ -# # # CDDL HEADER START # @@ -19,9 +18,7 @@ # # CDDL HEADER END # -# -#ident "%Z%%M% %I% %E% SMI" # # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. @@ -36,6 +33,8 @@ .KEEP_STATE: CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-clobbered CPPFLAGS += -D_FILE_OFFSET_BITS=64 -I $(SRC)/common/util LINTFLAGS += -u diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/consadm/Makefile.com --- a/usr/src/cmd/consadm/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/consadm/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -33,6 +33,7 @@ include ../../Makefile.cmd CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized CPPFLAGS += FILEMODE = 0555 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cpc/cpustat/Makefile --- a/usr/src/cmd/cpc/cpustat/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cpc/cpustat/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -36,6 +36,7 @@ SRCS += $(STAT_COMMON_SRCS) CFLAGS += $(CCVERBOSE) $(CTF_FLAGS) +CERRWARN += -_gcc=-Wno-uninitialized CPPFLAGS += -D_REENTRANT -I$(SRC)/lib/libcpc/common -I$(STATCOMMONDIR) LDLIBS += -lcpc -lkstat diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cpio/Makefile --- a/usr/src/cmd/cpio/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cpio/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -29,6 +29,8 @@ include ../Makefile.cmd CPPFLAGS += -D_FILE_OFFSET_BITS=64 -DSOLARIS_PRIVS +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized LDLIBS += -lsec -lcmdutils -lnvpair XGETFLAGS += -a -x cpio.xcl diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cron/Makefile --- a/usr/src/cmd/cron/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cron/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -33,6 +33,11 @@ ROOTMETHOD = $(ROOTLIBSVCMETHOD)/svc-cron CPPFLAGS += -D_FILE_OFFSET_BITS=64 -I $(SRC)/common/util +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-value ROOTVAR = $(ROOT)/var diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/csh/i386/Makefile --- a/usr/src/cmd/csh/i386/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/csh/i386/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,6 +24,16 @@ CPPFLAGS += -D_FILE_OFFSET_BITS=64 LDLIBS += -lcurses +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-implicit-int +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-clobbered +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-extra + MAPFILES = ../mapfile-intf $(MAPFILE.NGB) LDFLAGS += $(MAPFILES:%=-M%) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/csh/sparc/Makefile --- a/usr/src/cmd/csh/sparc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/csh/sparc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,6 +22,16 @@ CPPFLAGS= -I. $(DEFS) $(MBCHAR) $(CPPFLAGS.master) CPPFLAGS += -I../../sh CPPFLAGS += -D_FILE_OFFSET_BITS=64 +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-implicit-int +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-clobbered +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-extra + LDLIBS += -lcurses MAPFILES = ../mapfile-intf $(MAPFILE.NGB) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/csplit/Makefile --- a/usr/src/cmd/csplit/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/csplit/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1989,1996 by Sun Microsystems, Inc. # All rights reserved. # @@ -34,6 +32,9 @@ XGETFLAGS += -a -x csplit.xcl CPPFLAGS += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/ctrun/Makefile --- a/usr/src/cmd/ctrun/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/ctrun/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,13 +24,13 @@ # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" - PROG= ctrun include ../Makefile.cmd -CFLAGS += -v +CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized LDLIBS += -lcontract -luutil .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/ctstat/Makefile --- a/usr/src/cmd/ctstat/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/ctstat/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -36,7 +36,8 @@ SRCS += $(STAT_COMMON_SRCS) CPPFLAGS += -I$(STATCOMMONDIR) -CFLAGS += -v +CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses LDLIBS += -lcontract -luutil .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/ctwatch/Makefile --- a/usr/src/cmd/ctwatch/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/ctwatch/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,13 +24,12 @@ # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" - PROG= ctwatch include ../Makefile.cmd -CFLAGS += -v +CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses LDLIBS += -lcontract -luutil .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cvcd/sparc/sun4u/starcat/Makefile --- a/usr/src/cmd/cvcd/sparc/sun4u/starcat/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cvcd/sparc/sun4u/starcat/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -42,6 +42,8 @@ ROOTPSMPROG = $(ROOT_PSM_LIB_DIR)/$(PROG) CPPFLAGS = -I$(USR_PSM_INCL_DIR) -I$(SRC)/uts/sun4u/starcat $(CPPFLAGS.master) +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized LDLIBS += -lsocket diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/cvcd/sparc/sun4u/starfire/Makefile --- a/usr/src/cmd/cvcd/sparc/sun4u/starfire/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/cvcd/sparc/sun4u/starfire/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -42,6 +42,7 @@ ROOTPSMPROG = $(ROOT_PSM_LIB_DIR)/$(PROG) CPPFLAGS = -I$(USR_PSM_INCL_DIR) $(CPPFLAGS.master) +CERRWARN += -_gcc=-Wno-unused-variable LDLIBS += -lsocket -lnsl diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/dc/Makefile --- a/usr/src/cmd/dc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/dc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -19,8 +19,6 @@ # CDDL HEADER END # # -# ident "%Z%%M% %I% %E% SMI" -# # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -34,6 +32,10 @@ include ../Makefile.cmd LDFLAGS += $(MAPFILE.NGB:%=-M%) +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/dcs/sparc/sun4u/Makefile --- a/usr/src/cmd/dcs/sparc/sun4u/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/dcs/sparc/sun4u/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -89,6 +89,8 @@ XGETFLAGS += -a -s -x $(PROG).xcl +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized # # LIBRARIES: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/dd/Makefile --- a/usr/src/cmd/dd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/dd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -31,6 +29,7 @@ include ../Makefile.cmd CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized CPPFLAGS += -D_FILE_OFFSET_BITS=64 .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/deroff/Makefile --- a/usr/src/cmd/deroff/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/deroff/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1989 by Sun Microsystems, Inc. # @@ -29,6 +27,10 @@ include ../Makefile.cmd +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/devctl/Makefile --- a/usr/src/cmd/devctl/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/devctl/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG= devctl @@ -33,6 +31,7 @@ .KEEP_STATE: CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses LDLIBS += -ldevice -l devinfo all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/devfsadm/Makefile.com --- a/usr/src/cmd/devfsadm/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/devfsadm/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -95,6 +95,10 @@ LINTFLAGS += -erroff=E_NAME_DEF_NOT_USED2 LINTFLAGS += -erroff=E_NAME_MULTIPLY_DEF2 +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-parentheses + # Define the dependencies required by devfsadm and all shared objects. LDLIBS += -ldevinfo devfsadm := LDLIBS += -lgen -lsysevent -lnvpair -lzonecfg -lbsm diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/devinfo/Makefile --- a/usr/src/cmd/devinfo/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/devinfo/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.3.3.1 */ -# # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -34,6 +32,7 @@ LDLIBS += -ladm -lefi CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/devmgmt/cmds/Makefile --- a/usr/src/cmd/devmgmt/cmds/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/devmgmt/cmds/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,13 +20,9 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# cmd/devmgmt/cmds/Makefile -# include ../../Makefile.cmd @@ -39,6 +35,9 @@ LDLIBS += -ladm +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: .PARALLEL: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/dfs.cmds/dfshares/Makefile --- a/usr/src/cmd/dfs.cmds/dfshares/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/dfs.cmds/dfshares/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,12 +20,8 @@ # CDDL HEADER END # # -# ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1989 by Sun Microsystems, Inc. # -# cmd/dfs.cmds/dfshares/Makefile -# PROG= dfshares @@ -37,6 +33,9 @@ include ../../Makefile.cmd +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/dfs.cmds/general/Makefile --- a/usr/src/cmd/dfs.cmds/general/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/dfs.cmds/general/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,13 +20,9 @@ # CDDL HEADER END # # -# ident "%Z%%M% %I% %E% SMI" -# # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# cmd/dfs.cmds/general/Makefile -# # "general" is intended to be a generic way to invoke a filesystem-specific # command, but at the moment, only /usr/sbin/unshare uses this facility. # Until someone else needs this functionality, this will be turned off @@ -46,6 +42,8 @@ include ../../Makefile.cmd +CERRWARN += -_gcc=-Wno-parentheses + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/dfs.cmds/sharectl/Makefile.com --- a/usr/src/cmd/dfs.cmds/sharectl/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/dfs.cmds/sharectl/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -19,8 +19,6 @@ # CDDL HEADER END # # -# ident "%Z%%M% %I% %E% SMI" -# # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -42,6 +40,8 @@ CPPFLAGS += $(MYCPPFLAGS) LDLIBS += -lshare -lumem +CERRWARN += -_gcc=-Wno-uninitialized + SRCS = $(SHARECTL_SRC) OBJS = $(SHARECTL_OBJ) MODS = $(SHARECTL_MOD) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/dfs.cmds/sharemgr/Makefile.com --- a/usr/src/cmd/dfs.cmds/sharemgr/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/dfs.cmds/sharemgr/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -42,6 +42,8 @@ all install := LDLIBS += -lxml2 LINTFLAGS += -u +CERRWARN += -_gcc=-Wno-uninitialized + POFILES = $(SRCS:.c=.po) POFILE = sharemgr.po diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/diff/Makefile --- a/usr/src/cmd/diff/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/diff/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -19,8 +19,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -31,6 +29,11 @@ LIBDIFFH= diffh include ../Makefile.cmd + +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-address + # # for messaging catalog # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/diff3/Makefile --- a/usr/src/cmd/diff3/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/diff3/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1989 by Sun Microsystems, Inc. # @@ -31,6 +29,8 @@ include ../Makefile.cmd +CERRWARN += -_gcc=-Wno-parentheses + .KEEP_STATE: all: $(PROG) $(SHFILES) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/dis/Makefile --- a/usr/src/cmd/dis/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/dis/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" PROG= dis OBJS= dis_target.o dis_main.o dis_util.o dis_list.o @@ -31,6 +30,7 @@ include ../Makefile.cmd LDLIBS += -ldisasm -luutil -lelf +CERRWARN += -_gcc=-Wno-uninitialized .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/dispadmin/Makefile --- a/usr/src/cmd/dispadmin/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/dispadmin/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -39,6 +39,7 @@ include ../Makefile.cmd CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized ROOTDIR= $(ROOT)/usr/lib/class ROOTDIRS= $(ROOTDIR) \ diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/dladm/Makefile --- a/usr/src/cmd/dladm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/dladm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -37,6 +37,10 @@ LDLIBS += -ldladm -ldlpi -lkstat -lsecdb -lbsm -linetutil -ldevinfo LDLIBS += $(ZLAZYLOAD) -lrstp $(ZNOLAZYLOAD) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + # For headers from librstp. LINTFLAGS += -erroff=E_TRAILING_COMMA_IN_ENUM diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/dlmgmtd/Makefile --- a/usr/src/cmd/dlmgmtd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/dlmgmtd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -40,6 +40,9 @@ LDLIBS += -ldladm -ldlpi -lavl -lnvpair -lsysevent -lcontract +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + # # Instrument dlmgmtd with CTF data to ease debugging. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/dlstat/Makefile --- a/usr/src/cmd/dlstat/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/dlstat/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -30,6 +30,11 @@ include ../Makefile.cmd +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized + XGETFLAGS += -a -x $(PROG).xcl LDLIBS += -L$(ROOT)/lib LDLIBS += -ldladm -linetutil diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/drd/Makefile --- a/usr/src/cmd/drd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/drd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # Makefile definitions for sun4v DR Daemon (drd) # @@ -63,6 +63,8 @@ XGETFLAGS += -a -s -x $(PROG).xcl +CERRWARN += -_gcc=-Wno-parentheses + # # LIBRARIES: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/dtrace/test/cmd/baddof/Makefile --- a/usr/src/cmd/dtrace/test/cmd/baddof/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/dtrace/test/cmd/baddof/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -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 $(SRC)/cmd/Makefile.cmd @@ -39,6 +38,8 @@ SRCS = baddof CMDS = $(SRCS:%=$(ROOTBIN)/%) +CERRWARN += -_gcc=-Wno-implicit-function-declaration + $(CMDS) := FILEMODE = 0555 all: $(SRCS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/dtrace/test/cmd/badioctl/Makefile --- a/usr/src/cmd/dtrace/test/cmd/badioctl/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/dtrace/test/cmd/badioctl/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -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 $(SRC)/cmd/Makefile.cmd @@ -38,6 +37,9 @@ SRCS = badioctl CMDS = $(SRCS:%=$(ROOTBIN)/%) +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-unused-variable + $(CMDS) := FILEMODE = 0555 all: $(SRCS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/dtrace/test/tst/Makefile.com --- a/usr/src/cmd/dtrace/test/tst/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/dtrace/test/tst/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -60,6 +60,12 @@ # in an arms race with increasingly belligerent optimizers. COPTFLAG= -xO0 +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-variable + all: $(EXES) clean lint: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/du/Makefile --- a/usr/src/cmd/du/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/du/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -32,6 +30,8 @@ include ../Makefile.cmd CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized $(XPG4) := CFLAGS += -DXPG4 CPPFLAGS += -D_FILE_OFFSET_BITS=64 POFILE = du_cmd.po diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/ed/Makefile --- a/usr/src/cmd/ed/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/ed/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG= ed XPG4PROG= ed @@ -40,6 +38,10 @@ include ../Makefile.cmd CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized $(XPG4) := CFLAGS += -DXPG4 $(XPG6) := CFLAGS += -DXPG6 -I$(SRC)/lib/libc/inc lint := LDLIBS += -lgen -lcrypt diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/eeprom/Makefile.com --- a/usr/src/cmd/eeprom/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/eeprom/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -37,6 +37,10 @@ OBJS = error.o +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-implicit-function-declaration + LINT_OBJS = $(OBJS:%.o=%.ln) SOURCES = $(OBJS:%.o=%.c) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/egrep/Makefile --- a/usr/src/cmd/egrep/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/egrep/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -31,6 +29,10 @@ include ../Makefile.cmd CPPFLAGS += -D_FILE_OFFSET_BITS=64 +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-label .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/eqn/eqn.d/Makefile --- a/usr/src/cmd/eqn/eqn.d/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/eqn/eqn.d/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -1,11 +1,7 @@ -# -# ident "%Z%%M% %I% %E% SMI" # # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# cmd/eqn/eqn.d/Makefile -# include ../../Makefile.cmd @@ -35,6 +31,10 @@ CPPFLAGS = -I. -I.. $(CPPFLAGS.master) LDFLAGS += $(MAPFILE.NGB:%=-M%) +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all : $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/eqn/neqn.d/Makefile --- a/usr/src/cmd/eqn/neqn.d/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/eqn/neqn.d/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -1,11 +1,7 @@ -# -# ident "%Z%%M% %I% %E% SMI" # # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# cmd/eqn/neqn.d/Makefile -# include ../../Makefile.cmd @@ -30,6 +26,10 @@ CPPFLAGS = -DNEQN -I. -I.. $(CPPFLAGS.master) LDFLAGS += $(MAPFILE.NGB:%=-M%) +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-label + # # for message catalog # @@ -45,7 +45,7 @@ $(POST_PROCESS) catalog: $(POFILE) - + $(POFILE): $(POFILES) $(RM) $@ cat $(POFILES) > $@ diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/expr/Makefile --- a/usr/src/cmd/expr/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/expr/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -36,6 +36,8 @@ include ../Makefile.cmd CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-extra $(XPG4) := CFLAGS += -DXPG4 $(XPG6) := CFLAGS += -DXPG6 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/exstr/Makefile --- a/usr/src/cmd/exstr/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/exstr/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1989 by Sun Microsystems, Inc. # @@ -29,6 +27,8 @@ include ../Makefile.cmd +CERRWARN += -_gcc=-Wno-extra + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/factor/Makefile --- a/usr/src/cmd/factor/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/factor/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1989 by Sun Microsystems, Inc. # @@ -30,6 +28,7 @@ include ../Makefile.cmd LDLIBS += -lm +CERRWARN += -_gcc=-Wno-implicit-function-declaration .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fcinfo/Makefile --- a/usr/src/cmd/fcinfo/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fcinfo/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -47,6 +47,8 @@ POFILE = fcinfo_cmd.po POFILES = fcinfo.po fcinfo-list.po fcadm-list.po printAttrs.po fcoeadm.po +CERRWARN += -_gcc=-Wno-unused-variable + ROOTMANIFESTDIR= $(ROOTSVCNETWORK) LDLIBS += -lHBAAPI diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fdformat/Makefile --- a/usr/src/cmd/fdformat/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fdformat/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -32,6 +32,8 @@ LDLIBS += -lvolmgt LINTFLAGS += -um +CERRWARN += -_gcc=-Wno-parentheses + .KEEP_STATE: # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fgrep/Makefile --- a/usr/src/cmd/fgrep/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fgrep/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1989,1996 by Sun Microsystems, Inc. # All rights reserved. # @@ -31,7 +29,7 @@ include ../Makefile.cmd CPPFLAGS += -D_FILE_OFFSET_BITS=64 - +CERRWARN += -_gcc=-Wno-parentheses .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/file/Makefile --- a/usr/src/cmd/file/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/file/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG= file XPG4PROG= file @@ -39,6 +37,9 @@ include ../Makefile.cmd +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-type-limits + POFILE= file_all.po POFILES= $(SRCS:%.c=%.po) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/filebench/Makefile.com --- a/usr/src/cmd/filebench/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/filebench/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -54,6 +54,13 @@ -erroff=E_NAME_USED_NOT_DEF2 -erroff=E_INCONS_ARG_DECL2 LINTFLAGS64 += -erroff=E_FUNC_ARG_UNUSED -erroff=E_NAME_DEF_NOT_USED2 \ -erroff=E_NAME_USED_NOT_DEF2 -erroff=E_INCONS_ARG_DECL2 + +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-function + LINTFILES = $(SRCS:%.c=%.ln) CLEANFILES += parser_gram.c parser_gram.h parser_lex.c y.tab.h y.tab.c diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/filesync/Makefile --- a/usr/src/cmd/filesync/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/filesync/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -32,6 +32,9 @@ LDLIBS += -lgen +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + FILEMODE= 0555 .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/find/Makefile --- a/usr/src/cmd/find/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/find/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -19,8 +19,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -37,6 +35,10 @@ $(XPG4) := CFLAGS += -DXPG4 CPPFLAGS += -D_FILE_OFFSET_BITS=64 -I $(SRC)/common/util +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + LINTFLAGS += -u LDLIBS += -lsec diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/flowstat/Makefile --- a/usr/src/cmd/flowstat/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/flowstat/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -35,6 +35,9 @@ LDLIBS += -L$(ROOT)/lib LDLIBS += -ldladm -linetutil +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-uninitialized + ROOTCFGDIR= $(ROOTETC)/dladm .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fm/eversholt/Makefile.esc.com --- a/usr/src/cmd/fm/eversholt/Makefile.esc.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fm/eversholt/Makefile.esc.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,11 +22,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# -# include makefile for eversholt common files -# -# FMADIR = $(SRC)/cmd/fm EVERDIR = $(FMADIR)/eversholt @@ -48,7 +43,11 @@ $(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG CPPFLAGS += -I$(EVERCMNSRC) -I. -CFLAGS += -v +CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch CTFCONVO = $(CTFCONVERT_O) CTFMRG = $(CTFMERGE) -L VERSION -o $@ $(OBJS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fm/fmd/Makefile.fmd --- a/usr/src/cmd/fm/fmd/Makefile.fmd Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fm/fmd/Makefile.fmd Sun Jul 22 16:03:46 2012 -0400 @@ -116,6 +116,11 @@ CPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT CFLAGS += $(CTF_FLAGS) $(CCVERBOSE) $(XSTRCONST) LINTFLAGS += -mu +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-clobbered $(PROG) := LDFLAGS += -R/usr/lib/fm $(PROG) := LDLIBS += -L$(ROOTLIB)/fm -ltopo -ldiagcode -lsysevent -lsmbios \ diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fm/fmdump/Makefile.com --- a/usr/src/cmd/fm/fmdump/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fm/fmdump/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -38,6 +38,8 @@ LDLIBS += -L$(ROOT)/usr/lib/fm -lfmd_log -lnvpair -ltopo -lfmd_msg LDFLAGS += -R/usr/lib/fm LINTFLAGS += -mnu +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized .NO_PARALLEL: .PARALLEL: $(OBJS) $(LINTFILES) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fm/fminject/Makefile.com --- a/usr/src/cmd/fm/fminject/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fm/fminject/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" .KEEP_STATE: .SUFFIXES: @@ -50,6 +49,11 @@ CPPFLAGS += -I. -I../common CFLAGS += $(CCVERBOSE) $(CTF_FLAGS) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-variable LDLIBS += -L$(ROOT)/usr/lib/fm -lfmd_log -lsysevent -lnvpair -lumem LDFLAGS += -R/usr/lib/fm LINTFLAGS = -mnux diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fm/ipmitopo/Makefile.com --- a/usr/src/cmd/fm/ipmitopo/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fm/ipmitopo/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -41,6 +41,8 @@ LDLIBS += -lipmi -lnvpair LINTFLAGS += -mnu +CERRWARN += -_gcc=-Wno-uninitialized + .NO_PARALLEL: .PARALLEL: $(OBJS) $(LINTFILES) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fm/modules/SUNW,SPARC-Enterprise/event-transport/Makefile --- a/usr/src/cmd/fm/modules/SUNW,SPARC-Enterprise/event-transport/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fm/modules/SUNW,SPARC-Enterprise/event-transport/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" PLATFORMS = SUNW,SPARC-Enterprise @@ -34,3 +33,4 @@ include ../../common/event-transport/Makefile.etm +CERRWARN += -_gcc=-Wno-parentheses diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fm/modules/common/disk-monitor/Makefile --- a/usr/src/cmd/fm/modules/common/disk-monitor/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fm/modules/common/disk-monitor/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" MODULE = disk-monitor CLASS = common @@ -35,3 +34,4 @@ CFLAGS += -I. -I$(SRC)/lib/fm/topo/modules/common/disk LDLIBS += -lsysevent -lnvpair -lsmbios -lcfgadm -ltopo -luutil -lipmi LDFLAGS += -L$(ROOT)/usr/lib/fm -R/usr/lib/fm +CERRWARN += -_gcc=-Wno-uninitialized diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fm/modules/common/eversholt/Makefile --- a/usr/src/cmd/fm/modules/common/eversholt/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fm/modules/common/eversholt/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" # # eft.so (the eversholt DE) # @@ -44,6 +43,11 @@ include ../../Makefile.plugin CPPFLAGS += -DFMAPLUGIN -I$(EVERSRCDIR) -I. +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-implicit-function-declaration $(PROG) := LDFLAGS += -R/usr/lib/fm $(PROG) := LDLIBS += -L$(ROOTLIB)/fm -ltopo diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fm/modules/common/fabric-xlate/Makefile --- a/usr/src/cmd/fm/modules/common/fabric-xlate/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fm/modules/common/fabric-xlate/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -37,3 +37,7 @@ LDFLAGS += -L$(ROOT)/usr/lib/fm -R/usr/lib/fm LDLIBS += -luutil -lxml2 -L$(ROOTLIB)/fm -ltopo + +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fm/modules/common/io-retire/Makefile --- a/usr/src/cmd/fm/modules/common/io-retire/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fm/modules/common/io-retire/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" MODULE = io-retire CLASS = common @@ -31,3 +30,4 @@ include ../../Makefile.plugin LDLIBS += -ldevinfo +CERRWARN += -_gcc=-Wno-parentheses diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fm/modules/common/ip-transport/Makefile --- a/usr/src/cmd/fm/modules/common/ip-transport/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fm/modules/common/ip-transport/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,6 @@ # Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" MODULE = ip-transport CLASS = common @@ -33,3 +32,4 @@ include ../../Makefile.plugin LDLIBS += -lsocket -lnsl +CERRWARN += -_gcc=-Wno-uninitialized diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fm/modules/common/sw-diag-response/software-diagnosis/Makefile --- a/usr/src/cmd/fm/modules/common/sw-diag-response/software-diagnosis/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fm/modules/common/sw-diag-response/software-diagnosis/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -49,3 +49,5 @@ LINTFLAGS += $(INCS) LDLIBS += -L$(ROOTLIB)/fm -ltopo -luutil -luuid -lkstat LDFLAGS += -R/usr/lib/fm +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fm/modules/sun4u/cpumem-diagnosis/Makefile --- a/usr/src/cmd/fm/modules/sun4u/cpumem-diagnosis/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fm/modules/sun4u/cpumem-diagnosis/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" ARCH = sun4u @@ -43,3 +42,7 @@ include ../../sun4/cpumem-diagnosis/Makefile.cpumem LDLIBS += -L$(ROOT)/usr/lib/fm -lfmd_adm LDFLAGS += -R/usr/lib/fm + +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-char-subscripts diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fm/modules/sun4v/cpumem-diagnosis/Makefile --- a/usr/src/cmd/fm/modules/sun4v/cpumem-diagnosis/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fm/modules/sun4v/cpumem-diagnosis/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" ARCH = sun4v @@ -36,3 +35,6 @@ LDLIBS += -L$(ROOTLIB)/fm -lmdesc -lldom LDFLAGS += -R/usr/lib/fm + +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fm/modules/sun4v/etm/Makefile --- a/usr/src/cmd/fm/modules/sun4v/etm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fm/modules/sun4v/etm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -38,3 +38,7 @@ LDFLAGS += -R/usr/lib/fm DYNFLAGS += -R/usr/lib + +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fm/modules/sun4v/generic-mem/Makefile --- a/usr/src/cmd/fm/modules/sun4v/generic-mem/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fm/modules/sun4v/generic-mem/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -52,6 +52,8 @@ LDLIBS += -L$(ROOTLIB)/fm -ltopo LDFLAGS += -R/usr/lib/fm CPPFLAGS += $(INCDIRS:%=-I%) -DGMEM_VERSION='$(GMEM_VERSION)' -D$(ARCH) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses %.o: $(GENERIC_MEM)/%.c $(COMPILE.c) -o $@ $< diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fm/notify/smtp-notify/Makefile.com --- a/usr/src/cmd/fm/notify/smtp-notify/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fm/notify/smtp-notify/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -52,6 +52,8 @@ LDFLAGS += -R/usr/lib/fm LINTFLAGS += -mnu +CERRWARN += -_gcc=-Wno-parentheses + .NO_PARALLEL: .PARALLEL: $(OBJS) $(LINTFILES) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fm/notify/snmp-notify/Makefile.com --- a/usr/src/cmd/fm/notify/snmp-notify/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fm/notify/snmp-notify/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -50,6 +50,8 @@ LDFLAGS += -R/usr/lib/fm LINTFLAGS += -mnu +CERRWARN += -_gcc=-Wno-parentheses + .NO_PARALLEL: .PARALLEL: $(OBJS) $(LINTFILES) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fm/schemes/cpu/amd64/Makefile --- a/usr/src/cmd/fm/schemes/cpu/amd64/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fm/schemes/cpu/amd64/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# include ../../Makefile.com include $(SRC)/Makefile.master.64 @@ -34,6 +32,7 @@ -L$(ROOTLIB)/fm/$(MACH64) -ltopo LDFLAGS += -R/usr/lib/fm/$(MACH64) +CERRWARN += -_gcc=-Wno-parentheses include ../../Makefile.targ diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fm/schemes/cpu/i386/Makefile --- a/usr/src/cmd/fm/schemes/cpu/i386/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fm/schemes/cpu/i386/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# include ../../Makefile.com @@ -33,6 +31,8 @@ -L$(ROOTLIB)/fm -ltopo LDFLAGS += -R/usr/lib/fm +CERRWARN += -_gcc=-Wno-parentheses + include ../../Makefile.targ install: all $(ROOTPROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fm/schemes/cpu/sparc/Makefile --- a/usr/src/cmd/fm/schemes/cpu/sparc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fm/schemes/cpu/sparc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# include ../../Makefile.com @@ -34,6 +32,8 @@ -L$(ROOTLIB)/fm -ltopo LDFLAGS += -R/usr/lib/fm +CERRWARN += -_gcc=-Wno-parentheses + include ../../Makefile.targ install: all $(ROOTPROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fm/schemes/cpu/sparcv9/Makefile --- a/usr/src/cmd/fm/schemes/cpu/sparcv9/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fm/schemes/cpu/sparcv9/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# include ../../Makefile.com include $(SRC)/Makefile.master.64 @@ -34,6 +32,8 @@ -L$(ROOTLIB)/fm/$(MACH64) -ltopo LDFLAGS += -R/usr/lib/fm/$(MACH64) +CERRWARN += -_gcc=-Wno-parentheses + include ../../Makefile.targ install: all $(ROOTPROG64) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fmt/Makefile --- a/usr/src/cmd/fmt/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fmt/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -# ident "%Z%%M% %I% %E% SMI" -# # Copyright 2003 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -35,6 +33,9 @@ include ../Makefile.cmd +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fmtmsg/Makefile --- a/usr/src/cmd/fmtmsg/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fmtmsg/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -19,20 +19,19 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" - PROG= fmtmsg OBJS= main.o SRCS= $(OBJS:%.o=%.c) include ../Makefile.cmd +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/format/Makefile --- a/usr/src/cmd/format/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/format/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -44,6 +44,11 @@ include ../Makefile.cmd +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-clobbered + SRCS= $(OBJS:.o=.c) ROOTSYMLINK= $(ROOTETCPROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fruadm/Makefile --- a/usr/src/cmd/fruadm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fruadm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -33,6 +33,7 @@ FRULIBS = -L$(SRC)/lib/libfru/$(MACH) -lfru CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-switch CPPFLAGS += -I$(SRC)/lib/libfru/include LINTFLAGS += -u LDLIBS += $(FRULIBS) -lm diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/Makefile --- a/usr/src/cmd/fs.d/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -77,6 +77,13 @@ SYMDEVNM= $(ROOTUSRSBIN)/devnm CPPFLAGS += -D_LARGEFILE64_SOURCE + +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-function + %.xpg4.o := CPPFLAGS += -DXPG4 $(SPPROG) := LDLIBS += -lkstat diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/autofs/Makefile --- a/usr/src/cmd/fs.d/autofs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/autofs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -88,6 +88,14 @@ CFLAGS += $(CCVERBOSE) -D_FILE_OFFSET_BITS=64 CPPFLAGS= -I. -I.. -I../nfs/lib $(CPPFLAGS.master) -D_REENTRANT \ $(MALLOC_DEBUG) + +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-function + OBJS= $(AUTOOBJS) $(MOUNTOBJS) $(TYPEOBJS) \ $(SHAREOBJS) $(UNSHAREOBJS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/cachefs/Makefile.cachefs --- a/usr/src/cmd/fs.d/cachefs/Makefile.cachefs Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/cachefs/Makefile.cachefs Sun Jul 22 16:03:46 2012 -0400 @@ -20,10 +20,9 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1989,2001 by Sun Microsystems, Inc. # All rights reserved. +# CACHEFSDIR= $(SRC)/cmd/fs.d/$(FSTYPE)/common @@ -52,6 +51,12 @@ CFSLIBMT= $(CACHEFSDIR)/$(LIBRARYMT) LDLIBS += $(CFSLIB) +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-function + $(LIBPROG): $(OBJS) $(LINK.c) -o $@ $(OBJS) $(LDLIBS) $(POST_PROCESS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/dev/Makefile --- a/usr/src/cmd/fs.d/dev/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/dev/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -21,8 +21,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# FSTYPE= dev PROG= mount @@ -38,3 +36,5 @@ include ../Makefile.fstype include ../Makefile.mount include ../Makefile.mount.targ + +CERRWARN += -_gcc=-Wno-parentheses diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/hsfs/fstyp/Makefile --- a/usr/src/cmd/fs.d/hsfs/fstyp/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/hsfs/fstyp/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# FSTYP_VERS=1 FSTYPE= hsfs @@ -62,6 +60,8 @@ CPPFLAGS += -DFSTYP_VERS=${FSTYP_VERS} -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 +CERRWARN += -_gcc=-Wno-switch + .KEEP_STATE: all: $(LIBPROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/hsfs/labelit/Makefile --- a/usr/src/cmd/fs.d/hsfs/labelit/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/hsfs/labelit/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1989 by Sun Microsystems, Inc. # @@ -31,6 +29,10 @@ include ../../Makefile.fstype +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-unused-variable + lint := PROG = $(LIBPROG) lint: lint_PROG diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/hsfs/mount/Makefile --- a/usr/src/cmd/fs.d/hsfs/mount/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/hsfs/mount/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2003 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# FSTYPE= hsfs LIBPROG= mount @@ -40,3 +38,5 @@ include ../../Makefile.fstype include ../../Makefile.mount include ../../Makefile.mount.targ + +CERRWARN += -_gcc=-Wno-unused-variable diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/nfs/dfmounts/Makefile --- a/usr/src/cmd/fs.d/nfs/dfmounts/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/nfs/dfmounts/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.12 */ -# # Copyright (c) 1989 by Sun Microsystems, Inc. # @@ -42,6 +40,9 @@ LDLIBS += -lrpcsvc -lnsl +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-parentheses + $(LIBPROG): $(OBJS) $(LINK.c) -o $@ $(OBJS) $(LDLIBS) $(POST_PROCESS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/nfs/dfshares/Makefile --- a/usr/src/cmd/fs.d/nfs/dfshares/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/nfs/dfshares/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.12 */ -# # Copyright (c) 1989 by Sun Microsystems, Inc. # @@ -35,6 +33,9 @@ SRCS= $(OBJS:%.o=%.c) LDLIBS += -lrpcsvc -lnsl +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-parentheses $(LIBPROG): $(OBJS) $(LINK.c) -o $@ $(OBJS) $(LDLIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/nfs/mount/Makefile --- a/usr/src/cmd/fs.d/nfs/mount/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/nfs/mount/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -42,6 +42,13 @@ UNCHECKED_HDRS= webnfs.h +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-address +CERRWARN += -_gcc=-Wno-unused-function + # # Message catalog # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/nfs/mountd/Makefile --- a/usr/src/cmd/fs.d/nfs/mountd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/nfs/mountd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -39,6 +39,15 @@ LDLIBS += -lrpcsvc -lnsl -lbsm -lsocket -ltsnet -ltsol -lnvpair -lscf CPPFLAGS += -D_REENTRANT -I../lib +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-address +CERRWARN += -_gcc=-Wno-unused-function + $(TYPEPROG): $(OBJS) $(COMPILE.d) -s $(DSRC) -o $(DOBJ) $(OBJS) $(LINK.c) -o $@ $(DOBJ) $(OBJS) $(LDLIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/nfs/nfs4cbd/Makefile --- a/usr/src/cmd/fs.d/nfs/nfs4cbd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/nfs/nfs4cbd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,12 +20,9 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# cmd/fs.d/nfs/nfs4cbd/Makefile FSTYPE= nfs TYPEPROG= nfs4cbd @@ -39,6 +36,10 @@ CPPFLAGS += -I. -I../.. -I../lib CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-extra + .KEEP_STATE: all: $(TYPEPROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/nfs/nfsd/Makefile --- a/usr/src/cmd/fs.d/nfs/nfsd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/nfs/nfsd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -37,7 +37,10 @@ ../lib/smfcfg.c CPPFLAGS += -I../lib - +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-extra $(TYPEPROG): $(OBJS) $(CC) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/nfs/nfslog/Makefile --- a/usr/src/cmd/fs.d/nfs/nfslog/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/nfs/nfslog/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,9 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# -# cmd/fs.d/nfs/nfslog/Makefile FSTYPE= nfs TYPEPROG= nfslogd @@ -41,6 +38,10 @@ SRCS= $(LOCAL:%.o=%.c) $(COMMON:%.o=../lib/%.c) LDLIBS += -lsocket -lnsl CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-type-limits CPPFLAGS += -D_FILE_OFFSET_BITS=64 # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/nfs/nfsmapid/Makefile --- a/usr/src/cmd/fs.d/nfs/nfsmapid/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/nfs/nfsmapid/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -39,6 +39,10 @@ OBJS = nfsmapid.o nfsmapid_server.o $(COMMON) CPPFLAGS += -I../lib -D_POSIX_PTHREAD_SEMANTICS +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized all: $(TYPEPROG) $(TESTPROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/nfs/nfsref/Makefile --- a/usr/src/cmd/fs.d/nfs/nfsref/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/nfs/nfsref/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -34,6 +34,8 @@ OBJS= nfsref.o ref_subr.o SRCS= nfsref.c +CERRWARN += -_gcc=-Wno-unused-variable + LDLIBS += -lreparse -lnvpair -lnsl -lumem $(PROG): $(OBJS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/nfs/nfsstat/Makefile --- a/usr/src/cmd/fs.d/nfs/nfsstat/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/nfs/nfsstat/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -41,6 +41,7 @@ OBJS += $(STAT_COMMON_OBJS) CPPFLAGS += -I$(STATCOMMONDIR) +CERRWARN += -_gcc=-Wno-parentheses LDLIBS += -lkstat -lnsl $(PROG): $(OBJS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/nfs/rquotad/Makefile --- a/usr/src/cmd/fs.d/nfs/rquotad/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/nfs/rquotad/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1989 by Sun Microsystems, Inc. # @@ -36,6 +34,8 @@ XFILE= $(ROOT)/usr/include/rpcsvc/rquota.x CPPFLAGS += -D_LARGEFILE64_SOURCE +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-unused-variable LDLIBS += -lnsl $(TYPEPROG): $(OBJS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/nfs/showmount/Makefile --- a/usr/src/cmd/fs.d/nfs/showmount/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/nfs/showmount/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,11 +20,8 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" /* */ -# # Copyright (c) 1989 by Sun Microsystems, Inc. # -# cmd/fs.d/nfs/showmount/Makefile FSTYPE= nfs LIBPROG= showmount @@ -45,6 +42,11 @@ LDLIBS += -lrpcsvc -lnsl +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized + $(LIBPROG): $(OBJS) $(LINK.c) -o $@ $(OBJS) $(LDLIBS) $(POST_PROCESS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/nfs/statd/Makefile --- a/usr/src/cmd/fs.d/nfs/statd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/nfs/statd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,10 +23,6 @@ # Copyright 1990-2003 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# -# cmd/fs.d/nfs/statd/Makefile -# FSTYPE= nfs TYPEPROG= statd @@ -35,6 +31,10 @@ include ../../Makefile.fstype CPPFLAGS += -D_REENTRANT -DSUN_THREADS +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + OBJS= sm_svc.o sm_proc.o sm_statd.o selfcheck.o SRCS= sm_svc.c sm_proc.c sm_statd.c ../lib/selfcheck.c diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/pcfs/fsck/Makefile --- a/usr/src/cmd/fs.d/pcfs/fsck/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/pcfs/fsck/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -19,12 +19,9 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# cmd/fs.d/pcfs/fsck/Makefile FSTYPE= pcfs LIBPROG= fsck @@ -58,6 +55,10 @@ # CPPFLAGS += -D_LARGEFILE64_SOURCE +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized + # # We need to tell lint not to complain about the routines # we are grabbing from the kernel as being undefined. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/pcfs/mkfs/Makefile --- a/usr/src/cmd/fs.d/pcfs/mkfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/pcfs/mkfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1998 by Sun Microsystems, Inc. # All rights reserved. # @@ -42,6 +40,7 @@ catalog: $(POFILE) CPPFLAGS += -D_LARGEFILE64_SOURCE +CERRWARN += -_gcc=-Wno-parentheses $(LIBPROG): $(OBJS) $(LINK.c) -o $@ $(OBJS) $(LDLIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/pcfs/mount/Makefile --- a/usr/src/cmd/fs.d/pcfs/mount/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/pcfs/mount/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2003 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -32,3 +30,5 @@ include ../../Makefile.fstype include ../../Makefile.mount include ../../Makefile.mount.targ + +CERRWARN += -_gcc=-Wno-uninitialized diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/reparsed/Makefile --- a/usr/src/cmd/fs.d/reparsed/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/reparsed/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -37,6 +37,7 @@ CLOBBERFILES += $(TYPEPROG) CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-unused-variable C99MODE= $(C99_ENABLE) LDLIBS += -lreparse -lnsl diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/smbclnt/chacl/Makefile --- a/usr/src/cmd/fs.d/smbclnt/chacl/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/smbclnt/chacl/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -35,6 +35,8 @@ LDLIBS += -lsmbfs -lsec CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-label C99MODE= $(C99_ENABLE) CLOBBERFILES += $(LIBPROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/smbclnt/lsacl/Makefile --- a/usr/src/cmd/fs.d/smbclnt/lsacl/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/smbclnt/lsacl/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -35,6 +35,7 @@ LDLIBS += -lsmbfs -lsec CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-unused-label C99MODE= $(C99_ENABLE) CLOBBERFILES += $(LIBPROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/smbclnt/mount/Makefile --- a/usr/src/cmd/fs.d/smbclnt/mount/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/smbclnt/mount/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -41,6 +41,8 @@ $(ROOTLIBFSTYPE)/mount := FILEMODE= 04555 CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label C99MODE= $(C99_ENABLE) LDLIBS += -lsmbfs diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/smbclnt/test/Makefile --- a/usr/src/cmd/fs.d/smbclnt/test/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/smbclnt/test/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -36,6 +36,7 @@ LDLIBS += -lsmbfs CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-unused-variable C99MODE= $(C99_ENABLE) CLOBBERFILES += $(LIBPROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/tmpfs/Makefile --- a/usr/src/cmd/fs.d/tmpfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/tmpfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2003 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -32,3 +30,5 @@ include ../Makefile.fstype include ../Makefile.mount include ../Makefile.mount.targ + +CERRWARN += -_gcc=-Wno-uninitialized diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/udfs/fsck/Makefile --- a/usr/src/cmd/fs.d/udfs/fsck/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/udfs/fsck/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1999 by Sun Microsystems, Inc. # All rights reserved. # @@ -39,6 +37,9 @@ UDFSOBJS= udfslib.o #UDFSSRCS= $(UDFSOBJS:%.o=%.c) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + OBJS= $(FSCKOBJS) $(UDFSOBJS) SRCS= $(FSCKSRCS) $(UDFSSRCS) ../mkfs/udfslib.c diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/udfs/fsdb/Makefile --- a/usr/src/cmd/fs.d/udfs/fsdb/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/udfs/fsdb/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -19,8 +19,6 @@ # CDDL HEADER END # # -#pragma ident "%Z%%M% %I% %E% SMI" -# # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -44,6 +42,13 @@ LINTFLAGS += -erroff=E_STATIC_UNUSED LINTFLAGS64 += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-unused-function + SRCS= fsdb.c ud_lib.c fsdb : fsdb_yacc.o fsdb_lex.o ud_lib.o fsdb.o $(MAPFILES) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/udfs/fstyp/Makefile --- a/usr/src/cmd/fs.d/udfs/fstyp/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/udfs/fstyp/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# FSTYP_VERS=1 FSTYPE= udfs @@ -38,6 +36,9 @@ CFLAGS += $(C_PICFLAGS) DYNLIB= $(LIBPROG) +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized + LDLIBS += -lnvpair -ladm -lc LINTFLAGS += -erroff=E_STATIC_UNUSED -erroff=E_NAME_DEF_NOT_USED2 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/udfs/labelit/Makefile --- a/usr/src/cmd/fs.d/udfs/labelit/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/udfs/labelit/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -19,8 +19,6 @@ # CDDL HEADER END # # -#pragma ident "%Z%%M% %I% %E% SMI" -# # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -38,6 +36,9 @@ LINTFLAGS += -xerroff=E_STATIC_UNUSED LINTFLAGS64 += -xerroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized + labelit : labelit.o ud_lib.o $(LINK.c) -o $@ labelit.o ud_lib.o $(LDLIBS) $(POST_PROCESS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/udfs/mkfs/Makefile --- a/usr/src/cmd/fs.d/udfs/mkfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/udfs/mkfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1999,2001 by Sun Microsystems, Inc. # All rights reserved. # @@ -47,6 +45,9 @@ #UDFSOBJS= ufs_subr.o ufs_tables.o UDFSOBJS= +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + OBJS= $(MKFSOBJS) $(UDFSOBJS) SRCS= $(OBJS:%.o=%.c) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/ufs/df/Makefile --- a/usr/src/cmd/fs.d/ufs/df/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/ufs/df/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# FSTYPE= ufs LIBPROG= df @@ -37,6 +35,11 @@ CPPFLAGS += -D_LARGEFILE64_SOURCE LDLIBS += -ladm +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-function + # for messaging catalogue file # POFILE= df.po diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/ufs/edquota/Makefile --- a/usr/src/cmd/fs.d/ufs/edquota/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/ufs/edquota/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,12 +20,9 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1989,1996 by Sun Microsystems, Inc. # All rights reserved. # -# cmd/fs.d/ufs/edquota/Makefile FSTYPE= ufs LIBPROG= edquota @@ -37,6 +34,7 @@ include ../../Makefile.fstype CPPFLAGS += -D_LARGEFILE64_SOURCE +CERRWARN += -_gcc=-Wno-parentheses lint: lint_PROG $(ROOTUSRSBIN)/$(LIBPROG): diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/ufs/ff/Makefile --- a/usr/src/cmd/fs.d/ufs/ff/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/ufs/ff/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1989,1996 by Sun Microsystems, Inc. # All rights reserved. # @@ -38,6 +36,8 @@ CPPFLAGS += -D_LARGEFILE64_SOURCE +CERRWARN += -_gcc=-Wno-uninitialized + $(LIBPROG): $(OBJS) $(LINK.c) -o $@ $(OBJS) $(LDLIBS) $(POST_PROCESS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/ufs/fsck/Makefile --- a/usr/src/cmd/fs.d/ufs/fsck/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/ufs/fsck/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -19,12 +19,9 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# cmd/fs.d/ufs/fsck/Makefile FSTYPE= ufs LIBPROG= fsck @@ -50,6 +47,10 @@ CPPFLAGS += -D_LARGEFILE64_SOURCE -I../../ -I../../../../lib/libadm/inc LDLIBS += -lefi -lavl +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-uninitialized + $(LIBPROG): $(OBJS) $(LINK.c) -o $@ $(OBJS) $(LDLIBS) $(CTFMERGE_HOOK) $(POST_PROCESS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/ufs/fsdb/Makefile --- a/usr/src/cmd/fs.d/ufs/fsdb/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/ufs/fsdb/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,10 +20,9 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1989,2001 by Sun Microsystems, Inc. # All rights reserved. +# FSTYPE= ufs LIBPROG= fsdb @@ -32,6 +31,12 @@ CPPFLAGS += -D_LARGEFILE64_SOURCE +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized + SRCS= $(LIBPROG).c lint: lint_SRCS diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/ufs/fssnap/Makefile --- a/usr/src/cmd/fs.d/ufs/fssnap/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/ufs/fssnap/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2003 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# FSTYPE= ufs LIBPROG= fssnap @@ -41,6 +39,10 @@ SRCS= $(FSSNAPSRCS) $(TOPSRCS) CPPFLAGS += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized LDLIBS += -lkstat -ldevinfo # message catalog diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/ufs/mkfs/Makefile --- a/usr/src/cmd/fs.d/ufs/mkfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/ufs/mkfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -19,8 +19,6 @@ # CDDL HEADER END # # -# ident "%Z%%M% %I% %E% SMI" -# # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -36,6 +34,11 @@ SRCS= $(LIBPROG).c $(ROLLSRCS) $(FSLIBSRC) MKFSOBJS= mkfs.o +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-empty-body +CERRWARN += -_gcc=-Wno-uninitialized + # for messaging catalog # POFILE= mkfs.po diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/ufs/mount/Makefile --- a/usr/src/cmd/fs.d/ufs/mount/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/ufs/mount/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,9 +22,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# -# cmd/fs.d/ufs/mount/Makefile FSTYPE= ufs PROG= mount @@ -41,5 +38,6 @@ include ../../Makefile.mount CPPFLAGS += -D_LARGEFILE64_SOURCE +CERRWARN += -_gcc=-Wno-parentheses include ../../Makefile.mount.targ diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/ufs/newfs/Makefile --- a/usr/src/cmd/fs.d/ufs/newfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/ufs/newfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,12 +20,9 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# cmd/fs.d/ufs/newfs/Makefile FSTYPE= ufs LIBPROG= newfs @@ -38,6 +35,9 @@ CPPFLAGS += -I../../ -D_LARGEFILE64_SOURCE LDLIBS += -ladm -lefi +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + OBJS= $(LIBPROG).o $(FSLIB) SRCS= $(LIBPROG).c $(FSLIBSRC) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/ufs/quota/Makefile --- a/usr/src/cmd/fs.d/ufs/quota/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/ufs/quota/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -39,6 +39,10 @@ CPPFLAGS += -I $(ROOT)/usr/include/sys -D_LARGEFILE64_SOURCE LDLIBS += -lnsl +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses + FILEMODE= 04555 $(LIBPROG): $(OBJS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/ufs/quotacheck/Makefile --- a/usr/src/cmd/fs.d/ufs/quotacheck/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/ufs/quotacheck/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,12 +20,9 @@ # CDDL HEADER END # # -# ident "%Z%%M% %I% %E% SMI" -# # Copyright 2003 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# cmd/fs.d/ufs/quotacheck/Makefile FSTYPE= ufs LIBPROG= quotacheck @@ -42,6 +39,9 @@ FSSRCS= ../../preenlib.c SRCS= $(OBJS:.o=.c) +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-type-limits + lint: lint_PROG $(FSOBJS): $(FSSRCS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/ufs/quotaon/Makefile --- a/usr/src/cmd/fs.d/ufs/quotaon/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/ufs/quotaon/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -49,6 +49,9 @@ $(ROOTINIT_SCRIPT) := FILEMODE = 0744 CPPFLAGS += -D_LARGEFILE64_SOURCE +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function + lint: lint_PROG $(ROOTLIBFSTYPE)/$(QUOTAOFF): $(ROOTLIBFSTYPE)/$(LIBPROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/ufs/repquota/Makefile --- a/usr/src/cmd/fs.d/ufs/repquota/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/ufs/repquota/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,12 +20,9 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1989,1996 by Sun Microsystems, Inc. # All rights reserved. # -# cmd/fs.d/ufs/repquota/Makefile FSTYPE= ufs LIBPROG= repquota @@ -37,6 +34,10 @@ include ../../Makefile.fstype CPPFLAGS += -D_LARGEFILE64_SOURCE + +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-uninitialized + lint: lint_PROG $(ROOTUSRSBIN)/$(LIBPROG): diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/ufs/roll_log/Makefile --- a/usr/src/cmd/fs.d/ufs/roll_log/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/ufs/roll_log/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,12 +20,9 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1996,1997 by Sun Microsystems, Inc. # All rights reserved. # -# cmd/fs.d/ufs/roll_log include ../../Makefile.fstype @@ -33,6 +30,8 @@ SRCS= roll_log.c OBJS= $(SRCS:%.c=$(MACH)/%.o) +CERRWARN += -_gcc=-Wno-switch + CLOBBERFILES= $(OBJS) .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/ufs/tunefs/Makefile --- a/usr/src/cmd/fs.d/ufs/tunefs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/ufs/tunefs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1989,1996, by Sun Microsystems, Inc. # All rights reserved. # @@ -38,6 +36,9 @@ LDLIBS += -ladm CPPFLAGS += -D_LARGEFILE64_SOURCE +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + lint: lint_PROG $(ROOTUSRSBIN)/$(LIBPROG): FRC diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fs.d/ufs/volcopy/Makefile --- a/usr/src/cmd/fs.d/ufs/volcopy/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fs.d/ufs/volcopy/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 1989,2003 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# FSTYPE= ufs LIBPROG= volcopy @@ -32,14 +30,17 @@ include ../../Makefile.fstype +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized + +LDLIBS += -lmapmalloc + # for messaging catalog # -POFILE= volcopy.po -XGETFLAGS += -a -x volcopy.xcl +POFILE= volcopy.po +XGETFLAGS += -a -x volcopy.xcl catalog: $(POFILE) - -LDLIBS += -lmapmalloc - lint: lint_PROG diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fuser/Makefile --- a/usr/src/cmd/fuser/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fuser/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,14 +23,12 @@ # Copyright 2003 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# -# cmd/fuser/Makefile PROG= fuser include ../Makefile.cmd +CERRWARN += -_gcc=-Wno-parentheses LDLIBS += -lkstat -ldevinfo ROOTSYMLINK= $(ROOTETCPROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/fwflash/Makefile.com --- a/usr/src/cmd/fwflash/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/fwflash/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -28,6 +28,10 @@ CLOSED= $(SRC)/../closed +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-address + ROOTUSR= $(ROOT)/usr ROOTUSRINCLD= $(ROOTUSR)/include ROOTUSRINCLDFWFLASH= $(ROOTUSRINCLD)/fwflash diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/gencat/Makefile --- a/usr/src/cmd/gencat/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/gencat/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1989 by Sun Microsystems, Inc. # @@ -32,6 +30,9 @@ include ../Makefile.cmd +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-unused-value + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/geniconvtbl/Makefile.com --- a/usr/src/cmd/geniconvtbl/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/geniconvtbl/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -21,9 +21,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# -# cmd/geniconvtbl/Makefile.com $(NOT_NATIVE)NATIVE_BUILD = $(POUND_SIGN) @@ -87,6 +84,11 @@ $(POFILES) $(POFILE) CPPFLAGS += -I. -I.. +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-implicit-function-declaration YFLAGS += -d -v CFLAGS += -D_FILE_OFFSET_BITS=64 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/genmsg/Makefile --- a/usr/src/cmd/genmsg/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/genmsg/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,9 +22,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# -# cmd/genmsg/Makefile include ../Makefile.cmd @@ -37,6 +34,10 @@ LEXINTSRCS= lex.yy.c LEXOBJS= lex.yy.o +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable + LDLIBS += -ll YFLAGS = -d CPPFLAGS = -I../head $(CPPFLAGS.master) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/getconf/Makefile --- a/usr/src/cmd/getconf/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/getconf/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" PROG= getconf XPG4PROG= getconf @@ -38,6 +37,7 @@ XPG4EXOBJS += values-xpg4.o CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses # XPG4 $(XPG4) := CFLAGS += -D_XOPEN_SOURCE -I$(SRC)/lib/libc/inc diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/getent/Makefile --- a/usr/src/cmd/getent/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/getent/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,13 +23,14 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG= getent include ../Makefile.cmd +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-implicit-function-declaration + OBJECTS= \ dogetethers.o \ dogetgr.o \ diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/getfacl/Makefile --- a/usr/src/cmd/getfacl/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/getfacl/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -# ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1993,2001 by Sun Microsystems, Inc. # All rights reserved. # @@ -30,6 +28,9 @@ include ../Makefile.cmd +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/grep_xpg4/Makefile --- a/usr/src/cmd/grep_xpg4/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/grep_xpg4/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -33,6 +31,9 @@ include ../Makefile.cmd +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + ROOTXPG4LINKS = $(ROOTXPG4BIN)/$(FFILE) $(ROOTXPG4BIN)/$(EFILE) CFLAGS += $(CCVERBOSE) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/groups/Makefile --- a/usr/src/cmd/groups/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/groups/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1989 by Sun Microsystems, Inc. # @@ -29,6 +27,8 @@ include ../Makefile.cmd +CERRWARN += -_gcc=-Wno-parentheses + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/grpck/Makefile --- a/usr/src/cmd/grpck/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/grpck/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,17 +20,15 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1990 by Sun Microsystems, Inc. # -# cmd/grpck/Makefile -# PROG= grpck include ../Makefile.cmd +CERRWARN += -_gcc=-Wno-unused-variable + RELUSRSBIN= ../usr/sbin ROOTSYMLINK= $(ROOTETC)/$(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/gss/gssd/Makefile --- a/usr/src/cmd/gss/gssd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/gss/gssd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -70,6 +70,11 @@ CPPFLAGS += -I$(SRC)/uts/common/gssapi/include COPTFLAG += $(XESS) #-I$(KINCDIR) +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + LDLIBS += -lgss -lnsl gssd := MAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/hal/Makefile.hal --- a/usr/src/cmd/hal/Makefile.hal Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/hal/Makefile.hal Sun Jul 22 16:03:46 2012 -0400 @@ -60,3 +60,10 @@ HAL_GETTEXT_PACKAGE = $(TEXT_DOMAIN) +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-extra +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-address +CERRWARN += -_gcc=-Wno-unused-function diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/halt/Makefile --- a/usr/src/cmd/halt/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/halt/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -47,6 +47,8 @@ CPPFLAGS += -I../../lib/libscf/inc CPPFLAGS += -I../../uts/common/fs/zfs +CERRWARN += -_gcc=-Wno-unused-label + LDLIBS += -lbsm -lscf -lzfs -lgen LDLIBS_i386 += -lgrubmgmt LDLIBS += $(LDLIBS_$(MACH)) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/hotplugd/Makefile --- a/usr/src/cmd/hotplugd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/hotplugd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -43,6 +43,8 @@ $(ROOTMANIFEST) := FILEMODE= 444 CPPFLAGS += -I$(SRC)/lib/libhotplug/common +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized LDLIBS += -ldevinfo -lhotplug -lnvpair -lsecdb -lrcm -lbsm .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/id/Makefile --- a/usr/src/cmd/id/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/id/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -31,6 +29,9 @@ include ../Makefile.cmd +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: CFLAGS += $(CCVERBOSE) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/idmap/idmap/Makefile --- a/usr/src/cmd/idmap/idmap/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/idmap/idmap/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -33,6 +33,14 @@ include ../../Makefile.cmd +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-address + POFILE = $(PROG)_all.po LDLIBS += -lidmap -ladutils -lsldap -lldap FILEMODE = 0555 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/idmap/idmapd/Makefile --- a/usr/src/cmd/idmap/idmapd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/idmap/idmapd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -55,6 +55,10 @@ include ../../Makefile.cmd +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + TEXT_DOMAIN = SUNW_OST_OSLIB XGETTEXT = $(GNUXGETTEXT) XGETFLAGS = --foreign-user --strict -n -E --width=72 \ @@ -77,7 +81,7 @@ $(OBJS) := CPPFLAGS += $(INCS) -D_REENTRANT $(POFILE) := CPPFLAGS += $(INCS) -CFLAGS += -v +CFLAGS += $(CCVERBOSE) LDLIBS += -lsecdb \ -lsocket \ -lnsl \ diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/init/Makefile --- a/usr/src/cmd/init/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/init/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -32,6 +32,8 @@ include ../Makefile.cmd LDLIBS += -lpam -lbsm -lcontract -lscf +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized LINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2 CLOBBERFILES= $(STATIC) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/intrstat/Makefile.com --- a/usr/src/cmd/intrstat/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/intrstat/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -38,6 +38,7 @@ CPPFLAGS += -I$(STATCOMMONDIR) CFLAGS += $(CCVERBOSE) CFLAGS64 += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized LDLIBS += -ldtrace FILEMODE = 0555 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/ipf/Makefile.ipf --- a/usr/src/cmd/ipf/Makefile.ipf Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/ipf/Makefile.ipf Sun Jul 22 16:03:46 2012 -0400 @@ -34,3 +34,10 @@ CPPFLAGS += -I$(COMMONIPF) -I$(KERNELIPF) -DSUNDDI -DUSE_INET6 \ -DSOLARIS2=$(RELEASE_MINOR) +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-empty-body diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/isainfo/Makefile --- a/usr/src/cmd/isainfo/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/isainfo/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG= isainfo @@ -36,6 +34,7 @@ CPPFLAGS += -I$(ELFCAP) -I../../uts/common CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-type-limits .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/iscsiadm/Makefile --- a/usr/src/cmd/iscsiadm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/iscsiadm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -37,6 +37,12 @@ CPPFLAGS += -DSOLARIS CPPFLAGS += -I. +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + FILEMODE= 0555 .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/isns/isnsadm/Makefile --- a/usr/src/cmd/isns/isnsadm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/isns/isnsadm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -37,6 +37,9 @@ LINTFLAGS += -xerroff=E_BAD_FORMAT_STR2 +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/isns/isnsd/Makefile --- a/usr/src/cmd/isns/isnsd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/isns/isnsd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -58,6 +58,11 @@ LINTFLAGS += -xerroff=E_NAME_USED_NOT_DEF2 LINTFLAGS += -xerroff=E_CASE_FALLTHRU +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-ignored-qualifiers +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-implicit-function-declaration + obj.o := CERRWARN += -erroff=E_CONST_OBJ_SHOULD_HAVE_INITIZR obj.o := CERRWARN += -erroff=E_IMPLICIT_DECL_FUNC_RETURN_INT diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/kbd/Makefile --- a/usr/src/cmd/kbd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/kbd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -33,6 +33,7 @@ PROG = kbd CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized LDLIBS += -lscf all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/keyserv/Makefile --- a/usr/src/cmd/keyserv/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/keyserv/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -67,6 +67,13 @@ CPPFLAGS += -I. -I$(SRC)/lib/libnsl/include -I$(SRC)/lib/libsldap/common \ -D_REENTRANT +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-address +CERRWARN += -_gcc=-Wno-unused-function + LDLIBS += -lnsl chkey := LDLIBS += -lsldap keyserv := LDLIBS += -lmp diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/krb5/kadmin/cli/Makefile --- a/usr/src/cmd/krb5/kadmin/cli/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/krb5/kadmin/cli/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -2,8 +2,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG= kadmin kadmin.local SHFILES= k5srvutil @@ -33,6 +31,12 @@ -I$(SRC)/lib/krb5 \ -I$(SRC)/lib/gss_mechs/mech_krb5/include $(DEFS) +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable + COPTFLAG += $(XESS) #-I$(KINCDIR) SHAREDLIBS = -lmech_krb5 -lss diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/krb5/kadmin/dbutil/Makefile --- a/usr/src/cmd/krb5/kadmin/dbutil/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/krb5/kadmin/dbutil/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -2,8 +2,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG= kdb5_util @@ -37,6 +35,11 @@ -DUSE_KADM5_API_VERSION=2 COPTFLAG += $(XESS) #-I$(KINCDIR) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-implicit-function-declaration + LDFLAGS += $(KRUNPATH) $(KERBRUNPATH) LDLIBS += -L $(ROOT_KLIBDIR) -L $(KRB5LIB) -lkadm5srv -lkdb \ -lmech_krb5 -lnsl diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/krb5/kadmin/gui/native/Makefile.com --- a/usr/src/cmd/krb5/kadmin/gui/native/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/krb5/kadmin/gui/native/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY= libkadmin.a VERS= .1 @@ -47,6 +45,10 @@ -I$(SRC)/uts/common/gssapi/mechs/krb5/include \ -I$(JAVA_ROOT)/include -I$(JAVA_ROOT)/include/solaris +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function + LDLIBS += $(KMECHLIB) -L$(ROOT)/$(KERBLIBDIR) -lkadm5clnt -lsocket -lc DYNFLAGS += $(KRUNPATH) $(KERBRUNPATH) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/krb5/kadmin/kclient/Makefile --- a/usr/src/cmd/krb5/kadmin/kclient/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/krb5/kadmin/kclient/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -60,6 +60,10 @@ -I$(SRC)/uts/common/gssapi/include \ -I$(SRC)/uts/common/gssapi/mechs/krb5/include +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-function + ksetpw:= LDFLAGS += $(KRUNPATH) kdyndns:= LDFLAGS += -R/usr/lib/smbsrv ksmb:= LDFLAGS += -R/usr/lib/smbsrv diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/krb5/kadmin/kdcmgr/Makefile --- a/usr/src/cmd/krb5/kadmin/kdcmgr/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/krb5/kadmin/kdcmgr/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -21,10 +21,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# -# Makefile for Kerberos server-install utility. -# PROG= kdcmgr KLPROG= klookup @@ -38,6 +34,9 @@ POFILE= $(SSRCS:%.sh=%.po) +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-uninitialized + LDLIBS += -lresolv -lnsl .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/krb5/kadmin/kpasswd/Makefile --- a/usr/src/cmd/krb5/kadmin/kpasswd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/krb5/kadmin/kpasswd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -2,8 +2,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG= kpasswd @@ -33,6 +31,10 @@ COPTFLAG += $(XESS) #-I$(KINCDIR) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function + LDFLAGS += $(KRUNPATH) $(KERBRUNPATH) LDLIBS += -L $(KRB5LIBDIR) LDLIBS += $(KMECHLIB) $(KCLNTLIB) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/krb5/kadmin/ktutil/Makefile --- a/usr/src/cmd/krb5/kadmin/ktutil/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/krb5/kadmin/ktutil/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -2,8 +2,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG= ktutil @@ -27,6 +25,9 @@ -DHAVE_TIMEZONE COPTFLAG += $(XESS) #-I$(KINCDIR) +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-unused-function + LDFLAGS += $(KRUNPATH) $(KERBRUNPATH) LDLIBS += $(KMECHLIB) $(ROOT)$(KERBLIBDIR)/libss.so diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/krb5/kadmin/server/Makefile --- a/usr/src/cmd/krb5/kadmin/server/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/krb5/kadmin/server/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -42,6 +42,11 @@ COPTFLAG += $(XESS) #-I$(KINCDIR) +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-function + LDFLAGS += $(KRUNPATH) $(KERBRUNPATH) LDLIBS += -lgss -L$(KRB5LIB) \ -lmech_krb5 -lkadm5srv -lkdb -lnsl -lresolv -lbsm -lpam -lsocket diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/krb5/kdestroy/Makefile --- a/usr/src/cmd/krb5/kdestroy/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/krb5/kdestroy/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -2,8 +2,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG= kdestroy @@ -14,6 +12,9 @@ include ../../Makefile.cmd include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5 +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-parentheses + POFILE = kdestroy.po POFILES = generic.po diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/krb5/kinit/Makefile --- a/usr/src/cmd/krb5/kinit/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/krb5/kinit/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -2,8 +2,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG= kinit @@ -15,6 +13,10 @@ include ../../Makefile.cmd include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5 +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-parentheses + POFILE = kinit.po POFILES = generic.po diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/krb5/klist/Makefile --- a/usr/src/cmd/krb5/klist/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/krb5/klist/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -26,6 +26,7 @@ LDFLAGS += $(KRUNPATH) LDLIBS += $(KMECHLIB) +CERRWARN += -_gcc=-Wno-unused-function $(GPROGS) := CPPFLAGS += -DSYSV -DSunOS=50 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/krb5/kproplog/Makefile --- a/usr/src/cmd/krb5/kproplog/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/krb5/kproplog/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -2,8 +2,6 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG = kproplog @@ -35,6 +33,10 @@ -I$(SRC)/lib/gss_mechs/mech_krb5/include \ -I$(SRC)/uts/common/gssapi/mechs/krb5/include +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-implicit-function-declaration + all: $(PROG) $(PROG): $(OBJS) $(DERIVED_OBJS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/krb5/krb5kdc/Makefile --- a/usr/src/cmd/krb5/krb5kdc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/krb5/krb5kdc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -50,6 +50,12 @@ -I$(SRC)/uts/common/gssapi/mechs/krb5/include \ -DHAVE_SYSLOG_H=1 +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-parentheses + LDFLAGS += $(KRUNPATH) $(KERBRUNPATH) LDLIBS += -L$(ROOT_KLIBDIR) -L$(KRB5LIB) \ -lmech_krb5 -lkdb -lkadm5srv -lnsl -lsocket -lbsm -lc diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/krb5/kwarn/Makefile --- a/usr/src/cmd/krb5/kwarn/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/krb5/kwarn/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# TESTPROG = kwarndtest @@ -53,6 +51,11 @@ COPTFLAG += $(XESS) #-I$(KINCDIR) CPPFLAGS += -D_REENTRANT +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-parentheses + CPPFLAGS += -I../../lib/gss_mechs/mech_krb5/include \ -I$(SRC)/lib/gss_mechs/mech_krb5 \ -I$(SRC)/lib/gss_mechs/mech_krb5/include \ diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/krb5/ldap_util/Makefile --- a/usr/src/cmd/krb5/ldap_util/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/krb5/ldap_util/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG= kdb5_ldap_util @@ -62,6 +60,11 @@ -I../kwarn \ $(DEFS) +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-implicit-function-declaration + LDFLAGS += $(KRUNPATH) $(KERBRUNPATH) LDLIBS += -L $(ROOT_KLIBDIR) -L $(KRB5LIB) -lkadm5srv -lkdb -lkdb_ldap \ -lmech_krb5 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/krb5/slave/Makefile --- a/usr/src/cmd/krb5/slave/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/krb5/slave/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -2,8 +2,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG1=kprop PROG2=kpropd @@ -57,6 +55,14 @@ -I$(SRC)/lib/krb5/kadm5 \ -I$(SRC)/uts/common/gssapi/mechs/krb5/include +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-address + LDFLAGS += $(KRUNPATH) $(KERBRUNPATH) LDLIBS += -lmech_krb5 -lsocket $(PROG1) := LDLIBS += -L$(KRB5LIB) -lkadm5srv diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/ksh/Makefile.com --- a/usr/src/cmd/ksh/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/ksh/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -59,6 +59,7 @@ $(ASTCFLAGS64) # Workaround for CR#6628728 ("|memcntl()| prototype not available for C99/XPG6") +pmain.o := CERRWARN += -_gcc=-Wno-implicit-function-declaration pmain.o := CERRWARN += -erroff=E_NO_IMPLICIT_DECL_ALLOWED .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/ksh/builtins/Makefile --- a/usr/src/cmd/ksh/builtins/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/ksh/builtins/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -90,8 +90,8 @@ include ../../Makefile.cmd $(SPARC_BLD)include ../../Makefile.cmd.64 - FILEMODE= 555 +CERRWARN += -_gcc=-Wno-parentheses .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/latencytop/Makefile.com --- a/usr/src/cmd/latencytop/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/latencytop/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -32,6 +32,8 @@ CFLAGS += $(CCVERBOSE) CFLAGS64 += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized + CPPFLAGS += -DEMBED_CONFIGS -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include C99MODE = $(C99_ENABLE) LDLIBS += -lcurses -ldtrace diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/ldap/Makefile.com --- a/usr/src/cmd/ldap/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/ldap/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -83,6 +83,12 @@ LINTFLAGS += -erroff=E_INCONS_ARG_DECL2 LINTFLAGS += -erroff=E_INCONS_VAL_TYPE_DECL2 +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized + all:= TARGET= all install:= TARGET= install clean:= TARGET= clean diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/ldapcachemgr/Makefile --- a/usr/src/cmd/ldapcachemgr/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/ldapcachemgr/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -51,6 +51,10 @@ -I$(SRC)/lib/libldap5/include/ldap \ -I$(SRC)/lib/libc/port/gen +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # Message files POFILE= ldap_cachemgr.po POFILES= ${OBJS:%.o=%.po} diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/ldmad/Makefile --- a/usr/src/cmd/ldmad/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/ldmad/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -65,6 +65,7 @@ INCS += -I$(SRC)/uts/sun4v CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(INCS) C99MODE = $(C99_ENABLE) +CERRWARN += -_gcc=-Wno-uninitialized LINTFLAGS += -erroff=E_BAD_PTR_CAST_ALIGN diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/link/Makefile --- a/usr/src/cmd/link/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/link/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG= link XPG4PROG= link @@ -36,6 +34,8 @@ FILEMODE= 0555 +CERRWARN += -_gcc=-Wno-parentheses + .KEEP_STATE: all: $(PROG) $(XPG4) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/listen/Makefile --- a/usr/src/cmd/listen/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/listen/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -57,6 +57,12 @@ LINTFLAGS = -b -x FILEMODE= 0755 +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-empty-body +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + $(LIBSAFD)/% : % $(INS.file) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/loadkeys/Makefile --- a/usr/src/cmd/loadkeys/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/loadkeys/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,10 +22,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# -# cmd/loadkeys/Makefile -# PROG= loadkeys dumpkeys sparc_SUBDIRS= type_4 type_6 type_101 @@ -41,6 +37,11 @@ include ../Makefile.cmd +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: .PARALLEL: $(SUBDIRS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/localedef/Makefile --- a/usr/src/cmd/localedef/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/localedef/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -26,9 +26,13 @@ SRCS = $(OBJS:%.o=%.c) CPPFLAGS += -I $(SRC)/lib/libc/port/locale +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-label LDLIBS += -lgen LDLIBS += -lavl YFLAGS = -d -b parser + CLEANFILES = $(OBJS) parser.tab.c parser.tab.h CLEANFILES += \ UTF-8.cm UTF-8.ct \ diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/lockstat/Makefile.com --- a/usr/src/cmd/lockstat/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/lockstat/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -32,6 +32,7 @@ LDLIBS += -lelf -lkstat -ldtrace CFLAGS += $(CCVERBOSE) CFLAGS64 += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized LINTFLAGS += -xerroff=E_SEC_SPRINTF_UNBOUNDED_COPY LINTFLAGS64 += -xerroff=E_SEC_SPRINTF_UNBOUNDED_COPY diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/lofiadm/Makefile --- a/usr/src/cmd/lofiadm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/lofiadm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -37,6 +37,9 @@ CPPFLAGS += -I $(SRC)/common/crypto -I $(SRC)/common/lzma LDLIBS += -ldevinfo -lpkcs11 -lcryptoutil +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + LINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2 .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/logadm/Makefile --- a/usr/src/cmd/logadm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/logadm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -33,6 +33,9 @@ include ../Makefile.cmd CPPFLAGS += -D_FILE_OFFSET_BITS=64 +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-clobbered +CERRWARN += -_gcc=-Wno-uninitialized XGETFLAGS += -a -x logadm.xcl $(ROOTETC)/$(CONFIGFILE):= FILEMODE= 644 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/logins/Makefile --- a/usr/src/cmd/logins/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/logins/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,12 +20,8 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1990 by Sun Microsystems, Inc. # -# cmd/logins/Makefile -# PROG= logins PKGINFO= pkginfo @@ -34,6 +30,9 @@ include ../Makefile.cmd TEXT_DOMAIN= SUNW_OST_ADMIN +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + FILEMODE= 0750 .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/look/Makefile --- a/usr/src/cmd/look/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/look/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1989 by Sun Microsystems, Inc. # @@ -37,6 +35,8 @@ #DIRS= $(ROOTLIB) $(ROOTDATADIR) DIRS= $(ROOTDATADIR) +CERRWARN += -_gcc=-Wno-implicit-function-declaration + FILEMODE= 755 $(ROOTDATADIR)/$(DATA):= FILEMODE=444 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/lp/Makefile.lp --- a/usr/src/cmd/lp/Makefile.lp Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/lp/Makefile.lp Sun Jul 22 16:03:46 2012 -0400 @@ -85,6 +85,17 @@ LINTUSR = $(LPLIB)/users/llib-llpusr.ln CERRWARN += -_gcc=-Wno-sequence-point +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-clobbered +CERRWARN += -_gcc=-Wno-empty-body +CERRWARN += -_gcc=-Wno-extra +CERRWARN += -_gcc=-Wno-address all:= TARGET= all install:= TARGET= install diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/lp/lib/filters/Makefile --- a/usr/src/cmd/lp/lib/filters/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/lp/lib/filters/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,10 +23,6 @@ # Copyright 1990-2003 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# -# cmd/lp/lib/filters/Makefile -# LIBRARY = liblpflt.a @@ -53,6 +49,9 @@ CPPFLAGS = -I../../include $(CPPFLAGS.master) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + POFILE = lp_lib_filters.po .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/ls/Makefile.com --- a/usr/src/cmd/ls/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/ls/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -35,6 +35,8 @@ LDLIBS += -lsec -lnvpair -lcmdutils -lcurses CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized $(XPG4) := CFLAGS += -DXPG4 # Include all XPG4 changes in the XPG6 version diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/luxadm/Makefile --- a/usr/src/cmd/luxadm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/luxadm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Use is subject to license terms. # -# - PROG = luxadm COBJS = adm.o fchba.o lux_util.o fabric_conf.o @@ -39,6 +37,11 @@ include ../Makefile.cmd +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-address + sparc_LDLIBS = -la5k -lg_fc -ldevid -lkstat -ldevinfo i386_LDLIBS = LDLIBS += $($(MACH)_LDLIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/lvm/Makefile.lvm --- a/usr/src/cmd/lvm/Makefile.lvm Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/lvm/Makefile.lvm Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2000-2003 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# # # Libraries and utilities go here. @@ -33,6 +31,13 @@ RPCGENFLAGS_SERVER = $(RPCGENFLAGS) -s circuit_n CPPFLAGS += -D_FILE_OFFSET_BITS=64 +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-unused-value # # Lint flags we use for volume management. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/lvm/metassist/Makefile.env --- a/usr/src/cmd/lvm/metassist/Makefile.env Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/lvm/metassist/Makefile.env Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,10 @@ # Copyright 2003 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# # Define DEBUG when running nightly DEBUG build $(NOT_RELEASE_BUILD) CPPFLAGS += -DDEBUG +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-value diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mail/Makefile --- a/usr/src/cmd/mail/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mail/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -19,7 +19,6 @@ # CDDL HEADER END # # -# # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -71,6 +70,11 @@ -e 's!VAR_MAIL!/var/mail!g' < $? > $@ CPPFLAGS = -DSVR4 -I. $(CPPFLAGS.master) +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-clobbered +CERRWARN += -_gcc=-Wno-extra LDLIBS += -lmail -lsocket diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mailx/Makefile --- a/usr/src/cmd/mailx/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mailx/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -62,6 +62,10 @@ $(ROOTUCBMAILRC) := FILEMODE = 0644 CPPFLAGS= -Ihdr -DUSG -DOPTIM $(CPPFLAGS.master) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-clobbered LINTFLAGS= -hb LDLIBS += -lmail LDFLAGS += $(MAPFILE.NGB:%=-M%) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/man/src/Makefile --- a/usr/src/cmd/man/src/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/man/src/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -47,6 +47,10 @@ ROOTLIBSHELL = $(LIBSHELL:%=$(ROOTLIB)/%) ROOTLNKPROG = $(LNKPROG:%=$(ROOTBIN)/%) +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-variable + # for messaging catalog files POFILE= src.po POFILES= $(SRCS:%.c=%.po) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/Makefile.kmdb --- a/usr/src/cmd/mdb/Makefile.kmdb Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/Makefile.kmdb Sun Jul 22 16:03:46 2012 -0400 @@ -99,6 +99,13 @@ -xerroff=E_INCONS_VAL_TYPE_DECL2 \ -xerroff=E_INCONS_VAL_TYPE_USED2 +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-clobbered +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses + MAPFILE = mapfile MAPFILE_INTERMEDIATE = $(MAPFILE).i MAPFILE_TEMPLATE = ../../../common/kmdb/mapfile_skel diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/Makefile.libstand --- a/usr/src/cmd/mdb/Makefile.libstand Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/Makefile.libstand Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# .KEEP_STATE: .SUFFIXES: @@ -73,6 +71,8 @@ CLINTFILES = $(SRCS:%.c=%.ln) LINTFILES = $(CLINTFILES:%.s=%.ln) +CERRWARN += -_gcc=-Wno-parentheses + LIB = libstand.a COBJS = $(SRCS:%.c=%.o) OBJS = $(COBJS:%.s=%.o) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/Makefile.libstandctf --- a/usr/src/cmd/mdb/Makefile.libstandctf Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/Makefile.libstandctf Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" .KEEP_STATE: @@ -59,6 +58,8 @@ LINTFLAGS += -n -errtags=yes +CERRWARN += -_gcc=-Wno-uninitialized + .NO_PARALLEL: .PARALLEL: $(OBJS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/Makefile.mdb --- a/usr/src/cmd/mdb/Makefile.mdb Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/Makefile.mdb Sun Jul 22 16:03:46 2012 -0400 @@ -99,6 +99,13 @@ LDLIBS += -lcurses -lkvm -lproc -lrtld_db -lctf -lumem -ldisasm -lscf +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-clobbered +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-variable + # # -erroff=E_INCONS_ARG_DECL2 works around a problem where lint gets confused # about how struct mdb_tgt_gregset is used in mdb_tgt_stack_f() and diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/Makefile.mdb_ks --- a/usr/src/cmd/mdb/Makefile.mdb_ks Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/Makefile.mdb_ks Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# # # mdb_ks, as used in kmdb, requires some special care and feeding during the @@ -57,3 +55,4 @@ # kmod/mdb_ks.o := CPPFLAGS += -D_mdb_init=mdb_ks_init -D_mdb_fini=mdb_ks_fini +CERRWARN += -_gcc=-Wno-type-limits diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/i86pc/modules/unix/amd64/Makefile --- a/usr/src/cmd/mdb/i86pc/modules/unix/amd64/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/i86pc/modules/unix/amd64/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" MODULE = unix.so MDBTGT = kvm @@ -39,3 +38,8 @@ CPPFLAGS += -I../../../../common CPPFLAGS += -I$(SRC)/uts/i86pc CPPFLAGS += -I$(SRC)/uts/intel + +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/i86pc/modules/unix/ia32/Makefile --- a/usr/src/cmd/mdb/i86pc/modules/unix/ia32/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/i86pc/modules/unix/ia32/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" MODULE = unix.so MDBTGT = kvm @@ -38,3 +37,8 @@ CPPFLAGS += -I../../../../common CPPFLAGS += -I$(SRC)/uts/i86pc CPPFLAGS += -I$(SRC)/uts/intel + +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/i86xpv/modules/unix/amd64/Makefile --- a/usr/src/cmd/mdb/i86xpv/modules/unix/amd64/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/i86xpv/modules/unix/amd64/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" MODULE = unix.so MDBTGT = kvm @@ -43,3 +42,8 @@ CPPFLAGS += -I$(SRC)/uts/i86xpv CPPFLAGS += -I$(SRC)/uts/i86pc CPPFLAGS += -I$(SRC)/uts/intel + +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/i86xpv/modules/unix/ia32/Makefile --- a/usr/src/cmd/mdb/i86xpv/modules/unix/ia32/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/i86xpv/modules/unix/ia32/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" MODULE = unix.so MDBTGT = kvm @@ -42,3 +41,8 @@ CPPFLAGS += -I$(SRC)/uts/i86xpv CPPFLAGS += -I$(SRC)/uts/i86pc CPPFLAGS += -I$(SRC)/uts/intel + +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/intel/amd64/fcip/Makefile --- a/usr/src/cmd/mdb/intel/amd64/fcip/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/intel/amd64/fcip/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -36,3 +36,5 @@ CPPFLAGS += -I$(SRC)/uts/common LINTFLAGS64 += -erroff=E_STATIC_UNUSED + +CERRWARN += -_gcc=-Wno-unused-function diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/intel/amd64/fctl/Makefile --- a/usr/src/cmd/mdb/intel/amd64/fctl/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/intel/amd64/fctl/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -42,4 +42,8 @@ LINTFLAGS64 += -erroff=E_FUNC_ARG_UNUSED LINTFLAGS64 += -erroff=E_SEC_SPRINTF_UNBOUNDED_COPY # if optimization is on, compiler asserts -COPTFLAG64 = -v +COPTFLAG64 = $(CCVERBOSE) + +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/intel/amd64/genunix/Makefile --- a/usr/src/cmd/mdb/intel/amd64/genunix/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/intel/amd64/genunix/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" MODULE = genunix.so MDBTGT = kvm @@ -67,3 +66,9 @@ # Needed to find include file mutex_impl.h CPPFLAGS += -I$(SRC)/uts/intel + +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-type-limits diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/intel/amd64/idm/Makefile --- a/usr/src/cmd/mdb/intel/amd64/idm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/intel/amd64/idm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -1,3 +1,4 @@ + # # CDDL HEADER START # @@ -39,3 +40,5 @@ CPPFLAGS += -I$(ISCSITBASE) CPPFLAGS += -I$(ISCSIBASE) CPPFLAGS += -I$(ISERBASE) + +CERRWARN += -_gcc=-Wno-uninitialized diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/intel/amd64/ipc/Makefile --- a/usr/src/cmd/mdb/intel/amd64/ipc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/intel/amd64/ipc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,6 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" MODULE = ipc.so MDBTGT = kvm @@ -34,3 +33,5 @@ include ../../../../Makefile.cmd.64 include ../../Makefile.amd64 include ../../../Makefile.module + +CERRWARN += -_gcc=-Wno-parentheses diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/intel/amd64/ipp/Makefile --- a/usr/src/cmd/mdb/intel/amd64/ipp/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/intel/amd64/ipp/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,6 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" MODULE = ipp.so MDBTGT = kvm @@ -34,3 +33,5 @@ include ../../../../Makefile.cmd.64 include ../../Makefile.amd64 include ../../../Makefile.module + +CERRWARN += -_gcc=-Wno-uninitialized diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/intel/amd64/libproc/Makefile --- a/usr/src/cmd/mdb/intel/amd64/libproc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/intel/amd64/libproc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" MODULE = libproc.so MDBTGT = proc @@ -39,6 +38,8 @@ CFLAGS64 += -I../../../../../lib/libproc/common LINTFLAGS64 += -I../../../../../lib/libproc/common +CERRWARN += -_gcc=-Wno-uninitialized + %.o: $(MODSRCS_DIR)/%.c $(COMPILE.c) $< $(CTFCONVERT_O) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/intel/amd64/libtopo/Makefile --- a/usr/src/cmd/mdb/intel/amd64/libtopo/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/intel/amd64/libtopo/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" MODULE = libtopo.so MDBTGT = proc @@ -36,3 +35,4 @@ include ../../../Makefile.module CPPFLAGS += -I$(SRC)/lib/fm/topo/libtopo/common +CERRWARN += -_gcc=-Wno-parentheses diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/intel/amd64/libumem/Makefile --- a/usr/src/cmd/mdb/intel/amd64/libumem/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/intel/amd64/libumem/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" MODULE = libumem.so MDBTGT = proc @@ -50,6 +49,10 @@ dmod/$(MODULE) := LDLIBS += -lproc -lm +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + %.o: $(MODSRCS_DIR)/%.c $(COMPILE.c) $< $(CTFCONVERT_O) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/intel/amd64/libzpool/Makefile --- a/usr/src/cmd/mdb/intel/amd64/libzpool/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/intel/amd64/libzpool/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,6 @@ # Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" MODULE = libzpool.so MDBTGT = proc @@ -44,6 +43,8 @@ C99MODE= -xc99=%all C99LMODE= -Xc99=%all +CERRWARN += -_gcc=-Wno-type-limits + dmod/%.o: $(GENUNIX_DIR)/%.c $(COMPILE.c) -o $@ $< $(CTFCONVERT_O) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/intel/amd64/mpt_sas/Makefile --- a/usr/src/cmd/mdb/intel/amd64/mpt_sas/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/intel/amd64/mpt_sas/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -33,3 +33,5 @@ include ../../../Makefile.module CPPFLAGS += -I$(SRC)/uts/common + +CERRWARN += -_gcc=-Wno-trigraphs diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/intel/amd64/pmcs/Makefile --- a/usr/src/cmd/mdb/intel/amd64/pmcs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/intel/amd64/pmcs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -36,3 +36,7 @@ C99MODE = -xc99=%all CPPFLAGS += -I$(SRC)/uts/common + +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-uninitialized diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/intel/amd64/qlc/Makefile --- a/usr/src/cmd/mdb/intel/amd64/qlc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/intel/amd64/qlc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -44,3 +44,4 @@ C99MODE= -xc99=%all C99LMODE= -Xc99=%all +CERRWARN += -_gcc=-Wno-address diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/intel/amd64/rdc/Makefile --- a/usr/src/cmd/mdb/intel/amd64/rdc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/intel/amd64/rdc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -34,3 +34,5 @@ include ../../../Makefile.module include ../../../common/modules/rdc/Makefile.com CPPFLAGS += -erroff=E_STATIC_UNUSED + +CERRWARN += -_gcc=-Wno-unused-function diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/intel/amd64/ufs/Makefile --- a/usr/src/cmd/mdb/intel/amd64/ufs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/intel/amd64/ufs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" MODULE = ufs.so MDBTGT = kvm @@ -33,3 +32,5 @@ include ../../../../Makefile.cmd.64 include ../../Makefile.amd64 include ../../../Makefile.module + +CERRWARN += -_gcc=-Wno-trigraphs diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/intel/amd64/zfs/Makefile --- a/usr/src/cmd/mdb/intel/amd64/zfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/intel/amd64/zfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,6 @@ # Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" MODULE = zfs.so MDBTGT = kvm @@ -39,3 +38,5 @@ C99MODE= -xc99=%all C99LMODE= -Xc99=%all + +CERRWARN += -_gcc=-Wno-type-limits diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/intel/ia32/fcip/Makefile --- a/usr/src/cmd/mdb/intel/ia32/fcip/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/intel/ia32/fcip/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -35,3 +35,5 @@ CPPFLAGS += -I$(SRC)/uts/common LINTFLAGS += -erroff=E_STATIC_UNUSED + +CERRWARN += -_gcc=-Wno-unused-function diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/intel/ia32/fctl/Makefile --- a/usr/src/cmd/mdb/intel/ia32/fctl/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/intel/ia32/fctl/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -41,4 +41,8 @@ LINTFLAGS += -erroff=E_FUNC_ARG_UNUSED LINTFLAGS += -erroff=E_SEC_SPRINTF_UNBOUNDED_COPY # if optimization is on, compiler asserts -COPTFLAG = -v +COPTFLAG = $(CCVERBOSE) + +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/intel/ia32/genunix/Makefile --- a/usr/src/cmd/mdb/intel/ia32/genunix/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/intel/ia32/genunix/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -18,13 +18,10 @@ # # CDDL HEADER END - -# # # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" MODULE = genunix.so MDBTGT = kvm @@ -66,3 +63,9 @@ # Needed to find include file mutex_impl.h CPPFLAGS += -I$(SRC)/uts/intel + +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-type-limits diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/intel/ia32/idm/Makefile --- a/usr/src/cmd/mdb/intel/ia32/idm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/intel/ia32/idm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -38,3 +38,5 @@ CPPFLAGS += -I$(ISCSITBASE) CPPFLAGS += -I$(ISCSIBASE) CPPFLAGS += -I$(ISERBASE) + +CERRWARN += -_gcc=-Wno-uninitialized diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/intel/ia32/ipc/Makefile --- a/usr/src/cmd/mdb/intel/ia32/ipc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/intel/ia32/ipc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,6 @@ # Copyright (c) 1999 by Sun Microsystems, Inc. # All rights reserved. # -#ident "%Z%%M% %I% %E% SMI" MODULE = ipc.so MDBTGT = kvm @@ -33,3 +32,5 @@ include ../../../../Makefile.cmd include ../../Makefile.ia32 include ../../../Makefile.module + +CERRWARN += -_gcc=-Wno-parentheses diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/intel/ia32/ipp/Makefile --- a/usr/src/cmd/mdb/intel/ia32/ipp/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/intel/ia32/ipp/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,6 @@ # Copyright 2001-2002 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" MODULE = ipp.so MDBTGT = kvm @@ -33,3 +32,5 @@ include ../../../../Makefile.cmd include ../../Makefile.ia32 include ../../../Makefile.module + +CERRWARN += -_gcc=-Wno-uninitialized diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/intel/ia32/libproc/Makefile --- a/usr/src/cmd/mdb/intel/ia32/libproc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/intel/ia32/libproc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" MODULE = libproc.so MDBTGT = proc @@ -38,6 +37,8 @@ CFLAGS += -I../../../../../lib/libproc/common LINTFLAGS += -I../../../../../lib/libproc/common +CERRWARN += -_gcc=-Wno-uninitialized + %.o: $(MODSRCS_DIR)/%.c $(COMPILE.c) $< $(CTFCONVERT_O) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/intel/ia32/libtopo/Makefile --- a/usr/src/cmd/mdb/intel/ia32/libtopo/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/intel/ia32/libtopo/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" MODULE = libtopo.so MDBTGT = proc @@ -35,3 +34,4 @@ include ../../../Makefile.module CPPFLAGS += -I$(SRC)/lib/fm/topo/libtopo/common +CERRWARN += -_gcc=-Wno-parentheses diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/intel/ia32/libumem/Makefile --- a/usr/src/cmd/mdb/intel/ia32/libumem/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/intel/ia32/libumem/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" MODULE = libumem.so MDBTGT = proc @@ -49,6 +48,10 @@ dmod/$(MODULE) := LDLIBS += -lproc -lm +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + %.o: $(MODSRCS_DIR)/%.c $(COMPILE.c) $< $(CTFCONVERT_O) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/intel/ia32/libzpool/Makefile --- a/usr/src/cmd/mdb/intel/ia32/libzpool/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/intel/ia32/libzpool/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,6 @@ # Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" MODULE = libzpool.so MDBTGT = proc @@ -43,6 +42,8 @@ C99MODE= -xc99=%all C99LMODE= -Xc99=%all +CERRWARN += -_gcc=-Wno-type-limits + dmod/%.o: $(GENUNIX_DIR)/%.c $(COMPILE.c) -o $@ $< $(CTFCONVERT_O) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/intel/ia32/mpt_sas/Makefile --- a/usr/src/cmd/mdb/intel/ia32/mpt_sas/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/intel/ia32/mpt_sas/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -33,3 +33,5 @@ include ../../../Makefile.module CPPFLAGS += -I$(SRC)/uts/common + +CERRWARN += -_gcc=-Wno-trigraphs diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/intel/ia32/pmcs/Makefile --- a/usr/src/cmd/mdb/intel/ia32/pmcs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/intel/ia32/pmcs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -35,3 +35,7 @@ C99MODE = -xc99=%all CPPFLAGS += -I$(SRC)/uts/common + +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-uninitialized diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/intel/ia32/qlc/Makefile --- a/usr/src/cmd/mdb/intel/ia32/qlc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/intel/ia32/qlc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -43,3 +43,4 @@ C99MODE= -xc99=%all C99LMODE= -Xc99=%all +CERRWARN += -_gcc=-Wno-address diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/intel/ia32/rdc/Makefile --- a/usr/src/cmd/mdb/intel/ia32/rdc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/intel/ia32/rdc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -33,3 +33,5 @@ include ../../../Makefile.module include ../../../common/modules/rdc/Makefile.com CPPFLAGS += -erroff=E_STATIC_UNUSED + +CERRWARN += -_gcc=-Wno-unused-function diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/intel/ia32/ufs/Makefile --- a/usr/src/cmd/mdb/intel/ia32/ufs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/intel/ia32/ufs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" MODULE = ufs.so MDBTGT = kvm @@ -32,3 +31,5 @@ include ../../../../Makefile.cmd include ../../Makefile.ia32 include ../../../Makefile.module + +CERRWARN += -_gcc=-Wno-trigraphs diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/intel/ia32/zfs/Makefile --- a/usr/src/cmd/mdb/intel/ia32/zfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/intel/ia32/zfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# MODULE = zfs.so MDBTGT = kvm @@ -39,3 +37,5 @@ C99MODE= -xc99=%all C99LMODE= -Xc99=%all + +CERRWARN += -_gcc=-Wno-type-limits diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/intel/modules/amd_opteron/amd64/Makefile --- a/usr/src/cmd/mdb/intel/modules/amd_opteron/amd64/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/intel/modules/amd_opteron/amd64/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -36,3 +36,5 @@ CPPFLAGS += -I$(SRC)/uts/i86pc/cpu CPPFLAGS += -I$(SRC)/uts/intel CPPFLAGS += -I$(SRC)/uts/i86pc + +CERRWARN += -_gcc=-Wno-uninitialized diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/intel/modules/amd_opteron/ia32/Makefile --- a/usr/src/cmd/mdb/intel/modules/amd_opteron/ia32/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/intel/modules/amd_opteron/ia32/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -35,3 +35,5 @@ CPPFLAGS += -I$(SRC)/uts/i86pc/cpu CPPFLAGS += -I$(SRC)/uts/intel CPPFLAGS += -I$(SRC)/uts/i86pc + +CERRWARN += -_gcc=-Wno-uninitialized diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/intel/modules/generic_cpu/amd64/Makefile --- a/usr/src/cmd/mdb/intel/modules/generic_cpu/amd64/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/intel/modules/generic_cpu/amd64/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -35,3 +35,5 @@ CPPFLAGS += -I$(SRC)/uts/i86pc/cpu CPPFLAGS += -I$(SRC)/uts/intel CPPFLAGS += -I$(SRC)/uts/i86pc + +CERRWARN += -_gcc=-Wno-uninitialized diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/intel/modules/generic_cpu/ia32/Makefile --- a/usr/src/cmd/mdb/intel/modules/generic_cpu/ia32/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/intel/modules/generic_cpu/ia32/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -35,3 +35,5 @@ CPPFLAGS += -I$(SRC)/uts/i86pc/cpu CPPFLAGS += -I$(SRC)/uts/intel CPPFLAGS += -I$(SRC)/uts/i86pc + +CERRWARN += -_gcc=-Wno-uninitialized diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/sparc/v7/libproc/Makefile --- a/usr/src/cmd/mdb/sparc/v7/libproc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/sparc/v7/libproc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" MODULE = libproc.so MDBTGT = proc @@ -38,6 +37,8 @@ CFLAGS += -I../../../../../lib/libproc/common LINTFLAGS += -I../../../../../lib/libproc/common +CERRWARN += -_gcc=-Wno-uninitialized + %.o: $(MODSRCS_DIR)/%.c $(COMPILE.c) $< $(CTFCONVERT_O) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/sparc/v7/libtopo/Makefile --- a/usr/src/cmd/mdb/sparc/v7/libtopo/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/sparc/v7/libtopo/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" MODULE = libtopo.so MDBTGT = proc @@ -35,3 +34,4 @@ include ../../../Makefile.module CPPFLAGS += -I$(SRC)/lib/fm/topo/libtopo/common +CERRWARN += -_gcc=-Wno-parentheses diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/sparc/v7/libumem/Makefile --- a/usr/src/cmd/mdb/sparc/v7/libumem/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/sparc/v7/libumem/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" MODULE = libumem.so MDBTGT = proc @@ -49,6 +48,10 @@ dmod/$(MODULE) := LDLIBS += -lproc -lm +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + %.o: $(MODSRCS_DIR)/%.c $(COMPILE.c) $< $(CTFCONVERT_O) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/sparc/v7/libzpool/Makefile --- a/usr/src/cmd/mdb/sparc/v7/libzpool/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/sparc/v7/libzpool/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,6 @@ # Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" MODULE = libzpool.so MDBTGT = proc @@ -43,6 +42,8 @@ C99MODE= -xc99=%all C99LMODE= -Xc99=%all +CERRWARN += -_gcc=-Wno-type-limits + dmod/%.o: $(GENUNIX_DIR)/%.c $(COMPILE.c) -o $@ $< $(CTFCONVERT_O) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/sparc/v9/fcip/Makefile --- a/usr/src/cmd/mdb/sparc/v9/fcip/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/sparc/v9/fcip/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -36,3 +36,5 @@ CPPFLAGS += -I$(SRC)/uts/common LINTFLAGS64 += -erroff=E_STATIC_UNUSED + +CERRWARN += -_gcc=-Wno-unused-function diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/sparc/v9/fctl/Makefile --- a/usr/src/cmd/mdb/sparc/v9/fctl/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/sparc/v9/fctl/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -41,3 +41,7 @@ LINTFLAGS64 += -erroff=E_FUNC_SET_NOT_USED LINTFLAGS64 += -erroff=E_FUNC_ARG_UNUSED LINTFLAGS64 += -erroff=E_SEC_SPRINTF_UNBOUNDED_COPY + +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/sparc/v9/genunix/Makefile --- a/usr/src/cmd/mdb/sparc/v9/genunix/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/sparc/v9/genunix/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" MODULE = genunix.so MDBTGT = kvm @@ -65,3 +64,9 @@ CPPFLAGS += -I$(SRC)/uts/common # Needed to find include file mutex_impl.h CPPFLAGS += -I$(SRC)/uts/sparc/v9 + +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-type-limits diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/sparc/v9/idm/Makefile --- a/usr/src/cmd/mdb/sparc/v9/idm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/sparc/v9/idm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -39,3 +39,5 @@ CPPFLAGS += -I$(ISCSITBASE) CPPFLAGS += -I$(ISCSIBASE) CPPFLAGS += -I$(ISERBASE) + +CERRWARN += -_gcc=-Wno-uninitialized diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/sparc/v9/ipc/Makefile --- a/usr/src/cmd/mdb/sparc/v9/ipc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/sparc/v9/ipc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,6 @@ # Copyright (c) 1999-2000 by Sun Microsystems, Inc. # All rights reserved. # -#ident "%Z%%M% %I% %E% SMI" MODULE = ipc.so MDBTGT = kvm @@ -34,3 +33,5 @@ include ../../../../Makefile.cmd.64 include ../../Makefile.sparcv9 include ../../../Makefile.module + +CERRWARN += -_gcc=-Wno-parentheses diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/sparc/v9/ipp/Makefile --- a/usr/src/cmd/mdb/sparc/v9/ipp/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/sparc/v9/ipp/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,6 @@ # Copyright 2001-2002 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" MODULE = ipp.so MDBTGT = kvm @@ -34,3 +33,5 @@ include ../../../../Makefile.cmd.64 include ../../Makefile.sparcv9 include ../../../Makefile.module + +CERRWARN += -_gcc=-Wno-uninitialized diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/sparc/v9/libproc/Makefile --- a/usr/src/cmd/mdb/sparc/v9/libproc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/sparc/v9/libproc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" MODULE = libproc.so MDBTGT = proc @@ -39,6 +38,8 @@ CFLAGS64 += -I../../../../../lib/libproc/common LINTFLAGS64 += -I../../../../../lib/libproc/common +CERRWARN += -_gcc=-Wno-uninitialized + %.o: $(MODSRCS_DIR)/%.c $(COMPILE.c) $< $(CTFCONVERT_O) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/sparc/v9/libtopo/Makefile --- a/usr/src/cmd/mdb/sparc/v9/libtopo/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/sparc/v9/libtopo/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" MODULE = libtopo.so MDBTGT = proc @@ -36,3 +35,4 @@ include ../../../Makefile.module CPPFLAGS += -I$(SRC)/lib/fm/topo/libtopo/common +CERRWARN += -_gcc=-Wno-parentheses diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/sparc/v9/libumem/Makefile --- a/usr/src/cmd/mdb/sparc/v9/libumem/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/sparc/v9/libumem/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" MODULE = libumem.so MDBTGT = proc @@ -63,6 +62,10 @@ dmod/$(MODULE) := LDLIBS += -lproc -lm +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + %.o: $(MODSRCS_DIR)/%.c $(COMPILE.c) $< $(CTFCONVERT_O) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/sparc/v9/libzpool/Makefile --- a/usr/src/cmd/mdb/sparc/v9/libzpool/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/sparc/v9/libzpool/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,6 @@ # Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" MODULE = libzpool.so MDBTGT = proc @@ -44,6 +43,8 @@ C99MODE= -xc99=%all C99LMODE= -Xc99=%all +CERRWARN += -_gcc=-Wno-type-limits + dmod/%.o: $(GENUNIX_DIR)/%.c $(COMPILE.c) -o $@ $< $(CTFCONVERT_O) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/sparc/v9/mpt_sas/Makefile --- a/usr/src/cmd/mdb/sparc/v9/mpt_sas/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/sparc/v9/mpt_sas/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -33,3 +33,5 @@ include ../../../Makefile.module CPPFLAGS += -I$(SRC)/uts/common + +CERRWARN += -_gcc=-Wno-trigraphs diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/sparc/v9/pmcs/Makefile --- a/usr/src/cmd/mdb/sparc/v9/pmcs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/sparc/v9/pmcs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -36,3 +36,7 @@ C99MODE = -xc99=%all CPPFLAGS += -I$(SRC)/uts/common + +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-uninitialized diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/sparc/v9/qlc/Makefile --- a/usr/src/cmd/mdb/sparc/v9/qlc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/sparc/v9/qlc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -44,3 +44,4 @@ C99MODE= -xc99=%all C99LMODE= -Xc99=%all +CERRWARN += -_gcc=-Wno-address diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/sparc/v9/rdc/Makefile --- a/usr/src/cmd/mdb/sparc/v9/rdc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/sparc/v9/rdc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -34,3 +34,5 @@ include ../../../Makefile.module include ../../../common/modules/rdc/Makefile.com CPPFLAGS += -erroff=E_STATIC_UNUSED + +CERRWARN += -_gcc=-Wno-unused-function diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/sparc/v9/ufs/Makefile --- a/usr/src/cmd/mdb/sparc/v9/ufs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/sparc/v9/ufs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" MODULE = ufs.so MDBTGT = kvm @@ -33,3 +32,5 @@ include ../../../../Makefile.cmd.64 include ../../Makefile.sparcv9 include ../../../Makefile.module + +CERRWARN += -_gcc=-Wno-trigraphs diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/sparc/v9/zfs/Makefile --- a/usr/src/cmd/mdb/sparc/v9/zfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/sparc/v9/zfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,6 @@ # Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" MODULE = zfs.so MDBTGT = kvm @@ -39,3 +38,5 @@ C99MODE= -xc99=%all C99LMODE= -Xc99=%all + +CERRWARN += -_gcc=-Wno-type-limits diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/sun4u/modules/unix/v9/Makefile --- a/usr/src/cmd/mdb/sun4u/modules/unix/v9/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/sun4u/modules/unix/v9/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,6 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" MODULE = unix.so MDBTGT = kvm @@ -42,3 +41,4 @@ CPPFLAGS += -I$(SRC)/uts/sun4u CPPFLAGS += -I$(SRC)/uts/sfmmu CPPFLAGS += -I$(SRC)/uts/sparc/v9 +CERRWARN += -_gcc=-Wno-uninitialized diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/sun4v/modules/unix/v9/Makefile --- a/usr/src/cmd/mdb/sun4v/modules/unix/v9/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/sun4v/modules/unix/v9/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,6 @@ # Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" MODULE = unix.so MDBTGT = kvm @@ -46,3 +45,4 @@ CPPFLAGS += -I$(SRC)/uts/sun4u CPPFLAGS += -I$(SRC)/uts/sfmmu CPPFLAGS += -I$(SRC)/uts/sparc/v9 +CERRWARN += -_gcc=-Wno-uninitialized diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/sun4v/v9/kmdb/Makefile --- a/usr/src/cmd/mdb/sun4v/v9/kmdb/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/sun4v/v9/kmdb/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -72,6 +72,7 @@ ASFLAGS += -Dsun4v ASFLAGS += -I$(SRC)/cmd/mdb/sparc ASFLAGS += -I$(SRC)/cmd/mdb/sparc/v9 -I$(SRC)/cmd/mdb/sparc/v9/kmdb +CERRWARN += -_gcc=-Wno-unused-function install: all $(ROOTMISC64) kaif.fth diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/tools/findfp/Makefile.com --- a/usr/src/cmd/mdb/tools/findfp/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/tools/findfp/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# .KEEP_STATE: @@ -46,6 +44,7 @@ # CPPFLAGS = -I../../common -I../common CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized LDFLAGS = LDLIBS = -lelf diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mdb/tools/setdynflag/Makefile.com --- a/usr/src/cmd/mdb/tools/setdynflag/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mdb/tools/setdynflag/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# .KEEP_STATE: @@ -45,6 +43,7 @@ # CPPFLAGS = -I../../common CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized LDFLAGS = LDLIBS = -lelf diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mkdir/Makefile --- a/usr/src/cmd/mkdir/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mkdir/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,13 +20,9 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# cmd/mkdir/Makefile -# PROG= mkdir OBJS= $(PROG).o common.o @@ -35,6 +31,8 @@ include ../Makefile.cmd CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses LDLIBS += -lgen %.o: ../chmod/%.c diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mkfifo/Makefile --- a/usr/src/cmd/mkfifo/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mkfifo/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,13 +20,9 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# cmd/mkfifo/Makefile -# PROG= mkfifo OBJS= $(PROG).o common.o @@ -35,6 +31,7 @@ include ../Makefile.cmd CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses %.o: ../chmod/%.c $(COMPILE.c) -o $@ $< diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mkmsgs/Makefile --- a/usr/src/cmd/mkmsgs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mkmsgs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -27,6 +27,8 @@ include ../Makefile.cmd LDLIBS += -lgen +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mknod/Makefile --- a/usr/src/cmd/mknod/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mknod/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -31,6 +29,7 @@ include ../Makefile.cmd CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mkpwdict/Makefile --- a/usr/src/cmd/mkpwdict/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mkpwdict/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG= mkpwdict @@ -34,6 +32,8 @@ LINTFLAGS += -erroff=E_NAME_DEF_NOT_USED2 -m LINTFLAGS += -I$(SRC)/lib/pam_modules/authtok_check +CERRWARN += -_gcc=-Wno-parentheses + CRACK_SRCDIR= $(SRC)/lib/pam_modules/authtok_check/ CRACK_OBJS= packer.o packlib.o dict.o stringlib.o CRACK_SRCS= $(CRACK_OBJS:%.o=$(CRACK_SRCDIR)/%.c) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mktemp/Makefile --- a/usr/src/cmd/mktemp/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mktemp/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -# ident "%Z%%M% %I% %E% SMI" -# # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -30,6 +28,8 @@ include ../Makefile.cmd +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/modload/Makefile.com --- a/usr/src/cmd/modload/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/modload/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -59,6 +59,8 @@ LINT_PROG= $(PROG:%=lint_%.c) LINTFLAGS += -erroff=E_NAME_DEF_NOT_USED2 +CERRWARN += -_gcc=-Wno-parentheses + # install specifics $(ROOTDRVPROG) := FILEMODE = 0555 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/more/Makefile --- a/usr/src/cmd/more/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/more/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -39,6 +37,9 @@ $(ROOTLIBDATA) := FILEMODE = 0644 CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-clobbered .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/msgfmt/Makefile --- a/usr/src/cmd/msgfmt/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/msgfmt/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -26,8 +26,6 @@ # All Rights Reserved # -#ident "%Z%%M% %I% %E% SMI" - # cmd/msgfmt/Makefile include ../Makefile.cmd @@ -64,6 +62,11 @@ ROOTBINPROG= $(BINPROG:%=$(ROOTBIN)/%) ROOTLIBPROG= $(LIBPROG:%=$(ROOTLIB)/%) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-variable + .KEEP_STATE: .PARALLEL: $(SOBJS) $(GOBJS) $(YOBJS) $(COBJS) $(BOBJS) $(LOBJS) \ diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/mv/Makefile --- a/usr/src/cmd/mv/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/mv/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -18,8 +18,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -42,6 +40,9 @@ CLOBBERFILES += $(CPFILE) $(LNFILE) CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized $(XPG4) := CFLAGS += -DXPG4 LINTFLAGS += -DXPG4 -u XGETFLAGS += -a -x mv.xcl diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/ndmpadm/Makefile --- a/usr/src/cmd/ndmpadm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/ndmpadm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -46,6 +46,8 @@ LDLIBS += -lndmp +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/ndmpd/Makefile --- a/usr/src/cmd/ndmpd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/ndmpd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -65,6 +65,11 @@ # argument used inconsistently LINTFLAGS += -xerroff=E_INCONS_ARG_USED2 +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-address + LDLIBS += -lsocket -lnsl -lzfs -lsec -lndmp -lmd5 -lnvpair -lumem -lbsm -lgen -lcmdutils -linetutil OBJS= \ diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/newform/Makefile --- a/usr/src/cmd/newform/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/newform/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1989 by Sun Microsystems, Inc. # @@ -29,6 +27,8 @@ include ../Makefile.cmd +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/news/Makefile --- a/usr/src/cmd/news/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/news/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -29,6 +29,9 @@ VARNEWSD= $(ROOT)/var/news DIRS= $(VARNEWSD) +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-parentheses + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/newtask/Makefile.com --- a/usr/src/cmd/newtask/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/newtask/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -34,6 +34,9 @@ CFLAGS += $(CCVERBOSE) CFLAGS64 += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + CPPFLAGS += -I.. .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/nl/Makefile --- a/usr/src/cmd/nl/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/nl/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,10 +22,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# -# cmd/nl/Makefile -# # Message catalog requires no special processing because messages # only occur in ./nl.c, not in ../expr/compile.c. @@ -42,6 +38,8 @@ LDLIBS += -lgen CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-variable $(XPG4):= CPPFLAGS += -DXPG4 MAPFILE.INT = ../expr/mapfile-intf diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/nlsadmin/Makefile --- a/usr/src/cmd/nlsadmin/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/nlsadmin/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -27,6 +27,9 @@ include ../Makefile.cmd FILEMODE= 0755 +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/nscd/Makefile --- a/usr/src/cmd/nscd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/nscd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -58,6 +58,11 @@ LINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2 LINTFLAGS += -erroff=E_NAME_DEF_NOT_USED2 +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-type-limits + # nscd interposes on many symbols, and must export others for its own dlsym() # use, and dlsym() calls from libc. Itemizing the interfaces within a mapfile # is error-prone, so establish the whole object as an interposer. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/oamuser/group/Makefile --- a/usr/src/cmd/oamuser/group/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/oamuser/group/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -50,6 +50,7 @@ INSSBINPROG= $(SBINPROG:%=$(ROOTUSRSBIN)/%) CPPFLAGS= -I$(HERE) -I$(LOCAL) $(CPPFLAGS.master) +CERRWARN += -_gcc=-Wno-type-limits FILEMODE= 0555 $(GROUPADD) := OBJS = $(ADD_OBJ) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/oamuser/lib/Makefile --- a/usr/src/cmd/oamuser/lib/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/oamuser/lib/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -63,6 +63,9 @@ GENERAL= ../inc CPPFLAGS= -I. -I$(GENERAL) $(CPPFLAGS.master) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-unused-variable ARFLAGS= cr AROBJS= `$(LORDER) $(OBJS) | $(TSORT)` LINTFLAGS= -u diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/oamuser/user/Makefile --- a/usr/src/cmd/oamuser/user/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/oamuser/user/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -70,6 +70,10 @@ INSSKELFILE= $(SKELFILE:%=$(ROOTSKEL)/%) CPPFLAGS= -I$(HERE) -I$(LOCAL) $(CPPFLAGS.master) +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses $(INSSBINPROG) := FILEMODE = 0555 $(INSSYSADMPROG):= FILEMODE = 0500 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/oawk/Makefile --- a/usr/src/cmd/oawk/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/oawk/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,13 +20,9 @@ # CDDL HEADER END # # -# ident "%Z%%M% %I% %E% SMI" -# # Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# cmd/oawk/Makefile -# include ../Makefile.cmd @@ -67,6 +63,12 @@ ROOTLINK = $(LINKPROG:%=$(ROOTBIN)/%) +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-extra +CERRWARN += -_gcc=-Wno-parentheses + .KEEP_STATE : all : $(PROG) $(TXTS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/oplhpd/Makefile --- a/usr/src/cmd/oplhpd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/oplhpd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -45,6 +45,8 @@ CPPFLAGS += -I$(SRC)/uts/sun4u/opl LDLIBS64 += -lsysevent -lnvpair -lcfgadm -ldevinfo +CERRWARN += -_gcc=-Wno-unused-variable + PSMPROG = $(USR_PSM_LIB64_DIR)/$(PROG) $(PSMPROG) := FILEMODE = 0755 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/pack/Makefile --- a/usr/src/cmd/pack/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/pack/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -19,8 +19,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -30,6 +28,8 @@ include ../Makefile.cmd CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized XGETFLAGS += -a -x $(PROG).xcl CPPFLAGS += -D_FILE_OFFSET_BITS=64 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/parted/Makefile --- a/usr/src/cmd/parted/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/parted/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -30,6 +30,7 @@ C99MODE= $(C99_ENABLE) CERRWARN += -erroff=E_EXTERN_INLINE_UNDEFINED CERRWARN += -erroff=E_ARG_INCOMPATIBLE_WITH_ARG +CERRWARN += -_gcc=-Wno-unused-function srcdir= . diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/passmgmt/Makefile --- a/usr/src/cmd/passmgmt/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/passmgmt/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -38,6 +38,9 @@ .KEEP_STATE: LDLIBS += -lsecdb -lnsl +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-uninitialized all: $(PROG) $(TXTS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/passwd/Makefile --- a/usr/src/cmd/passwd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/passwd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -33,6 +33,10 @@ LDFLAGS += $(ZIGNORE) LDLIBS += -lbsm -lpam -lnsl +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + FILEMODE = 06555 XGETFLAGS += -a -x $(PROG).xcl diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/pbind/Makefile.com --- a/usr/src/cmd/pbind/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/pbind/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -32,6 +32,8 @@ include ../../Makefile.cmd LDLIBS += -lproc +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/pcidr/Makefile.com --- a/usr/src/cmd/pcidr/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/pcidr/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# # # to be included AFTER cmd/Makefile.cmd or lib/Makefile.lib @@ -48,6 +46,8 @@ CPPFLAGS += -D_REENTRANT -I$(HDRDIR) +CERRWARN += -_gcc=-Wno-type-limits + # Note that LDFLAGS is NOT used in the build rules for shared objects! # LDLIBS is limited to -L and -l options; all other options must be added to # DYNFLAGS for shared objects diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/pcitool/Makefile.com --- a/usr/src/cmd/pcitool/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/pcitool/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -31,6 +31,9 @@ LDLIBS += -ldevinfo CFLAGS += -D$(MACH) -I$(UTSBASE)/common +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable LINTFLAGS += -I$(UTSBASE)/common diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/pg/Makefile --- a/usr/src/cmd/pg/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/pg/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -35,6 +33,10 @@ XGETFLAGS += -a -x $(PROG).xcl CPPFLAGS += -D_FILE_OFFSET_BITS=64 +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-clobbered + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/pgrep/Makefile --- a/usr/src/cmd/pgrep/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/pgrep/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -37,6 +37,7 @@ CLOBBERFILES += $(PKILLFILE) CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses LDLIBS += -luutil -lproject -lcontract POFILE = ppgrep.po diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/picl/plugins/Makefile.com --- a/usr/src/cmd/picl/plugins/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/picl/plugins/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -29,6 +29,12 @@ CPPFLAGS += -I$(SRC)/lib/libpicl -I$(SRC)/lib/libpicltree CPPFLAGS += -I$(SRC)/cmd/picl/plugins/inc CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-variable # Some picl plugins have dependencies to which they make no reference. These # dependencies are expected to be loaded so that their .init's fire and thus diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/picl/plugins/lib/picld_pluginutil/Makefile.com --- a/usr/src/cmd/picl/plugins/lib/picld_pluginutil/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/picl/plugins/lib/picld_pluginutil/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY= libpicld_pluginutil.a VERS= .1 @@ -54,6 +52,7 @@ CPPFLAGS += -I.. -I$(SRC)/lib/libpicl -I$(SRC)/lib/libpicltree CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized CPPFLAGS += -D_REENTRANT DYNFLAGS += $(ZNOLAZYLOAD) LDLIBS += -L$(SRC)/lib/libpicltree/$(MACH) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/plimit/amd64/Makefile --- a/usr/src/cmd/plimit/amd64/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/plimit/amd64/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG= plimit @@ -36,6 +34,7 @@ include ../../Makefile.cmd.64 CFLAGS64 += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized LDLIBS += -lproc diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/plimit/i386/Makefile --- a/usr/src/cmd/plimit/i386/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/plimit/i386/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,13 +20,9 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# cmd/plimit/i386/Makefile -# PROG= plimit @@ -37,6 +33,7 @@ include ../../Makefile.cmd CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized LDLIBS += -lproc diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/plimit/sparcv9/Makefile --- a/usr/src/cmd/plimit/sparcv9/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/plimit/sparcv9/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -35,6 +35,7 @@ include ../../Makefile.cmd.64 CFLAGS64 += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized LDLIBS += -lproc diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/policykit/Makefile --- a/usr/src/cmd/policykit/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/policykit/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG = polkit-is-privileged @@ -39,6 +37,8 @@ CPPFLAGS += -DPACKAGE_VERSION=\"$(POLICYKIT_VERSION)\" C99MODE = $(C99_ENABLE) +CERRWARN += -_gcc=-Wno-unused-variable + ROOTUSRSBINPROG = $(PROG:%=$(ROOTUSRSBIN)/%) .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/pools/Makefile.pools --- a/usr/src/cmd/pools/Makefile.pools Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/pools/Makefile.pools Sun Jul 22 16:03:46 2012 -0400 @@ -23,12 +23,14 @@ # Copyright (c) 2001 by Sun Microsystems, Inc. # All rights reserved. # -#ident "%Z%%M% %I% %E% SMI" -# -# cmd/pools/Makefile.pools POOLSSRC = $(SRC)/cmd/pools POOLSCOMMONDIR = $(POOLSSRC)/common COMMON_OBJS = utils.o COMMON_SRCS = $(COMMON_OBJS:%.o=$(POOLSCOMMONDIR)/%.c) + +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-implicit-function-declaration diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/power/Makefile --- a/usr/src/cmd/power/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/power/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -90,6 +90,9 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-value .PARALLEL: $(OBJS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/powertop/Makefile.com --- a/usr/src/cmd/powertop/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/powertop/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -41,6 +41,8 @@ CFLAGS += $(CCVERBOSE) CFLAGS64 += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized LDLIBS += -lcurses -ldtrace -lkstat FILEMODE = 0555 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/pr/Makefile --- a/usr/src/cmd/pr/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/pr/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1989 by Sun Microsystems, Inc. # @@ -33,6 +31,8 @@ SED = sed DCFILE = $(PROG).dc +CERRWARN += -_gcc=-Wno-parentheses + $(XPG4):= CPPFLAGS += -DXPG4 $(POFILE) := XGETFLAGS += -a -x pr.xcl diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/praudit/Makefile --- a/usr/src/cmd/praudit/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/praudit/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -42,6 +42,9 @@ CPPFLAGS += -D_PRAUDIT -I$(XLATEDIR) CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + LDLIBS += -lbsm -lnsl -lpam -ltsol .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/prctl/Makefile.com --- a/usr/src/cmd/prctl/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/prctl/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -23,10 +23,6 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# -# cmd/prctl/Makefile.com -# PROG= prctl @@ -37,6 +33,8 @@ include ../../Makefile.cmd CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized LDLIBS += -lproc -lproject diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/print/bsd-sysv-commands/Makefile --- a/usr/src/cmd/print/bsd-sysv-commands/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/print/bsd-sysv-commands/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -64,6 +64,9 @@ in.lpd:= CFLAGS += -DSOLARIS_PRIVATE_POST_0_9 in.lpd:= LDLIBS += -lnsl -lsocket +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized + all: $(BINPROGS) $(SBINPROGS) # each program needs common.o as well diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/print/conv_fix/Makefile --- a/usr/src/cmd/print/conv_fix/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/print/conv_fix/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -39,6 +39,8 @@ CPPFLAGS += -I$(NPRTINC) +CERRWARN += -_gcc=-Wno-implicit-function-declaration + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/print/lpset/Makefile --- a/usr/src/cmd/print/lpset/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/print/lpset/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -38,6 +38,7 @@ FILEMODE= 04511 CPPFLAGS += -I$(NPRTINC) +CERRWARN += -_gcc=-Wno-implicit-function-declaration LDLIBS += $(LIBNPRT) -lsecdb .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/print/printer-info/Makefile --- a/usr/src/cmd/print/printer-info/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/print/printer-info/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -34,6 +34,8 @@ ROOTPROG= $(PROG:%=$(ROOTLIBLPBIN)/%) $(ROOTPROG) := FILEMODE=555 +CERRWARN += -_gcc=-Wno-implicit-function-declaration + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/print/printmgr/com/sun/admin/pm/server/Makefile --- a/usr/src/cmd/print/printmgr/com/sun/admin/pm/server/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/print/printmgr/com/sun/admin/pm/server/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -83,6 +83,9 @@ # Following variables define where to find header files CPPFLAGS += -I$(JAVA_ROOT)/include -I$(JAVA_ROOT)/include/solaris -I. +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized + LDLIBS += -lprint -lnsl -lsocket -lc CLEANFILES= *.class $(LINTLIB) $(LINTOUT) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/priocntl/Makefile --- a/usr/src/cmd/priocntl/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/priocntl/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -35,6 +35,8 @@ include ../Makefile.cmd LDLIBS += -lcontract +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized CLASSD = $(ROOTLIB)/class RTD = $(CLASSD)/RT diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/projects/Makefile --- a/usr/src/cmd/projects/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/projects/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -37,6 +35,7 @@ .KEEP_STATE: CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/prstat/Makefile.com --- a/usr/src/cmd/prstat/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/prstat/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -32,6 +32,7 @@ include ../../Makefile.cmd CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses LDLIBS += -lcurses -lproject LINTFLAGS += -u LINTFLAGS64 += -u diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/prtconf/Makefile.com --- a/usr/src/cmd/prtconf/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/prtconf/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -30,6 +30,9 @@ include ../../Makefile.cmd CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized LDLIBS += -ldevinfo -lnvpair FILEMODE= 02555 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/prtdiag/Makefile.com --- a/usr/src/cmd/prtdiag/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/prtdiag/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -31,6 +31,8 @@ OBJS = main.o CLASS = 32 +CERRWARN += -_gcc=-Wno-parentheses + FILEMODE = 2755 DIRMODE = 755 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/prtfru/Makefile --- a/usr/src/cmd/prtfru/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/prtfru/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -32,6 +32,8 @@ include $(SRC)/cmd/Makefile.cmd CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses CPPFLAGS += -I$(SRC)/lib/libfru/include \ -I$(SRC)/lib/libfruutils LINTFLAGS += -u diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/prtvtoc/Makefile --- a/usr/src/cmd/prtvtoc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/prtvtoc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -32,6 +32,9 @@ ROOTSYMLINK= $(ROOTETC)/$(PROG) LDLIBS += -ladm -lefi +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/ps/Makefile.com --- a/usr/src/cmd/ps/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/ps/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -34,6 +34,8 @@ include ../../Makefile.cmd CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized LDLIBS += -lproject .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/psrinfo/Makefile --- a/usr/src/cmd/psrinfo/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/psrinfo/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -31,6 +31,7 @@ include ../Makefile.cmd LDLIBS += -lkstat +CERRWARN += -_gcc=-Wno-uninitialized XGETFLAGS += $(PROG).po := CPPFLAGS += -DXGETTEXT diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/psrset/Makefile.com --- a/usr/src/cmd/psrset/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/psrset/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -32,6 +32,8 @@ include ../../Makefile.cmd CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized LDLIBS += -lproc .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/ptools/Makefile.bld --- a/usr/src/cmd/ptools/Makefile.bld Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/ptools/Makefile.bld Sun Jul 22 16:03:46 2012 -0400 @@ -54,6 +54,21 @@ LDLIBS += $(LDLIBS_$(PROG)) +CERRWARN_plgrp += -_gcc=-Wno-parentheses + +CERRWARN_ppriv += -_gcc=-Wno-parentheses +CERRWARN_ppriv += -_gcc=-Wno-uninitialized + +CERRWARN_ptree += -_gcc=-Wno-parentheses + +CERRWARN_pstack += -_gcc=-Wno-uninitialized +CERRWARN_pstack += -_gcc=-Wno-clobbered + +CERRWARN_pargs += -_gcc=-Wno-clobbered +CERRWARN_pargs += -_gcc=-Wno-type-limits + +CERRWARN += $(CERRWARN_$(PROG)) + # pargs depends on ../../common/elfcap components # pmadvise depends on pmap components diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/raidctl/Makefile --- a/usr/src/cmd/raidctl/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/raidctl/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -30,6 +30,7 @@ LDLIBS += -lraidcfg CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/ramdiskadm/Makefile --- a/usr/src/cmd/ramdiskadm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/ramdiskadm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2002-2003 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG= ramdiskadm OBJS= main.o utils.o @@ -34,6 +32,7 @@ include ../Makefile.cmd LDLIBS += -ldevinfo +CERRWARN += -_gcc=-Wno-uninitialized .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/rcap/Makefile.com --- a/usr/src/cmd/rcap/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/rcap/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" # # Definitions for targets shared by some subdirs, which have @@ -32,6 +31,10 @@ LDFLAGS += $(MAPFILE.NGB:%=-M%) +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + %.o: $(COMMON_DIR)/%.c $(COMPILE.c) $< %.po: $(COMMON_DIR)/%.c diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/rcm_daemon/Makefile.com --- a/usr/src/cmd/rcm_daemon/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/rcm_daemon/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -120,6 +120,11 @@ CPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT CFLAGS += $(CCVERBOSE) $(C_PICFLAGS) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-function + MAPFILES = ../common/mapfile-intf $(MAPFILE.NGB) rcm_daemon := LDFLAGS += $(MAPFILES:%=-M%) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/rctladm/Makefile --- a/usr/src/cmd/rctladm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/rctladm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -34,6 +34,8 @@ include ../Makefile.cmd CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized POFILE = rctladm_msg.po XGETFLAGS = -a FILEMODE = 0555 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/refer/Makefile --- a/usr/src/cmd/refer/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/refer/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,10 +23,6 @@ # Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# -# Makefile for cmd/refer -# include ../Makefile.cmd @@ -49,6 +45,11 @@ POFILES= $(OBJS:%.o=%.po) POFILE= refer.po +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized + addbib.po := XGETFLAGS += -a -x addbib.xcl diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/regcmp/Makefile --- a/usr/src/cmd/regcmp/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/regcmp/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,13 +22,13 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG= regcmp include ../Makefile.cmd +CERRWARN += -_gcc=-Wno-parentheses + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/rexd/Makefile --- a/usr/src/cmd/rexd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/rexd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG= rpc.rexd on # where under @@ -35,6 +33,13 @@ include ../Makefile.cmd +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-address +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-extra + ROOTMANIFESTDIR= $(ROOTSVCNETWORKRPC) SRCS= $(PROG:%=%.c) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/rm/Makefile --- a/usr/src/cmd/rm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/rm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -19,8 +19,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -35,6 +33,7 @@ include ../Makefile.cmd CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses $(XPG4) := CFLAGS += -DXPG4 CPPFLAGS += -D_FILE_OFFSET_BITS=64 -I $(SRC)/common/util LINTFLAGS += -u diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/rmdir/Makefile --- a/usr/src/cmd/rmdir/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/rmdir/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -32,6 +30,7 @@ LDLIBS += -lgen CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized XGETFLAGS += -a -x rmdir.xcl diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/rmformat/Makefile --- a/usr/src/cmd/rmformat/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/rmformat/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG= rmformat @@ -36,6 +34,8 @@ LDLIBS += -lsmedia -lvolmgt -ladm -lefi +CERRWARN += -_gcc=-Wno-uninitialized + LINTFLAGS += -u CPPFLAGS += -D_FILE_OFFSET_BITS=64 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/rmmount/Makefile --- a/usr/src/cmd/rmmount/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/rmmount/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG = rmmount LOCAL_OBJS = rmmount.o @@ -43,6 +41,12 @@ CPPFLAGS += -I$(SRC)/cmd/rmvolmgr C99MODE = $(C99_ENABLE) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/rmvolmgr/Makefile --- a/usr/src/cmd/rmvolmgr/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/rmvolmgr/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG = rmvolmgr OBJS = rmm_common.o rmvolmgr.o vold.o @@ -44,6 +42,12 @@ CPPFLAGS += -I$(ROOT)/usr/include/hal C99MODE = $(C99_ENABLE) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-function + ROOTCMDDIR = $(ROOTLIB) ROOTMANIFESTDIR = $(ROOTSVCSYSTEMFILESYSTEM) $(ROOTMANIFEST) := FILEMODE = 444 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/rpcbind/Makefile --- a/usr/src/cmd/rpcbind/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/rpcbind/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -19,12 +19,9 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# cmd/rpcbind/Makefile PROG= rpcbind MANIFEST= bind.xml @@ -44,6 +41,11 @@ CPPFLAGS= -I. -DPORTMAP $(CPPFLAGS.master) CPPFLAGS += -D_REENTRANT +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label LDLIBS += -lsocket -lnsl -lwrap -lscf .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/rpcgen/Makefile --- a/usr/src/cmd/rpcgen/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/rpcgen/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -29,13 +29,16 @@ OBJS= rpc_clntout.o rpc_cout.o rpc_hout.o rpc_main.o rpc_parse.o \ - rpc_scan.o rpc_svcout.o rpc_tblout.o rpc_util.o rpc_sample.o + rpc_scan.o rpc_svcout.o rpc_tblout.o rpc_util.o rpc_sample.o SRCS= $(OBJS:%.o=%.c) include ../Makefile.cmd LDLIBS += -CFLAGS += -v +CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-char-subscripts .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/rpcinfo/Makefile --- a/usr/src/cmd/rpcinfo/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/rpcinfo/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,11 +20,8 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1989 by Sun Microsystems, Inc. # -# cmd/rpcinfo/Makefile PROG= rpcinfo @@ -34,6 +31,7 @@ CPPFLAGS= -DPORTMAP $(CPPFLAGS.master) LDLIBS += -lnsl +CERRWARN += -_gcc=-Wno-uninitialized .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/rpcsvc/Makefile --- a/usr/src/cmd/rpcsvc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/rpcsvc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -59,8 +59,13 @@ ROOTMANIFESTDIR= $(ROOTSVCNETWORKRPC) CPPFLAGS= -I. $(CPPFLAGS.master) +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-extra +CERRWARN += -_gcc=-Wno-unused-function LDLIBS += -lnsl -rusers := CFLAGS += -v +rusers := CFLAGS += $(CCVERBOSE) $(BINPROG) := LDLIBS += -lrpcsvc $(RPROG) := LDLIBS += -lrpcsvc $(SPROG) := LDLIBS += -lrpcsvc diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/rpcsvc/rpc.bootparamd/Makefile --- a/usr/src/cmd/rpcsvc/rpc.bootparamd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/rpcsvc/rpc.bootparamd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,9 +23,6 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# -# cmd/rpcsvc/rpc.bootparamd/Makefile PROG= rpc.bootparamd MANIFEST= bootparams.xml @@ -36,6 +33,7 @@ include ../Makefile.rpc CPPFLAGS= -I. $(CPPFLAGS.master) +CERRWARN += -_gcc=-Wno-parentheses CFLAGS += -DSYSV LDLIBS += -lsocket -lnsl diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sa/Makefile --- a/usr/src/cmd/sa/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sa/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -32,6 +32,9 @@ ROOTMANIFESTDIR = $(ROOTSVCSYSTEM) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + GREP= grep SADC= sadc diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/saf/Makefile --- a/usr/src/cmd/saf/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/saf/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -56,6 +56,11 @@ LDFLAGS += $(MAPFILE.NGB:%=-M%) LINTFLAGS += -b -x +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-extra + util1.o := CPPFLAGS += -DSAC util2.o := CPPFLAGS += -USAC diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sasinfo/Makefile --- a/usr/src/cmd/sasinfo/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sasinfo/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -45,6 +45,8 @@ LDLIBS += -lSMHBAAPI +CERRWARN += -_gcc=-Wno-unused-value + INCS += -I. INCS += -I$(SRC)/lib/smhba/common INCS += -I$(SRC)/lib/hbaapi/common diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/savecore/Makefile.com --- a/usr/src/cmd/savecore/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/savecore/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -32,6 +32,7 @@ CFLAGS += $(CCVERBOSE) CFLAGS64 += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized CPPFLAGS += -D_LARGEFILE64_SOURCE=1 -DBZ_NO_STDIO -I$(SRC)/uts/common # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/scadm/Makefile.com --- a/usr/src/cmd/scadm/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/scadm/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -79,6 +79,9 @@ CPPFLAGS = $(IFLAGS) $(CPPFLAGS.master) -D_SYSCALL32 +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-unused-variable + LINKED_DIRS = $(PLATLINKS:%=$(USR_PLAT_DIR)/%) LINKED_SBIN_DIRS = $(PLATLINKS:%=$(USR_PLAT_DIR)/%/sbin) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/script/Makefile --- a/usr/src/cmd/script/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/script/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -28,6 +28,8 @@ FILEMODE= 0555 +CERRWARN += -_gcc=-Wno-unused-variable + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/scsi/sestopo/Makefile.com --- a/usr/src/cmd/scsi/sestopo/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/scsi/sestopo/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" .KEEP_STATE: .SUFFIXES: @@ -40,6 +39,7 @@ $(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG CPPFLAGS += -I. -I../common CFLAGS += $(CTF_FLAGS) $(CCVERBOSE) $(XSTRCONST) +CERRWARN += -_gcc=-Wno-unused-variable LDLIBS += -L$(ROOT)/usr/lib/scsi -lses -lnvpair LDFLAGS += -R/usr/lib/scsi diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/scsi/smp/Makefile.com --- a/usr/src/cmd/scsi/smp/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/scsi/smp/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -41,6 +41,8 @@ LDLIBS += -L$(ROOT)/usr/lib/scsi -lsmp LDFLAGS += -R/usr/lib/scsi +CERRWARN += -_gcc=-Wno-unused-variable + all: $(PROG) $(PROG): $(OBJS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sdiff/Makefile --- a/usr/src/cmd/sdiff/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sdiff/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1989 by Sun Microsystems, Inc. # @@ -29,6 +27,8 @@ include ../Makefile.cmd +CERRWARN += -_gcc=-Wno-parentheses + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sendmail/Makefile.cmd --- a/usr/src/cmd/sendmail/Makefile.cmd Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sendmail/Makefile.cmd Sun Jul 22 16:03:46 2012 -0400 @@ -26,4 +26,10 @@ CPPFLAGS.sm= $(CPPFLAGS.master) -DSOLARIS=2$(RELEASE_MINOR)00 \ -D_FILE_OFFSET_BITS=64 +CERRWARN += -_gcc=-Wno-clobbered +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-empty-body +CERRWARN += -_gcc=-Wno-unused-variable DBMDEF= -DNDBM -DNEWDB -DNIS -DUSERDB -DMAP_REGEX -DLDAPMAP diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sendmail/libmilter/Makefile.com --- a/usr/src/cmd/sendmail/libmilter/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sendmail/libmilter/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY= libmilter.a VERS= .1 @@ -50,6 +48,8 @@ -Dsm_snprintf=snprintf CPPFLAGS= $(INCPATH) $(ENVDEF) $(CPPFLAGS.sm) +CERRWARN += -_gcc=-Wno-type-limits + LIBS= $(DYNLIB) $(LINTLIB) LDLIBS += -lc -lsocket -lnsl $(LINTLIB) := SRCS= $(SRCDIR)/$(LINTSRC) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/setfacl/Makefile --- a/usr/src/cmd/setfacl/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/setfacl/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -# ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1993 by Sun Microsystems, Inc. # @@ -29,6 +27,10 @@ include ../Makefile.cmd +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-uninitialized + LDLIBS += -lsec .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/setuname/Makefile.com --- a/usr/src/cmd/setuname/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/setuname/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG= setuname OBJS= $(PROG).o @@ -34,6 +32,8 @@ CFLAGS += $(CCVERBOSE) CFLAGS64 += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses LDLIBS += -lkvm CLEANFILES += $(OBJS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sf880drd/Makefile --- a/usr/src/cmd/sf880drd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sf880drd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -39,6 +39,11 @@ CPPFLAGS += -I$(ROOT)/usr/platform/sun4u/include LDLIBS += -lcfgadm +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized + PSMPROG = $(USR_PSM_LIB_DIR)/$(PROG) $(PSMPROG) := FILEMODE = 0755 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sgs/Makefile.com --- a/usr/src/cmd/sgs/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sgs/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -50,6 +50,10 @@ CFLAGS += $(CCVERBOSE) $(DEBUG) $(XFFLAG) CFLAGS64 += $(CCVERBOSE) $(DEBUG) $(XFFLAG) +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-value + # # Location of the shared elfcap code # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sgs/ar/Makefile.com --- a/usr/src/cmd/sgs/ar/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sgs/ar/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -41,6 +41,7 @@ CFLAGS += $(CCVERBOSE) C99MODE= $(C99_ENABLE) +CERRWARN += -_gcc=-Wno-uninitialized LDLIBS += -lelf $(CONVLIBDIR) $(CONV_LIB) -lsendfile LINTFLAGS= -x LINTFLAGS64= -x diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sgs/dump/Makefile.com --- a/usr/src/cmd/sgs/dump/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sgs/dump/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG= dump @@ -43,6 +41,8 @@ LLDFLAGS64 = '$(LDPASS)-R$$ORIGIN/../../../lib/$(MACH64)' LDFLAGS += $(LLDFLAGS) +CERRWARN += -_gcc=-Wno-uninitialized + LDLIBS += $(CONVLIBDIR) $(CONV_LIB) $(ELFLIBDIR) -lelf LINTFLAGS += -x LINTSRCS = $(SRCS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sgs/elfdump/Makefile.com --- a/usr/src/cmd/sgs/elfdump/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sgs/elfdump/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -58,6 +58,9 @@ LINTFLAGS += -x LINTFLAGS64 += -x +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch + BLTDEFS = msg.h BLTDATA = msg.c BLTMESG = $(SGSMSGDIR)/elfdump diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sgs/elfedit/Makefile.com --- a/usr/src/cmd/sgs/elfedit/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sgs/elfedit/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -53,6 +53,9 @@ LINTFLAGS += -x LINTFLAGS64 += -x +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + BLTDEFS = msg.h BLTDATA = msg.c BLTMESG = $(SGSMSGDIR)/elfedit diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sgs/elfedit/modules/Makefile.com --- a/usr/src/cmd/sgs/elfedit/modules/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sgs/elfedit/modules/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -96,6 +96,9 @@ LDFLAGS += $(CC_USE_PROTO) $(LLDFLAGS) DYNFLAGS += $(VERSREF) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + LINTFLAGS += -uaxs $(LDLIBS) LINTFLAGS64 += -uaxs $(LDLIBS64) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sgs/elfwrap/Makefile.com --- a/usr/src/cmd/sgs/elfwrap/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sgs/elfwrap/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -57,6 +57,8 @@ LINTFLAGS += -x LINTFLAGS64 += -x +CERRWARN += -_gcc=-Wno-uninitialized + BLTDEFS = msg.h BLTDATA = msg.c BLTMESG = $(SGSMSGDIR)/elfwrap diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sgs/error/i386/Makefile --- a/usr/src/cmd/sgs/error/i386/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sgs/error/i386/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -19,12 +19,9 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# cmd/sgs/error/i386/Makefile PROG= error @@ -41,6 +38,9 @@ CFLAGS += $(CCVERBOSE) C99MODE= $(C99_ENABLE) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + CLEANFILES += $(LINTOUT) %.o: ../common/%.c diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sgs/error/sparc/Makefile --- a/usr/src/cmd/sgs/error/sparc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sgs/error/sparc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -19,8 +19,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -39,6 +37,8 @@ DEFLIST= -DELF CPPFLAGS= $(INCLIST) $(DEFLIST) $(CPPFLAGS.master) CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses C99MODE= $(C99_ENABLE) CLEANFILES += $(LINTOUT) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sgs/gprof/Makefile.com --- a/usr/src/cmd/sgs/gprof/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sgs/gprof/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -45,6 +45,7 @@ LDLIBS += $(CONVLIBDIR) $(CONV_LIB) $(ELFLIBDIR) -lelf LINTSRCS = $(SRCS) LINTFLAGS += -x +CERRWARN += -_gcc=-Wno-uninitialized CLEANFILES += $(LINTOUTS) ROOTLIBBLURB= $(BLURBS:%=$(ROOTSHLIBCCS)/%) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sgs/ld/Makefile.com --- a/usr/src/cmd/sgs/ld/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sgs/ld/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -41,6 +41,9 @@ LDLIBS += $(LDLIBDIR) $(LD_LIB) $(ELFLIBDIR) -lelf \ $(LDDBGLIBDIR) $(LDDBG_LIB) $(CONVLIBDIR) $(CONV_LIB) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses + LINTFLAGS += -x LINTFLAGS64 += -x $(VAR_LINTFLAGS64) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sgs/lex/Makefile.com --- a/usr/src/cmd/sgs/lex/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sgs/lex/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG= lex @@ -47,13 +45,16 @@ C99MODE= $(C99_ENABLE) +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + # Override default source file derivation rule (in Makefile.lib) # from objects # MACHSRCS= $(MACHOBJS:%.o=../common/%.c) LIBSRCS = $(LIBOBJS:%.o=../common/%.c) SRCS= $(MACHSRCS) $(LIBSRCS) - LIBS = $(DYNLIB) $(LINTLIB) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sgs/libconv/Makefile.com --- a/usr/src/cmd/sgs/libconv/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sgs/libconv/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -87,6 +87,9 @@ include $(SRC)/lib/Makefile.lib include $(SRC)/cmd/sgs/Makefile.com +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-switch + CTFCONVERT_O= README_REVISION=../../packages/common/readme_revision diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sgs/libelf/Makefile.com --- a/usr/src/cmd/sgs/libelf/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sgs/libelf/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -70,6 +70,9 @@ LINTFLAGS += -u -erroff=E_BAD_PTR_CAST_ALIGN LINTFLAGS64 += -u -erroff=E_CAST_INT_TO_SMALL_INT +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + BUILD.AR= $(RM) $@ ; \ $(AR) q $@ `$(LORDER) $(OBJECTS:%=$(DIR)/%)| $(TSORT)` $(POST_PROCESS_A) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sgs/libld/Makefile.com --- a/usr/src/cmd/sgs/libld/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sgs/libld/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -41,7 +41,7 @@ ldentry64.o ldlibs64.o ldmachdep64.o ldmain64.o \ libs64.o files64.o map64.o map_core64.o \ map_support64.o map_v264.o order64.o outfile64.o \ - place64.o relocate64.o resolve64.o sections64.o \ + place64.o relocate64.o resolve64.o sections64.o \ sunwmove64.o support64.o syms64.o update64.o \ unwind64.o version64.o wrap64.o @@ -87,6 +87,12 @@ SRCDIR = ../common +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-type-limits # Location of the shared relocation engines maintained under usr/src/uts. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sgs/liblddbg/Makefile.com --- a/usr/src/cmd/sgs/liblddbg/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sgs/liblddbg/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -31,7 +31,7 @@ COMOBJS32 = bindings32.o cap32.o dlfcns32.o dynamic32.o \ elf32.o entry32.o files32.o got32.o \ - libs32.o map32.o move32.o phdr32.o \ + libs32.o map32.o move32.o phdr32.o \ relocate32.o sections32.o segments32.o shdr32.o \ statistics32.o support32.o syms32.o unused32.o \ util32.o version32.o @@ -58,6 +58,10 @@ LINTFLAGS += -u -D_REENTRANT LINTFLAGS64 += -u -D_REENTRANT +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + CPPFLAGS += -I$(SRCBASE)/lib/libc/inc DYNFLAGS += $(VERSREF) $(CC_USE_PROTO) '-R$$ORIGIN' LDLIBS += $(CONVLIBDIR) $(CONV_LIB) -lc diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sgs/librtld/Makefile.com --- a/usr/src/cmd/sgs/librtld/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sgs/librtld/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -45,6 +45,11 @@ DYNFLAGS += $(VERSREF) $(CC_USE_PROTO) '-R$$ORIGIN' LDLIBS += $(CONVLIBDIR) $(CONV_LIB) $(ELFLIBDIR) -lelf -lc +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-uninitialized + LINTFLAGS += -u -erroff=E_NAME_DECL_NOT_USED_DEF2 LINTFLAGS64 += -u -erroff=E_NAME_DECL_NOT_USED_DEF2 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sgs/librtld_db/Makefile.com --- a/usr/src/cmd/sgs/librtld_db/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sgs/librtld_db/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -42,6 +42,8 @@ LINTFLAGS += -u -erroff=E_NAME_DECL_NOT_USED_DEF2 LINTFLAGS64 += -u -erroff=E_NAME_DECL_NOT_USED_DEF2 +CERRWARN += -_gcc=-Wno-uninitialized + BLTDEFS= msg.h BLTDATA= msg.c diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sgs/m4/i386/Makefile --- a/usr/src/cmd/sgs/m4/i386/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sgs/m4/i386/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,10 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# -# cmd/sgs/m4/i386/Makefile -# PROG= m4 XPG4PROG= m4 @@ -56,6 +52,10 @@ CFLAGS += $(CCVERBOSE) C99MODE= $(C99_ENABLE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + LINTFLAGS += $(LDLIBS) CLEANFILES += $(LINTOUT) $(BLTSRCS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sgs/m4/sparc/Makefile --- a/usr/src/cmd/sgs/m4/sparc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sgs/m4/sparc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# # cmd/sgs/m4/sparc/Makefile # @@ -54,6 +52,9 @@ DEFLIST= -DELF CPPFLAGS= $(INCLIST) $(DEFLIST) $(CPPFLAGS.master) CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized C99MODE= $(C99_ENABLE) LINTFLAGS += $(LDLIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sgs/mcs/Makefile.com --- a/usr/src/cmd/sgs/mcs/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sgs/mcs/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -49,6 +49,8 @@ LINTFLAGS += -x LINTFLAGS64 += -x +CERRWARN += -_gcc=-Wno-uninitialized + SRCS = $(COMOBJS:%.o=../common/%.c) \ $(TOOLSOBJS:%.o=$(SGSTOOLS)/common/%.c) LINTSRCS = $(SRCS) ../common/lintsup.c diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sgs/nm/amd64/Makefile --- a/usr/src/cmd/sgs/nm/amd64/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sgs/nm/amd64/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -40,6 +40,9 @@ INCLIST= -I../../include -I../../include/i386 \ -I$(SRCBASE)/uts/$(ARCH)/sys CPPFLAGS= $(INCLIST) $(DEFLIST) $(CPPFLAGS.master) -I$(ELFCAP) + +CERRWARN += -_gcc=-Wno-uninitialized + LDLIBS += $(CONVLIBDIR64) $(CONV_LIB) $(ELFLIBDIR) -lelf LINTFLAGS64 += -x $(LDLIBS) -m64 LINTSRCS= $(SRCS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sgs/nm/i386/Makefile --- a/usr/src/cmd/sgs/nm/i386/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sgs/nm/i386/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -44,6 +44,9 @@ -I$(SRCBASE)/uts/$(ARCH)/sys DEFLIST= -DTARGET=I386 -DI386=1 -D$(ARFORMAT) -DELF CPPFLAGS= $(INCLIST) $(DEFLIST) $(CPPFLAGS.master) -I$(ELFCAP) + +CERRWARN += -_gcc=-Wno-uninitialized + LDLIBS += $(CONVLIBDIR) $(CONV_LIB) $(ELFLIBDIR) -lelf LINTFLAGS += -x $(LDLIBS) LINTSRCS= $(SRCS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sgs/nm/sparc/Makefile --- a/usr/src/cmd/sgs/nm/sparc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sgs/nm/sparc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -45,6 +45,7 @@ -I$(SRCBASE)/uts/$(ARCH)/sys DEFLIST= -DTARGET=SPARC -DSPARC=1 -D$(ARFORMAT) -DELF CPPFLAGS= $(INCLIST) $(DEFLIST) $(CPPFLAGS.master) -I$(ELFCAP) +CERRWARN += -_gcc=-Wno-uninitialized LDLIBS += $(CONVLIBDIR) $(CONV_LIB) $(ELFLIBDIR) -lelf LINTFLAGS= -x $(LDLIBS) LINTSRCS= $(SRCS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sgs/nm/sparcv9/Makefile --- a/usr/src/cmd/sgs/nm/sparcv9/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sgs/nm/sparcv9/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -43,6 +43,7 @@ -I$(SRCBASE)/uts/$(ARCH)/sys DEFLIST= -DTARGET=SPARC -DSPARC=1 -D$(ARFORMAT) -DELF CPPFLAGS= $(INCLIST) $(DEFLIST) $(CPPFLAGS.master) -I$(ELFCAP) +CERRWARN += -_gcc=-Wno-uninitialized LDLIBS += $(CONVLIBDIR64) $(CONV_LIB) $(ELFLIBDIR) -lelf LINTFLAGS64= -x $(LDLIBS) -m64 LINTSRCS= $(SRCS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sgs/prof/Makefile.com --- a/usr/src/cmd/sgs/prof/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sgs/prof/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -42,6 +42,7 @@ CPPFLAGS= $(INCLIST) $(DEFLIST) $(CPPFLAGS.master) -I$(ELFCAP) CFLAGS += $(CCVERBOSE) C99MODE= $(C99_ENABLE) +CERRWARN += -_gcc=-Wno-uninitialized LDLIBS += $(CONVLIBDIR) $(CONV_LIB) $(ELFLIBDIR) -lelf LINTSRCS = $(SRCS) LINTFLAGS += -x diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sgs/rtld/Makefile.com --- a/usr/src/cmd/sgs/rtld/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sgs/rtld/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -85,6 +85,10 @@ LDLIB = -L ../../libld/$(MACH) RTLDLIB = -L ../../librtld/$(MACH) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-switch + # These definitions require that libc be built in the same workspace # as the run-time linker and before the run-time linker is built. # This is required for the system's self-consistency in any case. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sgs/rtld/mdbmod/Makefile.com --- a/usr/src/cmd/sgs/rtld/mdbmod/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sgs/rtld/mdbmod/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -50,6 +50,8 @@ LINTFLAGS += -u -erroff=E_NAME_DECL_NOT_USED_DEF2 LINTFLAGS64 += -u -erroff=E_NAME_DECL_NOT_USED_DEF2 +CERRWARN += -_gcc=-Wno-uninitialized + LINTSRCS= $(COMOBJS:%.o=../common/%.c) $(BLTDATA) FILEMODE= 555 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sgs/size/Makefile.com --- a/usr/src/cmd/sgs/size/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sgs/size/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG= size @@ -35,6 +33,8 @@ SRCS= $(COMOBJS:%.o=../common/%.c) +CERRWARN += -_gcc=-Wno-unused-variable + OBJS = $(COMOBJS) .PARALLEL: $(OBJS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sgs/tsort/i386/Makefile --- a/usr/src/cmd/sgs/tsort/i386/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sgs/tsort/i386/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -19,14 +19,9 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# -# # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# cmd/sgs/tsort/i386/Makefile -# PROG= tsort @@ -43,6 +38,8 @@ CFLAGS += $(CCVERBOSE) C99MODE= $(C99_ENABLE) +CERRWARN += -_gcc=-Wno-parentheses + CLEANFILES += $(LINTOUT) %.o: ../common/%.c diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sgs/tsort/sparc/Makefile --- a/usr/src/cmd/sgs/tsort/sparc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sgs/tsort/sparc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -19,9 +19,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# -# # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -41,6 +38,7 @@ DEFLIST= -DELF CPPFLAGS= $(INCLIST) $(DEFLIST) $(CPPFLAGS.master) CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses C99MODE= $(C99_ENABLE) CLEANFILES += $(LINTOUT) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sgs/unifdef/i386/Makefile --- a/usr/src/cmd/sgs/unifdef/i386/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sgs/unifdef/i386/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -19,13 +19,9 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# cmd/sgs/unifdef/i386/Makefile -# PROG= unifdef @@ -43,6 +39,9 @@ CLEANFILES += $(LINTOUT) +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-parentheses + %.o: ../common/%.c $(COMPILE.c) $< diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sgs/unifdef/sparc/Makefile --- a/usr/src/cmd/sgs/unifdef/sparc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sgs/unifdef/sparc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -19,13 +19,9 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# cmd/sgs/unifdef/sparc/Makefile -# PROG= unifdef @@ -38,6 +34,8 @@ DEFLIST= -DELF_OBJ -DELF CPPFLAGS= $(INCLIST) $(DEFLIST) $(CPPFLAGS.master) CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-parentheses C99MODE= $(C99_ENABLE) LINTFLAGS += $(LDLIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sgs/yacc/Makefile.com --- a/usr/src/cmd/sgs/yacc/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sgs/yacc/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG= yacc @@ -67,6 +65,8 @@ C99MODE= $(C99_ENABLE) CFLAGS += $(CCVERBOSE) CFLAGS64 += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized $(LINTLIB):= LINTFLAGS = -nvx $(ROOTPROG):= FILEMODE = 0555 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sh/Makefile --- a/usr/src/cmd/sh/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sh/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -41,6 +41,10 @@ XGETFLAGS += -a -x sh.xcl CPPFLAGS += -D_FILE_OFFSET_BITS=64 -DACCT +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-extra +CERRWARN += -_gcc=-Wno-unused-variable MAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB) LDFLAGS += $(MAPFILES:%=-M%) LDLIBS += -lgen diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/shcomp/Makefile --- a/usr/src/cmd/shcomp/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/shcomp/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -61,6 +61,8 @@ CFLAGS64 += \ $(ASTCFLAGS64) +CERRWARN += -_gcc=-Wno-parentheses + ROOTCMDDIR=$(ROOT)/usr/bin PROG= shcomp diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/smbsrv/smbadm/Makefile --- a/usr/src/cmd/smbsrv/smbadm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/smbsrv/smbadm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -32,6 +32,10 @@ LDLIBS += -L$(ROOT)/usr/lib/smbsrv -lsmb -lsecdb -lumem LDFLAGS += -R/usr/lib/smbsrv +.KEEP_STATE: + +CERRWARN += -_gcc=-Wno-uninitialized + all: $(PROG) clean: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/smserverd/Makefile --- a/usr/src/cmd/smserverd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/smserverd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG = rpc.smserverd OBJS = smediad.o smediad_err.o myaudit.o smed_svc.o smed_xdr.o @@ -47,6 +45,8 @@ CPPFLAGS += -D_REENTRANT CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-variable LINTFLAGS += -u .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/soelim/Makefile --- a/usr/src/cmd/soelim/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/soelim/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,12 +20,8 @@ # CDDL HEADER END # # -# ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1989 by Sun Microsystems, Inc. # -# cmd/soelim/Makefile -# include ../Makefile.cmd @@ -35,13 +31,14 @@ SRCS = $(OBJS:%.o=%.c) +CERRWARN += -_gcc=-Wno-implicit-function-declaration all : $(PROG) $(PROG) : soelim.o $(LINK.c) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS) $(POST_PROCESS) - + install : all $(ROOTPROG) clean: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sort/Makefile.com --- a/usr/src/cmd/sort/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sort/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -23,9 +23,7 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# -# sort(1) Makefile.com + # # Debugging targets # sort provides a number of debugging options to simplify failure analysis. @@ -86,6 +84,10 @@ CPPFLAGS += -D_FILE_OFFSET_BITS=64 LINTFLAGS += -U_FILE_OFFSET_BITS +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-function + $(XPG4) := CFLAGS += -DXPG4 debug := SORT_DEBUG = -g -DDEBUG $(ILDOFF) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/spell/Makefile --- a/usr/src/cmd/spell/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/spell/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,13 +20,9 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# cmd/spell/Makefile -# HASHPROG= hashmk1 spellin1 SHPROG= spell compress @@ -55,6 +51,7 @@ include ../Makefile.cmd CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses XGETFLAGS += -a -x spell.xcl diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sqlite/Makefile --- a/usr/src/cmd/sqlite/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sqlite/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG= sqlite @@ -41,6 +39,8 @@ $(OBJS) := CFLAGS += $(CTF_FLAGS) $(OBJS) := CTFCONVERT_POST = $(CTFCONVERT_O) +CERRWARN += -_gcc=-Wno-empty-body + .KEEP_STATE: $(ROOTSQLITE) := FILEMODE= 555 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/srchtxt/Makefile --- a/usr/src/cmd/srchtxt/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/srchtxt/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1989 by Sun Microsystems, Inc. # @@ -29,6 +27,7 @@ include ../Makefile.cmd +CERRWARN += -_gcc=-Wno-parentheses LDLIBS += -lgen .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/ssh/Makefile.ssh-common --- a/usr/src/cmd/ssh/Makefile.ssh-common Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/ssh/Makefile.ssh-common Sun Jul 22 16:03:46 2012 -0400 @@ -79,6 +79,11 @@ -erroff=E_STMT_NOT_REACHED \ -errtags=yes +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-variable + ROOTLIBSSH= $(ROOTLIB)/ssh ROOTLIBSSHPROG= $(PROG:%=$(ROOTLIBSSH)/%) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/stat/fsstat/Makefile --- a/usr/src/cmd/stat/fsstat/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/stat/fsstat/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -35,6 +35,7 @@ LDLIBS += -lkstat CFLAGS += $(CCVERBOSE) -I${STATCOMMONDIR} +CERRWARN += -_gcc=-Wno-parentheses FILEMODE= 0555 lint := LINTFLAGS = -muxs -I$(STATCOMMONDIR) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/stat/iostat/Makefile --- a/usr/src/cmd/stat/iostat/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/stat/iostat/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -32,6 +32,9 @@ LDLIBS += -lkstat -ldevinfo -lavl CFLAGS += $(CCVERBOSE) -I${STATCOMMONDIR} +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses FILEMODE= 0555 lint := LINTFLAGS = -muxs -I$(STATCOMMONDIR) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/stat/mpstat/Makefile --- a/usr/src/cmd/stat/mpstat/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/stat/mpstat/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -32,6 +32,9 @@ LDLIBS += -ldevinfo -lkstat -lavl CFLAGS += $(CCVERBOSE) -I${STATCOMMONDIR} +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses FILEMODE= 0555 lint := LINTFLAGS = -muxs -I$(STATCOMMONDIR) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/stat/vmstat/Makefile --- a/usr/src/cmd/stat/vmstat/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/stat/vmstat/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -32,6 +32,9 @@ LDLIBS += -ldevinfo -lkstat -lavl CFLAGS += $(CCVERBOSE) -I${STATCOMMONDIR} +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses FILEMODE= 0555 lint := LINTFLAGS = -muxs -I$(STATCOMMONDIR) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/stmfadm/Makefile --- a/usr/src/cmd/stmfadm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/stmfadm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -38,8 +38,9 @@ SRCS = $(LOCAL_SRCS) $(COMMON_SRCS) POFILE = stmfadm_all.po POFILES = $(LOCAL_OBJS:%.o=%.po) $(COMMON_OBJS:%.o=$(COMMONBASE)/cmdparse/%.po) - + CPPFLAGS += -I. -I$(COMMONBASE)/cmdparse +CERRWARN += -_gcc=-Wno-unused-label LDLIBS += -lstmf LINTFLAGS += -xerroff=E_BAD_FORMAT_STR2 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/stmsboot/Makefile --- a/usr/src/cmd/stmsboot/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/stmsboot/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -40,6 +40,7 @@ ROOTMANIFESTDIR = $(ROOTSVCSYSTEMDEVICE) LDLIBS += -ldevinfo -ldevid -lnvpair -lumem +CERRWARN += -_gcc=-Wno-uninitialized .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/streams/log/Makefile --- a/usr/src/cmd/streams/log/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/streams/log/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -27,6 +27,7 @@ include ../../Makefile.cmd CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-unused-variable FILEMODE= 0555 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/streams/strcmd/Makefile --- a/usr/src/cmd/streams/strcmd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/streams/strcmd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -26,6 +26,8 @@ include ../../Makefile.cmd +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/strings/Makefile.com --- a/usr/src/cmd/strings/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/strings/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# PROG= strings SRCS= ../$(PROG).c @@ -34,6 +32,8 @@ CFLAGS += $(CCVERBOSE) CFLAGS64 += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/su/Makefile --- a/usr/src/cmd/su/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/su/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -54,6 +54,8 @@ CLOBBERFILES += $(ROOTFS_PROG) $(EMB_PROG) +CERRWARN += -_gcc=-Wno-parentheses + lint := LDLIBS += -lbsm -lpam -lsecdb .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sunpc/other/Makefile --- a/usr/src/cmd/sunpc/other/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sunpc/other/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1989 by Sun Microsystems, Inc. # # cmd/sunpc/other/Makefile @@ -31,6 +29,10 @@ include ../../Makefile.cmd +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-variable + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/svc/configd/Makefile --- a/usr/src/cmd/svc/configd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/svc/configd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -50,7 +50,13 @@ MYCPPFLAGS = -I. -I../common -I../../../common/svc -I$(ROOT)/usr/include/sqlite -D_REENTRANT CPPFLAGS += $(MYCPPFLAGS) -CFLAGS += -v +CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized MYLDLIBS = -lumem -luutil -lbsm LDLIBS += -lsecdb $(MYLDLIBS) LINTFLAGS += -errtags -erroff=E_BAD_FORMAT_ARG_TYPE2 -erroff=E_NAME_DEF_NOT_USED2 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/svc/lsvcrun/Makefile --- a/usr/src/cmd/svc/lsvcrun/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/svc/lsvcrun/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,6 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" PROG = lsvcrun OBJS = lsvcrun.o @@ -35,6 +34,8 @@ include ../../Makefile.cmd LDLIBS += -lcontract -lscf -luutil +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized lint := LINTFLAGS = -ux diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/svc/mfstscan/Makefile --- a/usr/src/cmd/svc/mfstscan/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/svc/mfstscan/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -44,6 +44,9 @@ LDLIBS += -lscf -luutil -lmd5 CLOBBERFILES += $(POFILES) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-label + lint := LINTFLAGS = -ux -erroff=E_GLOBAL_COULD_BE_STATIC2 .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/svc/startd/Makefile --- a/usr/src/cmd/svc/startd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/svc/startd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -63,9 +63,14 @@ ROOTCMDDIR= $(ROOT)/lib/svc/bin $(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG -CFLAGS += -v +CFLAGS += $(CCVERBOSE) CPPFLAGS += -I. -I../common +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + $(OBJS) := CPPFLAGS += -D_FILE_OFFSET_BITS=64 -D_REENTRANT proc.o := CPPFLAGS += -D_REENTRANT diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/svc/svcadm/Makefile --- a/usr/src/cmd/svc/svcadm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/svc/svcadm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -33,6 +33,9 @@ POFILE = $(PROG)_all.po LDLIBS += -lscf -luutil -lcontract +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + lint := LINTFLAGS = -ux .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/svc/svccfg/Makefile --- a/usr/src/cmd/svc/svccfg/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/svc/svccfg/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -73,6 +73,13 @@ CPPFLAGS += $(MYCPPFLAGS) LDFLAGS += $(MAPOPTS) +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses + LFLAGS = -t YFLAGS = -d diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/svc/svcprop/Makefile --- a/usr/src/cmd/svc/svcprop/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/svc/svcprop/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -35,6 +35,8 @@ lint := LINTFLAGS = -ux +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/svc/svcs/Makefile --- a/usr/src/cmd/svc/svcs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/svc/svcs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -38,6 +38,9 @@ CPPFLAGS += -I ../common lint := LINTFLAGS = -mux +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/svr4pkg/Makefile.svr4pkg --- a/usr/src/cmd/svr4pkg/Makefile.svr4pkg Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/svr4pkg/Makefile.svr4pkg Sun Jul 22 16:03:46 2012 -0400 @@ -33,6 +33,14 @@ -D_FILE_OFFSET_BITS=64 +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-extra +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-address + LIBINST = $(SRC)/cmd/svr4pkg/libinst/libinst.a SRCS= $(OBJS:.o=.c) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/svr4pkg/libinst/Makefile --- a/usr/src/cmd/svr4pkg/libinst/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/svr4pkg/libinst/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -61,6 +61,12 @@ # LINTFLAGS += -un +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-clobbered +CERRWARN += -_gcc=-Wno-unused-variable + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/swap/Makefile.com --- a/usr/src/cmd/swap/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/swap/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -33,6 +33,7 @@ CFLAGS += $(CCVERBOSE) CPPFLAGS += -D_LARGEFILE64_SOURCE CFLAGS64 += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized FILEMODE=02555 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/sysdef/Makefile.com --- a/usr/src/cmd/sysdef/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/sysdef/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -30,6 +30,7 @@ include ../../Makefile.cmd LDLIBS += -ldevinfo -lelf +CERRWARN += -_gcc=-Wno-parentheses FILEMODE= 02555 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/syseventadm/Makefile --- a/usr/src/cmd/syseventadm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/syseventadm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -32,6 +32,7 @@ include ../Makefile.cmd FILEMODE= 0555 +CERRWARN += -_gcc=-Wno-uninitialized POFILES = $(SRCS:.c=.po) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/syseventd/daemons/syseventd/Makefile --- a/usr/src/cmd/syseventd/daemons/syseventd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/syseventd/daemons/syseventd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,14 +23,14 @@ # Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG = syseventd SRCS = syseventd.c sysevent_signal.c sysevent_client.c include ../Makefile.com +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/syseventd/modules/devfsadmd_mod/Makefile --- a/usr/src/cmd/syseventd/modules/devfsadmd_mod/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/syseventd/modules/devfsadmd_mod/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,19 +20,16 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 2001 by Sun Microsystems, Inc. # All rights reserved. # -# cmd/syseventd/modules/devfsadmd_mod/Makefile -# LIBRARY = devfsadmd_mod include ../Makefile.com CPPFLAGS += -I $(SRC)/cmd/devfsadm +CERRWARN += -_gcc=-Wno-parentheses .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/syseventd/modules/sysevent_conf_mod/Makefile --- a/usr/src/cmd/syseventd/modules/sysevent_conf_mod/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/syseventd/modules/sysevent_conf_mod/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -19,13 +19,9 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# cmd/syseventd/modules/sysevent_conf_mod/Makefile -# LIBRARY = sysevent_conf_mod @@ -34,6 +30,8 @@ LDLIBS += -lnvpair CPPFLAGS += -I ../../daemons/syseventconfd +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(DYNLIB) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/syseventd/modules/zfs_mod/Makefile --- a/usr/src/cmd/syseventd/modules/zfs_mod/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/syseventd/modules/zfs_mod/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -29,6 +29,8 @@ CPPFLAGS += -I../../../../lib/libc/inc LDLIBS += -lzfs -ldevid -lcmdutils -lnvpair +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(DYNLIB) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/syslogd/Makefile.com --- a/usr/src/cmd/syslogd/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/syslogd/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -34,7 +34,7 @@ include ../../Makefile.cmd $(PROG) lint := LDLIBS += -lscf -lnsl -CCVERBOSE = +CERRWARN += -_gcc=-Wno-uninitialized CPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT CFLAGS += -DNDEBUG diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/tabs/Makefile --- a/usr/src/cmd/tabs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/tabs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -32,6 +30,8 @@ LDLIBS += -lcurses CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-address .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/tar/Makefile --- a/usr/src/cmd/tar/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/tar/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -37,6 +37,9 @@ LDLIBS += -lsec -lcmdutils -lnvpair -ltsol CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized CPPFLAGS += -DEUC diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/tbl/Makefile --- a/usr/src/cmd/tbl/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/tbl/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,12 +20,8 @@ # CDDL HEADER END # # -# ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1989 by Sun Microsystems, Inc. # -# cmd/tbl/Makefile -# include ../Makefile.cmd @@ -40,6 +36,11 @@ POFILES= $(OBJS:%.o=%.po) POFILE= tbl.po +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-char-subscripts + .KEEP_STATE : all : $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/tcopy/Makefile --- a/usr/src/cmd/tcopy/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/tcopy/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,17 +20,17 @@ # CDDL HEADER END # # -# ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1990 by Sun Microsystems, Inc. # -# Makefile for cmd/tcopy -# PROG = tcopy include ../Makefile.cmd +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-extra .KEEP_STATE : diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/tcpd/Makefile --- a/usr/src/cmd/tcpd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/tcpd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -9,10 +9,7 @@ include ../Makefile.cmd -ERROFF= -erroff=E_FUNC_HAS_NO_RETURN_STMT \ - -erroff=E_IMPLICIT_DECL_FUNC_RETURN_INT \ - -_gcc=-Wno-return-type -_gcc=-Wno-implicit -CFLAGS += $(CCVERBOSE) $(ERROFF) +CFLAGS += $(CCVERBOSE) CPPFLAGS += $(ACCESS) $(PARANOID) $(NETGROUP) $(TLI) \ $(UMASK) $(STYLE) $(TABLES) $(KILL_OPT) $(BUGS) \ -DRFC931_TIMEOUT=$(RFC931_TIMEOUT) \ @@ -23,6 +20,15 @@ LDLIBS += -lwrap tcpdchk := LDLIBS += -lwrap -lnsl +CERRWARN += -erroff=E_FUNC_HAS_NO_RETURN_STMT +CERRWARN += -erroff=E_IMPLICIT_DECL_FUNC_RETURN_INT +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-return-type +CERRWARN += -_gcc=-Wno-clobbered + # Various components must export interfaces, but also contain name-space # clashes with system libraries. MAPFILE.INT.D= $(MAPFILE.NGB) mapfile-intf-tcpdchk diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/th_tools/Makefile --- a/usr/src/cmd/th_tools/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/th_tools/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -32,6 +32,8 @@ LINTFLAGS += -I$(SRC)/uts/common C99MODE= $(C99_ENABLE) CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized SRCS = $(PROG:%=%.c) OBJECTS = $(SRCS:%.c=%.o) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/tic/Makefile --- a/usr/src/cmd/tic/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/tic/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -19,8 +19,6 @@ # CDDL HEADER END # # -# ident "%Z%%M% %I% %E% SMI" -# # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -45,6 +43,11 @@ MAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB) LDFLAGS += $(MAPFILES:%=-M%) +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/tip/Makefile --- a/usr/src/cmd/tip/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/tip/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -60,6 +60,9 @@ LINTFLAGS += -u CPPFLAGS += -DDEFBR=300 -DDEFFS=BUFSIZ -DACULOG -DUSG +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-clobbered +CERRWARN += -_gcc=-Wno-uninitialized CONFIG= -DV831 -DVENTEL -DV3451 -DDF02 -DDF03 -DBIZ1031 -DBIZ1022 -DHAYES ACULIB= aculib/aculib.a LDLIBS= $(ACULIB) $(LDLIBS.cmd) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/tip/aculib/Makefile --- a/usr/src/cmd/tip/aculib/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/tip/aculib/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -6,8 +6,7 @@ # All rights reserved. The Berkeley software License Agreement # specifies the terms and conditions for redistribution. # -# ident "%Z%%M% %I% %E% SMI" -# + # make file for tip device drivers # # Current drivers: @@ -28,6 +27,8 @@ LINTFLAGS += -u CPPFLAGS= -I../ -DUSG $(CPPFLAGS.master) +CERRWARN += -_gcc=-Wno-clobbered +CERRWARN += -_gcc=-Wno-parentheses .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/tnf/prex/Makefile.com --- a/usr/src/cmd/tnf/prex/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/tnf/prex/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -19,8 +19,7 @@ # # CDDL HEADER END # -# -#ident "%Z%%M% %I% %E% SMI" + # # Copyright 1989,2003 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. @@ -65,7 +64,13 @@ # FOR normal makefile, uncomment the next line LDLIBS += -lgen -ltnfctl -lelf -lc # Uncomment the following line for a debug build -# COPTFLAG = -g -DDEBUG -v +# COPTFLAG = -g -DDEBUG + +CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/tnf/tnfxtract/Makefile.com --- a/usr/src/cmd/tnf/tnfxtract/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/tnf/tnfxtract/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 1994, 2002 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG= tnfxtract @@ -38,6 +36,7 @@ LFLAGS= -v LDLIBS += -lkvm +CERRWARN += -_gcc=-Wno-uninitialized .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/tput/Makefile --- a/usr/src/cmd/tput/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/tput/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -33,6 +31,7 @@ .KEEP_STATE: CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses XGETFLAGS += -a -x tput.xcl LDLIBS += -lcurses diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/trapstat/sun4/Makefile --- a/usr/src/cmd/trapstat/sun4/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/trapstat/sun4/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -34,6 +34,7 @@ CPPFLAGS += -I$(SRC)/uts/sun4 -I. LINTFLAGS += -erroff=E_SEC_PRINTF_VAR_FMT +CERRWARN += -_gcc=-Wno-clobbered .KEEP_STATE: @@ -47,7 +48,7 @@ clean: $(RM) $(OBJS) $(EXTOBJS) - + lint: lint_PROG include $(SRC)/cmd/Makefile.targ diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/troff/nroff.d/Makefile --- a/usr/src/cmd/troff/nroff.d/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/troff/nroff.d/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,12 +20,8 @@ # CDDL HEADER END # # -# ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1989 by Sun Microsystems, Inc. # -# cmd/troff/nroff.d/Makefile -# include ../../Makefile.cmd @@ -43,6 +39,12 @@ CPPFLAGS = -DNROFF -DUSG -DINCORE -DEUC -I. -I.. $(CPPFLAGS.master) +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-extra +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable + LDLIBS += -lmapmalloc # # message catalog diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/troff/troff.d/Makefile --- a/usr/src/cmd/troff/troff.d/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/troff/troff.d/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -43,6 +43,13 @@ TXTS = README maketables troff.sh CPPFLAGS = -DUSG -DINCORE -I. -I.. $(CPPFLAGS.master) + +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-extra + # # For message catalog # @@ -93,7 +100,7 @@ strip : $(STRIP $(PROG) - + lint : lint_SRCS include ../../Makefile.targ diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/truss/Makefile.com --- a/usr/src/cmd/truss/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/truss/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -38,6 +38,9 @@ CFLAGS += $(CCVERBOSE) CFLAGS64 += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch + C99MODE= $(C99_ENABLE) LDLIBS += -lproc -lrtld_db -lc_db -lnsl -lsocket -ltsol -lnvpair diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/tsol/tnctl/Makefile --- a/usr/src/cmd/tsol/tnctl/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/tsol/tnctl/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -37,6 +37,9 @@ LDLIBS += -lnsl -ltsnet +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/tsol/tnd/Makefile --- a/usr/src/cmd/tsol/tnd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/tsol/tnd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -44,6 +44,9 @@ CPPFLAGS += $(IFLAGS) CPPFLAGS += -DDEBUG +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-parentheses + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/tsol/updatehome/Makefile --- a/usr/src/cmd/tsol/updatehome/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/tsol/updatehome/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,10 +24,6 @@ # # -# ident "%Z%%M% %I% %E% SMI" -# - -# # cmd/tsol/updatehome # PROG= updatehome @@ -38,6 +34,7 @@ SRCS= $(OBJS:%.o=%.c) LDLIBS += -ltsol -lsecdb +CERRWARN += -_gcc=-Wno-parentheses .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/ttymon/Makefile --- a/usr/src/cmd/ttymon/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/ttymon/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -73,6 +73,11 @@ CFLAGS += $(CCVERBOSE) LDFLAGS += $(MAPFILE.NGB:%=-M%) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-extra + # # Message catalog # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/ucodeadm/Makefile --- a/usr/src/cmd/ucodeadm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/ucodeadm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -45,7 +45,9 @@ ROOTAMDUCODE = $(AMD_UCODE_FILE:%=$(ROOTUCODEPATH)/%) CPPFLAGS = -I../../common -I../../uts/common -CFLAGS += -v +CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-type-limits LINTFLAGS += -errtags -erroff=E_NAME_DEF_NOT_USED2 LINTFLAGS += -erroff=E_INCONS_ARG_DECL2,E_INCONS_VAL_TYPE_DECL2 LDLIBS = -lgen diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/uname/Makefile --- a/usr/src/cmd/uname/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/uname/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -28,6 +28,7 @@ include ../Makefile.cmd CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/units/Makefile --- a/usr/src/cmd/units/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/units/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1989 by Sun Microsystems, Inc. # @@ -30,6 +28,9 @@ include ../Makefile.cmd +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-implicit-function-declaration + LIBUNITTAB= $(UNITTAB:%=$(ROOTSHLIB)/%) $(LIBUNITTAB) := FILEMODE = $(LIBFILEMODE) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/unlink/Makefile --- a/usr/src/cmd/unlink/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/unlink/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -27,6 +27,8 @@ include ../Makefile.cmd FILEMODE = 0555 +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-parentheses .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/unpack/Makefile --- a/usr/src/cmd/unpack/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/unpack/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -19,8 +19,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -29,6 +27,8 @@ include ../Makefile.cmd CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized CPPFLAGS += -D_FILE_OFFSET_BITS=64 LDLIBS += -lcmdutils -lsec diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/users/Makefile --- a/usr/src/cmd/users/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/users/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -19,9 +19,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# -# # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -32,6 +29,9 @@ include ../Makefile.cmd +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/utmpd/Makefile --- a/usr/src/cmd/utmpd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/utmpd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -34,6 +34,8 @@ FILEMODE = 555 +CERRWARN += -_gcc=-Wno-extra + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/vgrind/Makefile --- a/usr/src/cmd/vgrind/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/vgrind/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -61,6 +61,11 @@ include ../Makefile.cmd +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function + # # Message catalog # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/vi/misc/Makefile --- a/usr/src/cmd/vi/misc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/vi/misc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,11 +20,8 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1989 by Sun Microsystems, Inc. # -# cmd/vi/misc/Makefile CFLAGS += v @@ -41,6 +38,12 @@ include ../../Makefile.cmd $(XPG4) := CFLAGS += -DXPG4 +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-unused-variable + POFILE= misc.po CLOBBERFILES += $(OTHERPROGS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/vi/port/Makefile --- a/usr/src/cmd/vi/port/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/vi/port/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -51,6 +51,16 @@ port.mk.c70 port.mk.usg ovdoprnt.s ovprintf.c rofix include ../../Makefile.cmd + +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-clobbered +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-address + # # For message catalogue files # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/volcheck/Makefile --- a/usr/src/cmd/volcheck/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/volcheck/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG = volcheck LOCAL_OBJS = volcheck.o @@ -43,6 +41,12 @@ CPPFLAGS += -I$(SRC)/cmd/rmvolmgr C99MODE = $(C99_ENABLE) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-function + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/volrmmount/Makefile --- a/usr/src/cmd/volrmmount/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/volrmmount/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG = volrmmount LOCAL_OBJS = volrmmount.o @@ -43,6 +41,12 @@ CPPFLAGS += -I$(SRC)/cmd/rmvolmgr C99MODE = $(C99_ENABLE) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-function + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/vrrpadm/Makefile --- a/usr/src/cmd/vrrpadm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/vrrpadm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -30,6 +30,8 @@ XGETFLAGS += -a -x $(PROG).xcl LDLIBS += -lvrrpadm -lnsl -linetutil +CERRWARN += -_gcc=-Wno-unused-label + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/vscan/vscand/Makefile --- a/usr/src/cmd/vscan/vscand/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/vscan/vscand/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# -#ident "%Z%%M% %I% %E% SMI" PROG = vscand SRCS = vs_main.c \ @@ -46,6 +44,8 @@ CFLAGS += -D_FILE_OFFSET_BITS=64 $(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG +CERRWARN += -_gcc=-Wno-switch + LINTFLAGS += -mu C99MODE = -xc99=%all C99LMODE = -Xc99=%all diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/vt/Makefile --- a/usr/src/cmd/vt/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/vt/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -31,6 +31,7 @@ include ../Makefile.cmd CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized LDLIBS += -lpam -lbsm diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/w/amd64/Makefile --- a/usr/src/cmd/w/amd64/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/w/amd64/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -33,6 +33,7 @@ include ../../Makefile.cmd.64 CFLAGS64 += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses ROOTLINK= $(ROOTBIN64)/uptime diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/w/i386/Makefile --- a/usr/src/cmd/w/i386/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/w/i386/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -33,6 +33,7 @@ include ../../Makefile.cmd CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses lint := LINTFLAGS = -x diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/w/sparcv9/Makefile --- a/usr/src/cmd/w/sparcv9/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/w/sparcv9/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -34,6 +34,7 @@ include ../../Makefile.cmd.64 CFLAGS64 += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses lint := LINTFLAGS64 = -x -m64 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/wall/Makefile --- a/usr/src/cmd/wall/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/wall/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -31,6 +31,8 @@ FILEMODE = 02555 LDLIBS += -lzonecfg -lcontract +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/whodo/amd64/Makefile --- a/usr/src/cmd/whodo/amd64/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/whodo/amd64/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -33,6 +33,7 @@ include ../../Makefile.cmd.64 CFLAGS64 += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses FILEMODE= 04555 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/whodo/i386/Makefile --- a/usr/src/cmd/whodo/i386/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/whodo/i386/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -33,6 +33,7 @@ include ../../Makefile.cmd CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses lint := LINTFLAGS = -x diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/whodo/sparcv9/Makefile --- a/usr/src/cmd/whodo/sparcv9/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/whodo/sparcv9/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -35,6 +35,7 @@ include ../../Makefile.cmd.64 CFLAGS64 += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses lint := LINTFLAGS64 = -x -m64 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/write/Makefile --- a/usr/src/cmd/write/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/write/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -36,6 +36,7 @@ .KEEP_STATE: CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-unused-variable all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/xargs/Makefile --- a/usr/src/cmd/xargs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/xargs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -19,8 +19,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -38,6 +36,8 @@ CPPFLAGS += -I $(SRC)/common/util LINTFLAGS += -u +CERRWARN += -_gcc=-Wno-parentheses + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/xstr/Makefile --- a/usr/src/cmd/xstr/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/xstr/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,17 +20,14 @@ # CDDL HEADER END # # -# ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1989 by Sun Microsystems, Inc. # -# Makefile for cmd/xstr -# PROG = xstr include ../Makefile.cmd +CERRWARN += -_gcc=-Wno-parentheses .KEEP_STATE : diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/ypcmd/Makefile --- a/usr/src/cmd/ypcmd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/ypcmd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -141,6 +141,16 @@ NIS2LDAPINC = -I$(SRC)/lib/libnisdb/yptol +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-extra +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-address +CERRWARN += -_gcc=-Wno-unused-function + #conditional assignments ypalias.o := CPPFLAGS= -DMAIN $(CPPFLAGS.master) makedbm.o := CPPFLAGS= $(CPPFLAGS.master) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/ypcmd/mknetid/Makefile --- a/usr/src/cmd/ypcmd/mknetid/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/ypcmd/mknetid/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 1994, 2002 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG = mknetid @@ -35,6 +33,9 @@ OBJS = mknetid.o getname.o SRCS = $(OBJS:.o=.c) +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-function .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/ypcmd/revnetgroup/Makefile --- a/usr/src/cmd/ypcmd/revnetgroup/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/ypcmd/revnetgroup/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 1996, 2002 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG = revnetgroup @@ -34,6 +32,10 @@ SRCS = $(OBJS:.o=.c) HDRS = getgroup.h table.h util.h +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/ypcmd/yppasswd/Makefile --- a/usr/src/cmd/ypcmd/yppasswd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/ypcmd/yppasswd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -56,6 +56,10 @@ COMMONOBJ = yppasswdxdr.o yplckpwdf.o RPCYPPASSWDDOBJ = yppasswdd.o changepasswd.o +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Objects shared between all the major components # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/ypcmd/ypupdated/Makefile --- a/usr/src/cmd/ypcmd/ypupdated/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/ypcmd/ypupdated/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -52,6 +52,9 @@ SRCS = $(OBJS:%.o=%.c) +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-unused-variable + #conditional assignments $(INETSVC) := FILEMODE=555 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/zdb/Makefile.com --- a/usr/src/cmd/zdb/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/zdb/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -45,6 +45,8 @@ CFLAGS64 += $(CCVERBOSE) CPPFLAGS += -D_LARGEFILE64_SOURCE=1 -D_REENTRANT $(INCS) -DDEBUG +CERRWARN += -_gcc=-Wno-uninitialized + # lint complains about unused _umem_* functions LINTFLAGS += -xerroff=E_NAME_DEF_NOT_USED2 LINTFLAGS64 += -xerroff=E_NAME_DEF_NOT_USED2 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/zfs/Makefile --- a/usr/src/cmd/zfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/zfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -53,6 +53,12 @@ LINTFLAGS += -xerroff=E_NAME_DEF_NOT_USED2 LINTFLAGS64 += -xerroff=E_NAME_DEF_NOT_USED2 +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-old-style-declaration + ROOTUSRSBINLINKS = $(PROG:%=$(ROOTUSRSBIN)/%) USRLIBFSTYPELINKS = $(LINKPROGS:%=$(USRLIBFSTYPE)/%) ROOTETCFSTYPELINKS = $(LINKPROGS:%=$(ROOTETCFSTYPE)/%) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/zic/Makefile --- a/usr/src/cmd/zic/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/zic/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -31,6 +31,9 @@ ROOTTZTABD= $(ROOTSHLIB)/zoneinfo/tab DIRS= $(ROOTTZSRCD) $(ROOTTZTABD) +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized + ROOTLIBTZSRCFILES= $(SRCFILES:%=$(ROOTTZSRCD)/%) ROOTLIBTZTABFILES= $(TABFILES:%=$(ROOTTZTABD)/%) ROOTKSHPROG= $(ROOTBIN)/$(KSHPROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/zinject/Makefile.com --- a/usr/src/cmd/zinject/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/zinject/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG:sh= cd ..; basename `pwd` OBJS= $(PROG).o translate.o @@ -41,6 +39,9 @@ CPPFLAGS += -D_LARGEFILE64_SOURCE=1 -D_REENTRANT $(INCS) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/zlogin/Makefile --- a/usr/src/cmd/zlogin/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/zlogin/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -31,6 +31,8 @@ CFLAGS += $(CCVERBOSE) FILEMODE = 0555 +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/zlook/Makefile.com --- a/usr/src/cmd/zlook/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/zlook/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -34,6 +34,8 @@ CFLAGS64 += -g $(CCVERBOSE) CPPFLAGS += -D_LARGEFILE64_SOURCE=1 -D_REENTRANT $(INCS) +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/zoneadm/Makefile --- a/usr/src/cmd/zoneadm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/zoneadm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -38,6 +38,8 @@ LDLIBS += -lzonecfg -lsocket -lgen -lpool -lzfs -luuid -lnvpair -lbrand -ldladm -lsecdb +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/zoneadmd/Makefile --- a/usr/src/cmd/zoneadmd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/zoneadmd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -37,6 +37,10 @@ POFILES= $(OBJS:%.o=%.po) CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + LDLIBS += -lsocket -lzonecfg -lnsl -ldevinfo -ldevice -lnvpair \ -lgen -lbsm -lcontract -lzfs -luuid -lbrand -ldladm -ltsnet -ltsol \ -linetutil diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/zonecfg/Makefile --- a/usr/src/cmd/zonecfg/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/zonecfg/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -41,6 +41,11 @@ LDFLAGS += $(MAPOPTS) CLEANFILES += zonecfg_lex.c zonecfg_grammar.tab.c zonecfg_grammar.tab.h +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-implicit-function-declaration + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/zonestat/zonestat/Makefile --- a/usr/src/cmd/zonestat/zonestat/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/zonestat/zonestat/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -28,8 +28,10 @@ include ../../Makefile.cmd -LDLIBS += -lscf -lzonestat -lumem -LINTFLAGS += -u +LDLIBS += -lscf -lzonestat -lumem +LINTFLAGS += -u + +CERRWARN += -_gcc=-Wno-uninitialized .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/zonestat/zonestatd/Makefile --- a/usr/src/cmd/zonestat/zonestatd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/zonestat/zonestatd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -33,13 +33,16 @@ SRCS = zonestatd.c -CPPFLAGS += -I/usr/include/libxml2 -LDLIBS += -lkstat -lpool -lexacct -lscf \ - -lcontract -lcmdutils -lumem +CPPFLAGS += -I/usr/include/libxml2 +LDLIBS += -lkstat -lpool -lexacct -lscf \ + -lcontract -lcmdutils -lumem -LINTFLAGS += -u +LINTFLAGS += -u +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized -OBJS = $(SRCS:%.c=%.o) +OBJS = $(SRCS:%.c=%.o) .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/zpool/Makefile --- a/usr/src/cmd/zpool/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/zpool/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -48,6 +48,10 @@ LINTFLAGS += -xerroff=E_NAME_DEF_NOT_USED2 LINTFLAGS64 += -xerroff=E_NAME_DEF_NOT_USED2 +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + ROOTUSRSBINLINKS = $(PROG:%=$(ROOTUSRSBIN)/%) .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/zstreamdump/Makefile --- a/usr/src/cmd/zstreamdump/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/zstreamdump/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -45,6 +45,8 @@ LINTFLAGS += -xerroff=E_NAME_DEF_NOT_USED2 LINTFLAGS64 += -xerroff=E_NAME_DEF_NOT_USED2 +CERRWARN += -_gcc=-Wno-switch + .KEEP_STATE: .PARALLEL: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/cmd/ztest/Makefile.com --- a/usr/src/cmd/ztest/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/cmd/ztest/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -46,6 +46,8 @@ LINTFLAGS += -xerroff=E_NAME_DEF_NOT_USED2 LINTFLAGS64 += -xerroff=E_NAME_DEF_NOT_USED2 +CERRWARN += -_gcc=-Wno-switch + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/abi/apptrace/Makefile.com --- a/usr/src/lib/abi/apptrace/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/abi/apptrace/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY = apptrace.a VERS = .1 @@ -34,6 +32,8 @@ LIBS = $(DYNLIB) CPPFLAGS = -I. $(CPPFLAGS.master) +CERRWARN += -_gcc=-Wno-uninitialized + # No mapfile here MAPFILES = diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/auditd_plugins/binfile/Makefile.com --- a/usr/src/lib/auditd_plugins/binfile/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/auditd_plugins/binfile/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY= audit_binfile.a VERS= .1 @@ -40,6 +38,8 @@ CPPFLAGS += -D_REENTRANT -I$(LIBBSM) CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 +CERRWARN += -_gcc=-Wno-parentheses + ROOTLIBDIR= $(ROOT)/usr/lib/security .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/auditd_plugins/syslog/Makefile.com --- a/usr/src/lib/auditd_plugins/syslog/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/auditd_plugins/syslog/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY= audit_syslog.a VERS= .1 @@ -49,6 +47,9 @@ CPPFLAGS += -I$(PRAUDIT) CPPFLAGS += -I$(LIBBSM) +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-uninitialized + ROOTLIBDIR= $(ROOT)/usr/lib/security .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/brand/solaris10/s10_brand/Makefile.com --- a/usr/src/lib/brand/solaris10/s10_brand/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/brand/solaris10/s10_brand/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -83,6 +83,8 @@ DYNFLAGS += $(BLOCAL) $(ZNOVERSION) -Wl,-e_start LDLIBS += -lc -lmapmalloc +CERRWARN += -_gcc=-Wno-uninitialized + $(LIBS):= PICS += $(SHAREDOBJS) .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/cfgadm_plugins/fp/Makefile.com --- a/usr/src/lib/cfgadm_plugins/fp/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/cfgadm_plugins/fp/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -45,6 +45,12 @@ CFLAGS += $(CCVERBOSE) CFLAGS64 += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-address + CPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS LINTFLAGS += -erroff=E_SEC_SPRINTF_UNBOUNDED_COPY diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/cfgadm_plugins/ib/Makefile.com --- a/usr/src/lib/cfgadm_plugins/ib/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/cfgadm_plugins/ib/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY= ib.a VERS= .1 @@ -45,6 +43,11 @@ CFLAGS += $(CCVERBOSE) CFLAGS64 += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-value + LDLIBS += -lc -ldevice -ldevinfo -lrcm -lnvpair .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/cfgadm_plugins/pci/Makefile.com --- a/usr/src/lib/cfgadm_plugins/pci/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/cfgadm_plugins/pci/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -47,6 +47,10 @@ CFLAGS += $(CCVERBOSE) LDLIBS += -lc -ldevice -ldevinfo -lrcm +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/cfgadm_plugins/sata/Makefile.com --- a/usr/src/lib/cfgadm_plugins/sata/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/cfgadm_plugins/sata/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY= sata.a VERS= .1 @@ -45,6 +43,10 @@ CFLAGS += $(CCVERBOSE) CFLAGS64 += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-uninitialized + LDLIBS += -lc -ldevice -ldevinfo -lrcm -lnvpair .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/cfgadm_plugins/sbd/Makefile.com --- a/usr/src/lib/cfgadm_plugins/sbd/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/cfgadm_plugins/sbd/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -47,6 +47,10 @@ CFLAGS += $(CCVERBOSE) LDLIBS += -lc -lkstat -lnvpair +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-uninitialized + CPPFLAGS += -I$(ROOT)/usr/platform/$(PLATFORM)/include -DSBD_DEBUG # # Generate the error messages form sbd_ioctl.h diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/cfgadm_plugins/scsi/Makefile.com --- a/usr/src/lib/cfgadm_plugins/scsi/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/cfgadm_plugins/scsi/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY= scsi.a VERS= .1 @@ -40,6 +38,10 @@ LIBS= $(DYNLIB) CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-address LDLIBS += -lc -ldevice -ldevinfo -lrcm diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/cfgadm_plugins/scsi/SUNW,SPARC-Enterprise/Makefile.com --- a/usr/src/lib/cfgadm_plugins/scsi/SUNW,SPARC-Enterprise/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/cfgadm_plugins/scsi/SUNW,SPARC-Enterprise/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY= scsi.a VERS= .1 @@ -51,6 +49,10 @@ LIBS= $(DYNLIB) CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-address +CERRWARN += -_gcc=-Wno-char-subscripts LDLIBS += -lc -ldevice -ldevinfo -lrcm diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/cfgadm_plugins/shp/Makefile.com --- a/usr/src/lib/cfgadm_plugins/shp/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/cfgadm_plugins/shp/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -47,6 +47,11 @@ CFLAGS += $(CCVERBOSE) LDLIBS += -lc -ldevinfo -lhotplug +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-variable + .KEEP_STATE: all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/cfgadm_plugins/sysctrl/Makefile.com --- a/usr/src/lib/cfgadm_plugins/sysctrl/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/cfgadm_plugins/sysctrl/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -52,6 +52,10 @@ CPPFLAGS += -I$(ROOT)/usr/platform/$(PLATFORM)/include +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/cfgadm_plugins/usb/Makefile.com --- a/usr/src/lib/cfgadm_plugins/usb/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/cfgadm_plugins/usb/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY= usb.a VERS= .1 @@ -45,6 +43,11 @@ CFLAGS += $(CCVERBOSE) CFLAGS64 += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-value + LDLIBS += -lc -ldevice -ldevinfo -lrcm -lnvpair .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/efcode/Makefile.efcode --- a/usr/src/lib/efcode/Makefile.efcode Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/efcode/Makefile.efcode Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# # # Common build rules for efcode shared objects. @@ -48,6 +46,13 @@ CPPFLAGS += -I $(SRC)/lib/efcode/include -I $(ROOT)/usr/platform/sun4u/include DYNFLAGS += -R\$$ORIGIN +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-type-limits + EFCODE64DIR = /usr/lib/efcode/$(MACH64) ROOTLIBDIR = $(ROOT)/usr/lib/efcode ROOTLIBDIR64 = $(ROOT)/usr/lib/efcode/$(MACH64) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/efcode/efdaemon/Makefile --- a/usr/src/lib/efcode/efdaemon/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/efcode/efdaemon/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -33,6 +33,8 @@ CPPFLAGS += -DDEBUG -DFCODE_INTERNAL CPPFLAGS += -I ../include -I $(ROOT)/usr/platform/sun4u/include +CERRWARN += -_gcc=-Wno-unused-variable + PROG = efdaemon EFTARGETS += $(EFCODEDIR64)/$(PROG) EFTARGETS += $(EFCODEDIR)/efcode.sh diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/efcode/interpreter/Makefile --- a/usr/src/lib/efcode/interpreter/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/efcode/interpreter/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# include $(SRC)/cmd/Makefile.cmd include $(SRC)/cmd/Makefile.cmd.64 @@ -36,6 +34,8 @@ CPPFLAGS += -DDEBUG -DFCODE_INTERNAL CPPFLAGS += -I ../include -I $(ROOT)/usr/platform/sun4u/include +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized LDFLAGS += -R/usr/lib/efcode/$(MACH64) -M mapfile64 LIBS = fcode.so fcdriver.so diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/fm/libfmd_adm/Makefile.com --- a/usr/src/lib/fm/libfmd_adm/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/fm/libfmd_adm/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -41,6 +41,7 @@ CPPFLAGS += -I../common -I. CFLAGS += $(CCVERBOSE) $(C_BIGPICFLAGS) CFLAGS64 += $(CCVERBOSE) $(C_BIGPICFLAGS) +CERRWARN += -_gcc=-Wno-unused-variable LDLIBS += -lnvpair -lnsl -lc LINTFLAGS = -msux diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/fm/libfmd_log/Makefile.com --- a/usr/src/lib/fm/libfmd_log/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/fm/libfmd_log/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -40,6 +40,7 @@ CPPFLAGS += -I../common -I. CFLAGS += $(CCVERBOSE) $(C_BIGPICFLAGS) CFLAGS64 += $(CCVERBOSE) $(C_BIGPICFLAGS) +CERRWARN += -_gcc=-Wno-uninitialized LDLIBS += -lexacct -lnvpair -lgen -lc LINTFLAGS = -msux diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/fm/libfmd_msg/Makefile.com --- a/usr/src/lib/fm/libfmd_msg/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/fm/libfmd_msg/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -40,6 +40,8 @@ CPPFLAGS += -I../common -I. CFLAGS += $(CCVERBOSE) $(C_BIGPICFLAGS) CFLAGS64 += $(CCVERBOSE) $(C_BIGPICFLAGS) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized LDLIBS += -lnvpair -lc LINTFLAGS = -msux diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/fm/libfmevent/Makefile.com --- a/usr/src/lib/fm/libfmevent/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/fm/libfmevent/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -59,6 +59,10 @@ CFLAGS += $(CCVERBOSE) $(C_BIGPICFLAGS) CFLAGS64 += $(CCVERBOSE) $(C_BIGPICFLAGS) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized + FMLIBDIR=usr/lib/fm $(BUILD64)FMLIBDIR64=usr/lib/fm/$(MACH64) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/fm/libldom/Makefile.com --- a/usr/src/lib/fm/libldom/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/fm/libldom/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -42,6 +42,8 @@ CFLAGS += $(CCVERBOSE) $(C_BIGPICFLAGS) CFLAGS64 += $(CCVERBOSE) $(C_BIGPICFLAGS) +CERRWARN += -_gcc=-Wno-parentheses + $(DYNLIB) := LDLIBS += $(MACH_LDLIBS) $(DYNLIB) := LDLIBS += -lfmd_agent -lnvpair -lscf -lmdesc -lc -lxml2 -lsocket \ -lumem diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/fm/topo/libtopo/Makefile.com --- a/usr/src/lib/fm/topo/libtopo/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/fm/topo/libtopo/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -78,6 +78,9 @@ CFLAGS += $(CCVERBOSE) $(C_BIGPICFLAGS) CFLAGS += -D_POSIX_PTHREAD_SEMANTICS CFLAGS64 += $(CCVERBOSE) $(C_BIGPICFLAGS) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses LINTFLAGS = -msux LINTFLAGS64 = -msux -m64 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/fm/topo/modules/Makefile.plugin --- a/usr/src/lib/fm/topo/modules/Makefile.plugin Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/fm/topo/modules/Makefile.plugin Sun Jul 22 16:03:46 2012 -0400 @@ -58,6 +58,9 @@ LINTFLAGS = -msux LINTFILES = $(SRCS:%.c=%.ln) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + APIMAP = ../../../libtopo/common/topo_mod.map MAPFILES = # use APIMAP instead diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/gss_mechs/mech_dh/backend/Makefile.com --- a/usr/src/lib/gss_mechs/mech_dh/backend/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/gss_mechs/mech_dh/backend/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# # # This make file will build mech_dh.so.1. This shared object @@ -52,6 +50,10 @@ CPPFLAGS += -I../mech -I../crypto -I$(SRC)/uts/common/gssapi/include +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized + $(PICS) := CFLAGS += $(XFFLAG) $(PICS) := CCFLAGS += $(XFFLAG) $(PICS) := CFLAGS64 += $(XFFLAG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/gss_mechs/mech_dummy/Makefile.com --- a/usr/src/lib/gss_mechs/mech_dummy/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/gss_mechs/mech_dummy/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# # # The mech_dummy shared object contains all the functionality needed to @@ -42,6 +40,9 @@ CPPFLAGS += -I../../libgss -I$(SRC)/uts/common/gssapi/include \ -I$(ROOT)/usr/include/gssapi +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + MAKEFILE_EXPORT = $(CLOSED)/lib/gss_mechs/mech_dummy/Makefile.export $(EXPORT_RELEASE_BUILD)include $(MAKEFILE_EXPORT) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/gss_mechs/mech_krb5/Makefile.com --- a/usr/src/lib/gss_mechs/mech_krb5/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/gss_mechs/mech_krb5/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -251,6 +251,16 @@ CPPFLAGS += $(KRB5_DEFS) +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-empty-body +CERRWARN += -_gcc=-Wno-address + MAPFILE_EXPORT = ../mapfile-vers-clean $(EXPORT_RELEASE_BUILD)MAPFILE_EXPORT = \ $(CLOSED)/lib/gss_mechs/mech_krb5/mapfile-vers-export diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/gss_mechs/mech_spnego/Makefile.com --- a/usr/src/lib/gss_mechs/mech_spnego/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/gss_mechs/mech_spnego/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -48,6 +48,9 @@ CPPFLAGS += -I$(SRC)/uts/common/gssapi/include $(DEBUG) -I$(SRC)/lib/gss_mechs/mech_krb5/include -I$(SRC)/uts/common/gssapi/mechs/krb5/include -I$(SRC)/lib/gss_mechs/mech_krb5/mech +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-type-limits + MAKEFILE_EXPORT = $(CLOSED)/lib/gss_mechs/mech_spnego/Makefile.export $(EXPORT_RELEASE_BUILD)include $(MAKEFILE_EXPORT) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/hbaapi/Makefile.com --- a/usr/src/lib/hbaapi/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/hbaapi/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -40,6 +40,11 @@ INCS += -I$(SRCDIR) CPPFLAGS += $(INCS) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function + LDLIBS += -lc $(LINTLIB) := SRCS= $(SRCDIR)/$(LINTSRC) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/krb5/dyn/Makefile.com --- a/usr/src/lib/krb5/dyn/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/krb5/dyn/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY= libdyn.a VERS= .1 @@ -63,6 +61,8 @@ CFLAGS += $(CCVERBOSE) -I.. LDLIBS += -lc +CERRWARN += -_gcc=-Wno-unused-variable + .KEEP_STATE: all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/krb5/kadm5/clnt/Makefile.com --- a/usr/src/lib/krb5/kadm5/clnt/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/krb5/kadm5/clnt/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -80,6 +80,12 @@ -DHAVE_STRFTIME=1 -DHAVE_VSPRINTF=1 -DUSE_KADM5_API_VERSION=2 CFLAGS += $(CCVERBOSE) -I.. + +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + LDLIBS += -lc .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/krb5/kadm5/srv/Makefile.com --- a/usr/src/lib/krb5/kadm5/srv/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/krb5/kadm5/srv/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -87,6 +87,12 @@ CFLAGS += $(CCVERBOSE) -I.. +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/krb5/kdb/Makefile.com --- a/usr/src/lib/krb5/kdb/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/krb5/kdb/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY= libkdb.a VERS= .1 @@ -83,6 +81,12 @@ CFLAGS += $(CCVERBOSE) -I.. +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + DYNFLAGS += $(KRUNPATH) $(KMECHLIB) LDLIBS += -lc -lnsl diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/krb5/plugins/kdb/db2/Makefile.com --- a/usr/src/lib/krb5/plugins/kdb/db2/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/krb5/plugins/kdb/db2/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY= db2.a VERS= .1 @@ -66,6 +64,10 @@ -I$(SRC)/uts/common/gssapi/mechs/krb5/include CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized DYNFLAGS += $(KRUNPATH) $(KERBRUNPATH) $(KMECHLIB) LDLIBS += -L $(ROOTLIBDIR) -ldb2 -lkdb -lkadm5srv -lc -lnsl diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/krb5/plugins/kdb/db2/libdb2/Makefile.com --- a/usr/src/lib/krb5/plugins/kdb/db2/libdb2/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/krb5/plugins/kdb/db2/libdb2/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY= libdb2.a VERS= .1 @@ -103,6 +101,7 @@ -I$(SRC)/lib/gss_mechs/mech_krb5/include #for db-ndbm.h CFLAGS += $(CCVERBOSE) -I.. +CERRWARN += -_gcc=-Wno-uninitialized LDLIBS += -lc # Identify that this library is an interposer (on dbm_ routines from libc.so.1). diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/krb5/plugins/kdb/ldap/Makefile.com --- a/usr/src/lib/krb5/plugins/kdb/ldap/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/krb5/plugins/kdb/ldap/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -60,6 +60,8 @@ -DUSE_KADM5_API_VERSION=2 CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-function DYNFLAGS += $(KERBRUNPATH) # setting -L $(ROOT)/usr/lib/gss because libkdb_ldap needs mech_krb5 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/Makefile.com --- a/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY= libkdb_ldap.a VERS= .1 @@ -76,6 +74,8 @@ -DUSE_KADM5_API_VERSION=2 CFLAGS += $(CCVERBOSE) -I.. +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-function DYNFLAGS += $(KRUNPATH) $(KERBRUNPATH) $(KMECHLIB) LDLIBS += -L $(ROOTLIBDIR) -lkadm5srv -lc -lnsl -lldap diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/krb5/plugins/preauth/pkinit/Makefile.com --- a/usr/src/lib/krb5/plugins/preauth/pkinit/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/krb5/plugins/preauth/pkinit/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -65,6 +65,9 @@ -I$(SRC)/uts/common/gssapi/mechs/krb5/include \ -I$(SRC) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-function + CFLAGS += $(CCVERBOSE) -I.. DYNFLAGS += $(KRUNPATH) $(KMECHLIB) -znodelete LDLIBS += -L $(ROOTLIBDIR) -lcrypto -lc diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/krb5/ss/Makefile.com --- a/usr/src/lib/krb5/ss/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/krb5/ss/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -66,6 +66,8 @@ -I$(SRC)/lib/krb5 CFLAGS += $(CCVERBOSE) -I.. +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-variable DYNFLAGS += $(KRUNPATH) $(KMECHLIB) $(ZIGNORE) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libadm/Makefile.com --- a/usr/src/lib/libadm/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libadm/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -43,6 +43,10 @@ CPPFLAGS += -I ../inc +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-char-subscripts + $(LINTLIB) := SRCS=$(SRCDIR)/$(LINTSRC) LDLIBS += -lc diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libadutils/Makefile.com --- a/usr/src/lib/libadutils/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libadutils/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -41,6 +41,9 @@ CFLAGS += $(CCVERBOSE) CPPFLAGS += -D_REENTRANT -I$(SRCDIR) -I$(SRC)/lib/libldap5/include/ldap +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-uninitialized + lint := OBJECTS = $(LINT_OBJECTS) .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libast/Makefile.com --- a/usr/src/lib/libast/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libast/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -723,6 +723,19 @@ CFLAGS64 += \ $(ASTCFLAGS64) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-clobbered +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-empty-body +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-address + pics/$(MACH)/src/lib/libast/conftab.o \ pics/$(MACH64)/src/lib/libast/conftab.o := CERRWARN += -erroff=E_INIT_DOES_NOT_FIT pics/common/comp/setlocale.o := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libbc/sparc/Makefile --- a/usr/src/lib/libbc/sparc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libbc/sparc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -327,6 +327,15 @@ LDLIBS= -t -R/usr/ucblib -L$(ROOT)/usr/ucblib $(LDLIBS.lib) \ -lucb -lc -lnsl -lsocket +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-extra +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-address + # SONAME is used by DYNFLAGS $(DYNLIB4X) := SONAME = $(DYNLIB4X) $(DYNLIBS5) := SONAME = $(DYNLIBS5) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libbe/Makefile.com --- a/usr/src/lib/libbe/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libbe/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # # Copyright 2011 Nexenta Systems, Inc. All rights reserved. # - + LIBRARY= libbe.a VERS= .1 @@ -51,6 +51,9 @@ LDLIBS += -lzfs -linstzones -luuid -lnvpair -lc -lgen -ldevinfo CPPFLAGS += $(INCS) +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-address $(LINTLIB) := SRCS= $(SRCDIR)/$(LINTSRC) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libbsm/Makefile.com --- a/usr/src/lib/libbsm/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libbsm/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -85,6 +85,9 @@ CFLAGS += $(CCVERBOSE) LDLIBS += -lsocket -lnsl -lmd -lc -lsecdb -ltsol -linetutil -lscf +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + COMDIR= ../common AUDITD= $(SRC)/cmd/auditd diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libc/amd64/Makefile --- a/usr/src/lib/libc/amd64/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libc/amd64/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -971,6 +971,18 @@ # We probably don't want any inlining anyway. CFLAGS64 += -xinline= +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-clobbered +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-address + # Setting THREAD_DEBUG = -DTHREAD_DEBUG (make THREAD_DEBUG=-DTHREAD_DEBUG ...) # enables ASSERT() checking in the threads portion of the library. # This is automatically enabled for DEBUG builds, not for non-debug builds. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libc/i386/Makefile.com --- a/usr/src/lib/libc/i386/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libc/i386/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -1014,6 +1014,18 @@ XINLINE = -xinline= CFLAGS += $(XINLINE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-clobbered +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-address + # Setting THREAD_DEBUG = -DTHREAD_DEBUG (make THREAD_DEBUG=-DTHREAD_DEBUG ...) # enables ASSERT() checking in the threads portion of the library. # This is automatically enabled for DEBUG builds, not for non-debug builds. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libc/sparc/Makefile.com --- a/usr/src/lib/libc/sparc/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libc/sparc/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -1049,6 +1049,18 @@ # We probably don't want any inlining anyway. CFLAGS += -xinline= +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-clobbered +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-address + # Setting THREAD_DEBUG = -DTHREAD_DEBUG (make THREAD_DEBUG=-DTHREAD_DEBUG ...) # enables ASSERT() checking in the threads portion of the library. # This is automatically enabled for DEBUG builds, not for non-debug builds. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libc/sparcv9/Makefile.com --- a/usr/src/lib/libc/sparcv9/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libc/sparcv9/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -994,6 +994,18 @@ # We probably don't want any inlining anyway. CFLAGS64 += -xinline= +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-clobbered +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-address + # Setting THREAD_DEBUG = -DTHREAD_DEBUG (make THREAD_DEBUG=-DTHREAD_DEBUG ...) # enables ASSERT() checking in the threads portion of the library. # This is automatically enabled for DEBUG builds, not for non-debug builds. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libc_db/Makefile.com --- a/usr/src/lib/libc_db/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libc_db/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY = libc_db.a VERS = .1 @@ -46,9 +44,11 @@ ASFLAGS += -P -D__STDC__ -D_ASM -DPIC CPPFLAGS += -I../../libc/inc -D_REENTRANT CFLAGS += $(CCVERBOSE) -CFLAGS += $(CCVERBOSE) LDLIBS += -lc +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libcfgadm/Makefile.com --- a/usr/src/lib/libcfgadm/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libcfgadm/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY = libcfgadm.a VERS = .1 @@ -38,6 +36,8 @@ $(LINTLIB):= SRCS = $(SRCDIR)/$(LINTSRC) CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-unused-label .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libcmd/Makefile.com --- a/usr/src/lib/libcmd/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libcmd/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -132,6 +132,12 @@ CFLAGS64 += \ $(ASTCFLAGS64) +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-implicit-function-declaration + pics/cut.o := CERRWARN += -erroff=E_END_OF_LOOP_CODE_NOT_REACHED pics/sync.o := CERRWARN += -erroff=E_END_OF_LOOP_CODE_NOT_REACHED pics/vmstate.o := CERRWARN += -erroff=E_NO_IMPLICIT_DECL_ALLOWED diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libcpc/Makefile.com --- a/usr/src/lib/libcpc/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libcpc/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -45,6 +45,9 @@ CPPFLAGS += -D_REENTRANT -I../common CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libcrypt/Makefile.com --- a/usr/src/lib/libcrypt/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libcrypt/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY= libcrypt.a VERS= .1 @@ -48,6 +46,9 @@ CPPFLAGS += -D_REENTRANT -I../inc -I../../common/inc -I../../libgen/inc LDLIBS += -lgen -lc +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libcryptoutil/Makefile.com --- a/usr/src/lib/libcryptoutil/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libcryptoutil/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -51,6 +51,9 @@ CPPFLAGS += -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I$(SRCDIR) LINTFLAGS64 += -errchk=longptr64 +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + all: $(LIBS) lint: lintcheck diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libctf/Makefile.com --- a/usr/src/lib/libctf/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libctf/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY = libctf.a VERS = .1 @@ -55,6 +53,9 @@ CPPFLAGS += -I../common -I../../../common/ctf -DCTF_OLD_VERSIONS CFLAGS += $(CCVERBOSE) + +CERRWARN += -_gcc=-Wno-uninitialized + LDLIBS += -lc $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libcurses/Makefile.com --- a/usr/src/lib/libcurses/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libcurses/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -148,6 +148,10 @@ CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + LDLIBS += -lc CPPFLAGS += -I../screen -I../../common/inc diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libdevice/Makefile.com --- a/usr/src/lib/libdevice/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libdevice/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY= libdevice.a VERS= .1 @@ -39,6 +37,8 @@ CFLAGS += $(CCVERBOSE) CPPFLAGS += -D_REENTRANT +CERRWARN += -_gcc=-Wno-parentheses + all: $(LIBS) lint: lintcheck diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libdevinfo/Makefile.com --- a/usr/src/lib/libdevinfo/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libdevinfo/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -30,7 +30,6 @@ devinfo_devperm.o devfsmap.o devinfo_profile.o \ devinfo_finddev.o devinfo_dli.o devinfo_dim.o \ devinfo_realpath.o devinfo_retire.o - include ../../Makefile.lib include ../../Makefile.rootfs @@ -41,6 +40,8 @@ CFLAGS += $(CCVERBOSE) CPPFLAGS += -I.. +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libdhcpagent/Makefile.com --- a/usr/src/lib/libdhcpagent/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libdhcpagent/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -40,6 +40,7 @@ $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC) CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-type-limits .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libdhcpdu/Makefile.com --- a/usr/src/lib/libdhcpdu/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libdhcpdu/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY = rfc2136.a VERS = .1 @@ -44,6 +42,9 @@ LINTFLAGS += -erroff=E_CONSTANT_CONDITION CPPFLAGS += -D_REENTRANT -I../../libresolv2/include +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + MAPFILES = ../common/mapfile .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libdhcpsvc/Makefile.com --- a/usr/src/lib/libdhcpsvc/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libdhcpsvc/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,11 +22,11 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# include $(SRC)/lib/Makefile.lib COMDIR = $(SRC)/common/net/dhcp CPPFLAGS += -I$(SRC)/lib/libdhcpsvc/head -D_REENTRANT + +CERRWARN += -_gcc=-Wno-uninitialized diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libdhcputil/Makefile.com --- a/usr/src/lib/libdhcputil/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libdhcputil/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY = libdhcputil.a VERS = .1 @@ -46,6 +44,8 @@ $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC) CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized CPPFLAGS += -I$(COMDIR) .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libdisasm/Makefile.com --- a/usr/src/lib/libdisasm/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libdisasm/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# # # The build process for libdisasm is sightly different from that used by other @@ -100,6 +98,9 @@ $(LINTLIB) := SRCS = $(COMDIR)/$(LINTSRC) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # We want the thread-specific errno in the library, but we don't want it in # the standalone. $(DTS_ERRNO) is designed to add -D_TS_ERRNO to $(CPPFLAGS), # in order to enable this feature. Conveniently, -D_REENTRANT does the same diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libdiskmgt/Makefile.com --- a/usr/src/lib/libdiskmgt/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libdiskmgt/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -44,6 +44,9 @@ $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC) CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized CPPFLAGS += -D_REENTRANT -I$(SRC)/lib/libdiskmgt/common .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libdladm/Makefile.com --- a/usr/src/lib/libdladm/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libdladm/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -42,6 +42,10 @@ $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC) CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized CPPFLAGS += -I$(SRCDIR) -D_REENTRANT .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libdll/Makefile.com --- a/usr/src/lib/libdll/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libdll/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -83,6 +83,9 @@ CFLAGS64 += \ $(ASTCFLAGS64) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libdlpi/Makefile.com --- a/usr/src/lib/libdlpi/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libdlpi/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY = libdlpi.a VERS = .1 @@ -42,6 +40,7 @@ $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC) CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized CPPFLAGS += -I$(SRCDIR) -D_REENTRANT .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libdns_sd/Makefile.com --- a/usr/src/lib/libdns_sd/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libdns_sd/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -21,8 +21,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# LIBRARY = libdns_sd.a VERS = .1 @@ -38,9 +36,12 @@ LDLIBS += -lsocket -lc C99MODE = $(C99_ENABLE) -CFLAGS += -erroff=E_ASSIGNMENT_TYPE_MISMATCH CPPFLAGS += -I$(SRCDIR) -DNOT_HAVE_SA_LEN +CERRWARN += -erroff=E_ASSIGNMENT_TYPE_MISMATCH + +CERRWARN += -_gcc=-Wno-implicit-function-declaration + .PARALLEL = $(OBJECTS) .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libdscfg/Makefile.com --- a/usr/src/lib/libdscfg/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libdscfg/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -53,6 +53,12 @@ LINTOUT= lint.out LINTOUT_INTER= lintinter.out +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-address + ROOTLINTDIR= $(ROOTLIBDIR) ROOTLINT= $(LINTSRC:%=$(ROOTLINTDIR)/%) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libdtrace/Makefile.com --- a/usr/src/lib/libdtrace/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libdtrace/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -123,6 +123,13 @@ CPPFLAGS += -I../common -I. CFLAGS += $(CCVERBOSE) $(C_BIGPICFLAGS) CFLAGS64 += $(CCVERBOSE) $(C_BIGPICFLAGS) + +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch + YYCFLAGS = LDLIBS += -lgen -lproc -lrtld_db -lnsl -lsocket -lctf -lelf -lc DRTILDLIBS = $(LDLIBS.lib) -lc diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libdtrace_jni/Makefile.com --- a/usr/src/lib/libdtrace_jni/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libdtrace_jni/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY = libdtrace_jni.a VERS = .1 @@ -50,6 +48,9 @@ CPPFLAGS += -I../java/native CFLAGS += $(CCVERBOSE) -K PIC CFLAGS64 += $(CCVERBOSE) -K PIC + +CERRWARN += -_gcc=-Wno-uninitialized + LDLIBS += -lc -luutil -ldtrace -lproc LINTLIB = diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libeti/form/Makefile.com --- a/usr/src/lib/libeti/form/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libeti/form/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY= libform.a VERS= .1 @@ -77,6 +75,10 @@ CFLAGS += $(CCVERBOSE) LDLIBS += -lcurses -lc +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-char-subscripts + .KEEP_STATE: all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libeti/menu/Makefile.com --- a/usr/src/lib/libeti/menu/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libeti/menu/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY= libmenu.a VERS= .1 @@ -75,6 +73,8 @@ CFLAGS += $(CCVERBOSE) LDLIBS += -lcurses -lc +CERRWARN += -_gcc=-Wno-parentheses + .KEEP_STATE: all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libeti/panel/Makefile.com --- a/usr/src/lib/libeti/panel/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libeti/panel/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY= libpanel.a VERS= .1 @@ -51,6 +49,8 @@ CFLAGS += $(CCVERBOSE) LDLIBS += -lcurses -lc +CERRWARN += -_gcc=-Wno-parentheses + .KEEP_STATE: all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libexacct/Makefile.com --- a/usr/src/lib/libexacct/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libexacct/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY = libexacct.a VERS = .1 @@ -43,6 +41,7 @@ $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC) CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized CPPFLAGS += -D_FILE_OFFSET_BITS=64 debug := CPPFLAGS += -DLIBEXACCT_DEBUG diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libexacct/demo/Makefile --- a/usr/src/lib/libexacct/demo/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libexacct/demo/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -31,6 +31,7 @@ LDLIBS += -lexacct -lproject -lsocket -lnsl CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libfdisk/Makefile.com --- a/usr/src/lib/libfdisk/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libfdisk/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -52,6 +52,8 @@ LINTFLAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTFLAGS64 += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libfru/libfruraw/Makefile.com --- a/usr/src/lib/libfru/libfruraw/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libfru/libfruraw/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -52,6 +52,8 @@ CPPFLAGS += -D_REENTRANT CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized + $(LINTLIB) := LINTFLAGS = -nvx -I.. $(LINTLIB) := LINTFLAGS64 = -nvx -m64 -I.. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libfru/libfrureg/Makefile.com --- a/usr/src/lib/libfru/libfrureg/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libfru/libfrureg/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -56,6 +56,8 @@ CPPFLAGS += -D_REENTRANT CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-unused-variable + $(LINTLIB) := LINTFLAGS = -nvx -I.. $(LINTLIB) := LINTFLAGS64 = -nvx -m64 -I.. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libfru/libnvfru/Makefile.com --- a/usr/src/lib/libfru/libnvfru/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libfru/libnvfru/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -50,6 +50,8 @@ CPPFLAGS += -D_REENTRANT CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-switch + $(LINTLIB) := LINTFLAGS = -nvx -I.. $(LINTLIB) := LINTFLAGS64 = -nvx -m64 -I.. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libfruutils/Makefile.com --- a/usr/src/lib/libfruutils/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libfruutils/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -50,6 +50,9 @@ CPPFLAGS += -I.. -D_REENTRANT CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + $(LINTLIB) := LINTFLAGS = -nvx $(LINTLIB) := LINTFLAGS64 = -nvx -m64 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libfsmgt/Makefile.com --- a/usr/src/lib/libfsmgt/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libfsmgt/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY = libfsmgt.a VERS = .1 @@ -49,11 +47,13 @@ SRCDIR = ../common $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC) -#add nfs/lib directory as part of the include path CFLAGS += $(CCVERBOSE) CPPFLAGS += -D_REENTRANT -I$(SRC)/lib/libfsmgt/common \ -I$(SRC)/cmd/fs.d/nfs/lib +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libgen/Makefile.com --- a/usr/src/lib/libgen/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libgen/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -42,6 +42,10 @@ CFLAGS += $(CCVERBOSE) CPPFLAGS += -D_REENTRANT -D_LARGEFILE64_SOURCE -I../inc -I../../common/inc +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libgss/Makefile.com --- a/usr/src/lib/libgss/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libgss/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -106,6 +106,11 @@ -I$(SRC)/lib/gss_mechs/mech_krb5/include/ \ -DHAVE_STDLIB_H +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-empty-body + $(EXPORT_RELEASE_BUILD)include $(CLOSED)/lib/libgss/Makefile.export .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libhotplug/Makefile.com --- a/usr/src/lib/libhotplug/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libhotplug/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -36,6 +36,8 @@ CPPFLAGS += -I$(SRCDIR) -D_REENTRANT $(LINTLIB) := SRCS= $(SRCDIR)/$(LINTSRC) +CERRWARN += -_gcc=-Wno-parentheses + .KEEP_STATE: all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libidmap/Makefile.com --- a/usr/src/lib/libidmap/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libidmap/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -53,6 +53,9 @@ CFLAGS += $(CCVERBOSE) CPPFLAGS += -D_REENTRANT -I$(SRCDIR) +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-switch + CLOBBERFILES += idmap_xdr.c lint := OBJECTS = $(LINT_OBJECTS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libima/Makefile.com --- a/usr/src/lib/libima/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libima/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -39,17 +39,20 @@ LDLIBS += -lc CFLAGS += -mt -CFLAGS += -v +CFLAGS += $(CCVERBOSE) CFLAGS += -xCC CFLAGS += -erroff=E_IMPLICIT_DECL_FUNC_RETURN_INT CFLAGS += -DSOLARIS CFLAGS64 += -mt -CFLAGS64 += -v +CFLAGS64 += $(CCVERBOSE) CFLAGS64 += -xCC CFLAGS64 += -erroff=E_IMPLICIT_DECL_FUNC_RETURN_INT CFLAGS64 += -DSOLARIS +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-implicit-function-declaration + LINTFLAGS += -DSOLARIS LINTFLAGS64 += -DSOLARIS diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libinetsvc/Makefile.com --- a/usr/src/lib/libinetsvc/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libinetsvc/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY = libinetsvc.a VERS = .1 @@ -41,6 +39,10 @@ CPPFLAGS += -I../common -D_REENTRANT $(RELEASE_BUILD)CPPFLAGS += -DNDEBUG +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libinetutil/Makefile.com --- a/usr/src/lib/libinetutil/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libinetutil/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -48,6 +48,9 @@ CFLAGS += $(CCVERBOSE) CPPFLAGS += -I$(SRCDIR) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + .KEEP_STATE: all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libinstzones/Makefile.com --- a/usr/src/lib/libinstzones/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libinstzones/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -53,6 +53,10 @@ -erroff=E_BAD_PTR_CAST_ALIGN,E_BAD_PTR_CAST $(LINTLIB):= SRCS = $(SRCDIR)/$(LINTSRC) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-clobbered +CERRWARN += -_gcc=-Wno-address + LIBS = $(DYNLIB) $(LINTLIB) DYNFLAGS += $(ZLAZYLOAD) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libipadm/Makefile.com --- a/usr/src/lib/libipadm/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libipadm/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -41,6 +41,8 @@ $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC) CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized CPPFLAGS += -I$(SRCDIR) -D_REENTRANT .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libipmi/Makefile.com --- a/usr/src/lib/libipmi/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libipmi/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -58,6 +58,8 @@ CPPFLAGS += $(INCS) C99MODE = $(C99_ENABLE) +CERRWARN += -_gcc=-Wno-uninitialized + $(LINTLIB) := SRCS= $(SRCDIR)/$(LINTSRC) .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libipsecutil/Makefile.com --- a/usr/src/lib/libipsecutil/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libipsecutil/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -41,6 +41,9 @@ CFLAGS += $(CCVERBOSE) CPPFLAGS += -I$(SRCDIR) +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libiscsit/Makefile.com --- a/usr/src/lib/libiscsit/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libiscsit/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -43,6 +43,7 @@ C99LMODE= -Xc99=%all LDLIBS += -lc -lnvpair -lstmf -luuid -lnsl -lscf CPPFLAGS += $(INCS) -D_REENTRANT +CERRWARN += -_gcc=-Wno-parentheses SRCS= $(OBJS_COMMON:%.o=$(SRCDIR)/%.c) \ $(ISCSIT_OBJS_SHARED:%.o=$(SRC)/common/iscsit/%.c) \ diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libkmf/ber_der/Makefile.com --- a/usr/src/lib/libkmf/ber_der/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libkmf/ber_der/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -47,6 +47,8 @@ CPPFLAGS64 += -I/usr/include/libxml2 -I$(INCDIR) -I../../include LDLIBS += -lc +CERRWARN += -_gcc=-Wno-unused-label + .KEEP_STATE: all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libkmf/libkmf/Makefile.com --- a/usr/src/lib/libkmf/libkmf/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libkmf/libkmf/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -65,6 +65,11 @@ CPPFLAGS += -I$(INCDIR) -I/usr/include/libxml2 -I../../ber_der/inc -I$(SRCDIR) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libkmf/plugins/kmf_nss/Makefile.com --- a/usr/src/lib/libkmf/plugins/kmf_nss/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libkmf/plugins/kmf_nss/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -53,6 +53,10 @@ LINTFLAGS += -erroff=E_STATIC_UNUSED LINTFLAGS64 += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-uninitialized + lint:= NSSLIBS = $(BERLIB) lint:= NSSLIBS64 = $(BERLIB64) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libkmf/plugins/kmf_openssl/Makefile.com --- a/usr/src/lib/libkmf/plugins/kmf_openssl/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libkmf/plugins/kmf_openssl/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -50,6 +50,10 @@ CPPFLAGS += -D_REENTRANT $(KMFINC) \ -I$(INCDIR) -I/usr/include/libxml2 +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-uninitialized + PICS= $(OBJECTS:%=pics/%) lint:= OPENSSLLIBS= $(LINTSSLLIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libkmf/plugins/kmf_pkcs11/Makefile.com --- a/usr/src/lib/libkmf/plugins/kmf_pkcs11/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libkmf/plugins/kmf_pkcs11/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -52,6 +52,8 @@ CPPFLAGS += -D_REENTRANT $(KMFINC) -I$(INCDIR) -I/usr/include/libxml2 -I$(BIGNUMDIR) LINTFLAGS64 += -errchk=longptr64 +CERRWARN += -_gcc=-Wno-unused-label + PICS= $(OBJECTS:%=pics/%) LDLIBS += $(PKCS11LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libkvm/Makefile.com --- a/usr/src/lib/libkvm/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libkvm/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY= libkvm.a VERS= .1 @@ -48,6 +46,8 @@ CPPFLAGS = -D_KMEMUSER -D_LARGEFILE64_SOURCE=1 -I.. $(CPPFLAGS.master) +CERRWARN += -_gcc=-Wno-uninitialized + CLOBBERFILES += test test.o .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libldap5/Makefile.com --- a/usr/src/lib/libldap5/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libldap5/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY= libldap.a VERS= .5 @@ -113,6 +111,15 @@ CFLAGS += $(CCVERBOSE) $(LOCFLAGS) CFLAGS64 += $(LOCFLAGS) + +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-address + LDLIBS += -lsasl -lsocket -lnsl -lmd -lc .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libmapid/Makefile.com --- a/usr/src/lib/libmapid/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libmapid/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -54,6 +54,9 @@ CFLAGS += $(CCVERBOSE) CPPFLAGS += -I$(SRCDIR) -I$(SMF_DIR) -D_REENTRANT +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libmtmalloc/Makefile.com --- a/usr/src/lib/libmtmalloc/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libmtmalloc/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY = libmtmalloc.a VERS = .1 @@ -46,6 +44,8 @@ $(LINTLIB) lint := LINTFLAGS += -erroff=E_BAD_PTR_CAST_ALIGN $(LINTLIB) lint := LINTFLAGS64 += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libndmp/Makefile.com --- a/usr/src/lib/libndmp/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libndmp/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -52,6 +52,9 @@ LDLIBS += -lc -lscf CPPFLAGS += $(INCS) -D_REENTRANT +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-uninitialized + SRCS= $(OBJECTS:%.o=$(SRCDIR)/%.c) $(LINTLIB) := SRCS= $(SRCDIR)/$(LINTSRC) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libnisdb/Makefile --- a/usr/src/lib/libnisdb/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libnisdb/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -136,6 +136,13 @@ CPPFLAGS += -D_REENTRANT +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses + # Extra includes, from yp, for yptol files. CPPFLAGS += -I$(SRC)/cmd/ypcmd diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libnls/Makefile.com --- a/usr/src/lib/libnls/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libnls/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY= libnls.a VERS= .1 @@ -42,6 +40,8 @@ CFLAGS += $(CCVERBOSE) LDLIBS += -lnsl -lc +CERRWARN += -_gcc=-Wno-unused-variable + .KEEP_STATE: lint: lintcheck diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libnsl/Makefile.com --- a/usr/src/lib/libnsl/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libnsl/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -200,6 +200,15 @@ CCFLAGS += -_CC=-features=conststrings CCFLAGS64 += -_CC=-features=conststrings +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-empty-body +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-clobbered + LIBMP = -lmp lint := LIBMP = LDLIBS += $(LIBMP) -lmd -lc diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libnvpair/Makefile.com --- a/usr/src/lib/libnvpair/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libnvpair/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -56,6 +56,10 @@ LINTFLAGS += -erroff=E_BAD_FORMAT_STR2 LINTFLAGS64 += -erroff=E_BAD_FORMAT_STR2 +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + CFLAGS += $(CCVERBOSE) CPPFLAGS += -D_REENTRANT diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libnwam/Makefile.com --- a/usr/src/lib/libnwam/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libnwam/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -51,6 +51,9 @@ CFLAGS += $(CCVERBOSE) CPPFLAGS += -I$(SRCDIR) -D_REENTRANT +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libpam/Makefile.com --- a/usr/src/lib/libpam/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libpam/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -39,6 +39,8 @@ CFLAGS += $(CCVERBOSE) CPPFLAGS += -I $(SRCDIR) +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libparted/Makefile.com --- a/usr/src/lib/libparted/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libparted/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -117,6 +117,10 @@ DYNFLAGS += $(ZINTERPOSE) LDLIBS += -ldiskmgt -luuid -lc -lnvpair +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-type-limits + .KEEP_STATE: # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libpcp/Makefile.com --- a/usr/src/lib/libpcp/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libpcp/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -47,6 +47,7 @@ LIBS = $(DYNLIB) $(LINTLIB) CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized LDLIBS += -lc -lumem -ldevinfo PLATLIBS = $(USR_PLAT_DIR)/$(PLATFORM)/lib INS.slink6= $(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/lib/libpcp.so.1 $@ diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libpicltree/Makefile.com --- a/usr/src/lib/libpicltree/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libpicltree/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY= libpicltree.a VERS= .1 @@ -38,6 +36,8 @@ CPPFLAGS += -D_REENTRANT -I.. -I../../libpicl -I$(SRC)/cmd/picl/plugins/inc CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all : $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libpkg/Makefile.com --- a/usr/src/lib/libpkg/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libpkg/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -67,6 +67,12 @@ LDLIBS += -lc -lssl -lwanboot -lcrypto -lscf -ladm CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-clobbered +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-value CPPFLAGS += -I$(SRCDIR) -D_FILE_OFFSET_BITS=64 .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libpool/Makefile.com --- a/usr/src/lib/libpool/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libpool/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY = libpool.a VERS = .1 @@ -52,6 +50,9 @@ CFLAGS += $(CCVERBOSE) CPPFLAGS += -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I/usr/include/libxml2 +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libpp/Makefile.com --- a/usr/src/lib/libpp/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libpp/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -98,6 +98,12 @@ CFLAGS64 += \ $(ASTCFLAGS64) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-empty-body +CERRWARN += -_gcc=-Wno-unused-value + pics/ppcall.o := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED pics/ppcontrol.o := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED pics/ppcpp.o := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libproc/Makefile.com --- a/usr/src/lib/libproc/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libproc/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -89,6 +89,11 @@ CFLAGS += $(CCVERBOSE) CPPFLAGS += -I$(SRCDIR) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-unused-label + # All interfaces are interposable, therefore don't allow direct binding to # libproc. Disable libproc from directly binding to itself, but allow libperl # to directly bind to its dependencies (ie. map -Bdirect -> -zdirect). Ensure diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libproject/Makefile.com --- a/usr/src/lib/libproject/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libproject/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY = libproject.a VERS = .1 @@ -50,6 +48,8 @@ CPPFLAGS += -D_REENTRANT CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized LDLIBS += -lc -lsecdb -lproc -lpool $(LINTLIB) := SRCS = ../common/llib-lproject diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libprtdiag/Makefile.com --- a/usr/src/lib/libprtdiag/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libprtdiag/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# # # Create default so empty rules don't @@ -46,6 +44,11 @@ IFLAGS += -I $(UTSBASE)/sun4u/serengeti CPPFLAGS = $(IFLAGS) $(CPPFLAGS.master) CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-unused-label LDLIBS += -lc -lkstat DYNFLAGS += -Wl,-f/usr/platform/\$$PLATFORM/lib/$(DYNLIBPSR) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libprtdiag_psr/sparc/Makefile.com --- a/usr/src/lib/libprtdiag_psr/sparc/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libprtdiag_psr/sparc/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -49,6 +49,12 @@ MAPFILES = CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-address IFLAGS += -I $(UTSBASE)/sun4u IFLAGS += -I $(UTSCLOSED)/sun4u IFLAGS += -I $(UTSCLOSED)/sun4u/sunfire -I $(UTSBASE)/sun4u/sunfire diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libraidcfg/Makefile.com --- a/usr/src/lib/libraidcfg/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libraidcfg/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -39,6 +39,7 @@ $(LINTLIB):= SRCS = $(LINTSRC:%=$(SRCDIR)/%) CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-type-limits .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/librcm/Makefile.com --- a/usr/src/lib/librcm/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/librcm/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY= librcm.a VERS= .1 @@ -40,6 +38,8 @@ CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses + .KEEP_STATE: all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/librdc/Makefile.com --- a/usr/src/lib/librdc/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/librdc/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -50,6 +50,10 @@ LINTOUT= lint.out LINTOUT_INTER= lintinter.out +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-address + LINTSRC= $(LINTLIB:%.ln=%) ROOTLINTDIR= $(ROOTLIBDIR) ROOTLINT= $(LINTSRC:%=$(ROOTLINTDIR)/%) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libresolv/Makefile --- a/usr/src/lib/libresolv/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libresolv/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY= libresolv.a VERS= .1 @@ -57,6 +55,13 @@ CPPFLAGS = -I. -I../common/inc $(CPPFLAGS.master) -DDEBUG -DSYSV -D_REENTRANT LDLIBS += -lsocket -lnsl -lc +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-implicit-int +CERRWARN += -_gcc=-Wno-extra + ROOTDYNLIBS= $(DYNLIB:%=$(ROOTLIBDIR)/%) .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libresolv2/Makefile.com --- a/usr/src/lib/libresolv2/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libresolv2/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -109,6 +109,9 @@ $(SOLCOMPAT) -I../include -I../../common/inc CPPFLAGS += $(LOCFLAGS) + +CERRWARN += -_gcc=-Wno-implicit-function-declaration + DYNFLAGS += $(ZNODELETE) LDLIBS += -lsocket -lnsl -lc -lmd diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/librpcsvc/Makefile.com --- a/usr/src/lib/librpcsvc/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/librpcsvc/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY= librpcsvc.a VERS = .1 @@ -50,6 +48,11 @@ CPPFLAGS += -DYP +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + $(LINTLIB):= SRCS = $(SRCDIR)/$(LINTSRC) LDLIBS += -lnsl -lc diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/librsm/Makefile.com --- a/usr/src/lib/librsm/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/librsm/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY= librsm.a VERS= .2 @@ -50,6 +48,9 @@ CPPFLAGS = -I../inc -I../../common/inc $(CPPFLAGS.master) -D_REENTRANT $(DEBUG) +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses + LDLIBS += -lc .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libscf/Makefile.com --- a/usr/src/lib/libscf/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libscf/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -56,6 +56,12 @@ CPPFLAGS += -I../inc -I../../common/inc -I$(COMDIR) -I$(ROOTHDRDIR) $(NOT_RELEASE_BUILD) CPPFLAGS += -DFASTREBOOT_DEBUG +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # For native builds, we compile and link against the native version # of libuutil. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libsec/Makefile.com --- a/usr/src/lib/libsec/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libsec/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY= libsec.a VERS= .1 @@ -48,6 +46,11 @@ CPPFLAGS += -I$(SRCDIR) -I. -I../../../common/acl LDLIBS += -lc -lavl -lidmap +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-variable + # install this library in the root filesystem include ../../Makefile.rootfs diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libsecdb/Makefile.com --- a/usr/src/lib/libsecdb/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libsecdb/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY = libsecdb.a VERS = .1 @@ -46,6 +44,9 @@ LINTFLAGS += -DPIC LINTFLAGS64 += -DPIC +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libshare/Makefile.com --- a/usr/src/lib/libshare/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libshare/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -42,6 +42,9 @@ #add nfs/lib directory as part of the include path CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch CPPFLAGS += -D_REENTRANT -I$(NFSLIB_DIR) -I/usr/include/libxml2 .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libshare/autofs/Makefile.com --- a/usr/src/lib/libshare/autofs/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libshare/autofs/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -46,6 +46,9 @@ #add nfs/lib directory as part of the include path CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized CPPFLAGS += -D_REENTRANT -I$(AUTOFSSMFLIB_DIR) -I/usr/include/libxml2 \ -I$(SRCDIR)../common diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libshare/nfs/Makefile.com --- a/usr/src/lib/libshare/nfs/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libshare/nfs/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -46,6 +46,10 @@ #add nfs/lib directory as part of the include path CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized CPPFLAGS += -D_REENTRANT -I$(NFSLIB_DIR) -I/usr/include/libxml2 \ -I$(SRCDIR)/../common diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libshare/smb/Makefile.com --- a/usr/src/lib/libshare/smb/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libshare/smb/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -49,6 +49,8 @@ all install := LDLIBS += -lxml2 CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-switch CPPFLAGS += -D_REENTRANT -I/usr/include/libxml2 \ -I$(SRCDIR)/../common $(ENABLE_SMB_PRINTING) CPPFLAGS += -DHAVE_CUPS diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libshare/smbfs/Makefile.com --- a/usr/src/lib/libshare/smbfs/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libshare/smbfs/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -19,8 +19,6 @@ # CDDL HEADER END # # -# ident "%Z%%M% %I% %E% SMI" -# # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -43,6 +41,8 @@ LDLIBS += -lshare -lscf -lumem -luuid -lc -lxml2 -lsmbfs CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized CPPFLAGS += -D_REENTRANT -I/usr/include/libxml2 -I$(SRCDIR)/../common \ -I$(SRC)/lib/libsmbfs -I$(SRC)/uts/common diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libshell/Makefile.com --- a/usr/src/lib/libshell/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libshell/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -107,11 +107,11 @@ PICSDIRS= $(OBJDIRS:%=pics/%) mkpicdirs: @mkdir -p $(PICSDIRS) - + # Specify the MACH we currently use to build and test ksh LIBSHELLMACH= $(TARGETMACH) LIBSHELLBASE=.. - + include ../../Makefile.astmsg include ../../Makefile.lib @@ -153,6 +153,14 @@ CFLAGS64 += \ $(ASTCFLAGS64) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-clobbered +CERRWARN += -_gcc=-Wno-char-subscripts + pics/sh/macro.o := CERRWARN += -erroff=E_NO_IMPLICIT_DECL_ALLOWED pics/sh/nvdisc.o := CERRWARN += -erroff=E_END_OF_LOOP_CODE_NOT_REACHED diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libsldap/Makefile.com --- a/usr/src/lib/libsldap/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libsldap/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,9 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# -# lib/libsldap/Makefile.com LIBRARY= libsldap.a VERS= .1 @@ -54,6 +51,10 @@ LINTFLAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTFLAGS64 += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libslp/Makefile.com --- a/usr/src/lib/libslp/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libslp/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY = libslp.a VERS = .1 @@ -47,6 +45,9 @@ CPPFLAGS += -D_REENTRANT -I../clib -I$(JAVA_ROOT)/include \ -I$(JAVA_ROOT)/include/solaris +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + .KEEP_STATE: all: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libsmbfs/Makefile.com --- a/usr/src/lib/libsmbfs/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libsmbfs/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -97,6 +97,9 @@ # normal warnings... CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-variable + CPPFLAGS += -D__EXTENSIONS__ -D_REENTRANT -DMIA \ -I$(SRCDIR) -I.. \ -I$(SRC)/uts/common \ diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libsmedia/library/Makefile.com --- a/usr/src/lib/libsmedia/library/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libsmedia/library/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY= libsmedia.a VERS=.1 @@ -54,6 +52,8 @@ CFLAGS += $(CCVERBOSE) CFLAGS64 += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-unused-variable + LDLIBS += -lnsl -lc .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libsocket/Makefile.com --- a/usr/src/lib/libsocket/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libsocket/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -56,6 +56,11 @@ CPPFLAGS += -DSYSV -D_REENTRANT -I../../common/inc %/rcmd.o := CPPFLAGS += -DNIS +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses + .KEEP_STATE: all: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libsqlite/Makefile.com --- a/usr/src/lib/libsqlite/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libsqlite/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -2,8 +2,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# SQLITE_VERSION = 2.8.15-repcached @@ -93,6 +91,11 @@ MYCPPFLAGS = -D_REENTRANT -DTHREADSAFE=1 -DHAVE_USLEEP=1 -I. -I.. -I$(SRCDIR) CPPFLAGS += $(MYCPPFLAGS) +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-label + MAPFILES = ../mapfile-sqlite # Header files used by all library source files. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libstmf/Makefile.com --- a/usr/src/lib/libstmf/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libstmf/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -41,6 +41,8 @@ LDLIBS += -lc -lnvpair -lscf -lm CPPFLAGS += $(INCS) -D_REENTRANT +CERRWARN += -_gcc=-Wno-unused-label + $(LINTLIB) := SRCS= $(SRCDIR)/$(LINTSRC) .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libsum/Makefile.com --- a/usr/src/lib/libsum/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libsum/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -74,6 +74,8 @@ CFLAGS64 += \ $(ASTCFLAGS64) +CERRWARN += -_gcc=-Wno-parentheses + # This codepath is performance-critical sparc_COPTFLAG=-xO5 -_cc=-xprefetch=auto,explicit sparcv9_COPTFLAG=-xO5 -_cc=-xprefetch=auto,explicit diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libsun_ima/Makefile.com --- a/usr/src/lib/libsun_ima/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libsun_ima/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -45,10 +45,11 @@ LDLIBS += -lsysevent CFLAGS += -mt -CFLAGS += -v +CFLAGS += $(CCVERBOSE) +CFLAGS64 += -mt +CFLAGS64 += $(CCVERBOSE) -CFLAGS64 += -mt -CFLAGS64 += -v +CERRWARN += -_gcc=-Wno-parentheses CPPFLAGS += -DSOLARIS diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libtecla/Makefile.com --- a/usr/src/lib/libtecla/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libtecla/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY= libtecla.a VERS= .1 @@ -46,6 +44,8 @@ -DPREFER_REENTRANT $(LINTLIB) := SRCS= $(SRCDIR)/$(LINTSRC) +CERRWARN += -_gcc=-Wno-type-limits + .KEEP_STATE: all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libtnf/Makefile --- a/usr/src/lib/libtnf/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libtnf/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -70,6 +70,8 @@ LINTFLAGS += -y +CERRWARN += -_gcc=-Wno-unused-variable + .KEEP_STATE: all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libtnfctl/Makefile.com --- a/usr/src/lib/libtnfctl/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libtnfctl/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY= libtnfctl.a VERS= .1 @@ -78,6 +76,10 @@ LINTFLAGS += -y +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-empty-body +CERRWARN += -_gcc=-Wno-parentheses + ASFLAGS += -P $(ROOTHDRS) := FILEMODE = 644 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libtnfprobe/Makefile.com --- a/usr/src/lib/libtnfprobe/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libtnfprobe/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -62,6 +62,10 @@ LINTFLAGS += -y +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + $(ROOTHDRS) := FILEMODE = 644 LDLIBS += -lc diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libtsnet/Makefile.com --- a/usr/src/lib/libtsnet/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libtsnet/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY = libtsnet.a VERS = .1 @@ -49,6 +47,7 @@ LIBTSOLINC = $(SRC)/lib/libtsol/common CPPFLAGS += -D_REENTRANT -I$(LIBTSOLINC) +CERRWARN += -_gcc=-Wno-uninitialized .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libtsol/Makefile.com --- a/usr/src/lib/libtsol/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libtsol/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -59,6 +59,8 @@ LINTFLAGS64 += -m64 +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libumem/Makefile.com --- a/usr/src/lib/libumem/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libumem/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# # # The build process for libumem is sightly different from that used by other @@ -125,6 +123,9 @@ ASFLAGS_library = ASFLAGS += -P $(ASFLAGS_$(CURTYPE)) -D_ASM +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + $(LINTLIB) := SRCS = ../common/$(LINTSRC) # We want the thread-specific errno in the library, but we don't want it in diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libunistat/Makefile.com --- a/usr/src/lib/libunistat/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libunistat/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -55,6 +55,9 @@ LINTOUT= lint.out LINTOUT_INTER= lintinter.out +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable + LINTSRC= $(LINTLIB:%.ln=%) ROOTLINTDIR= $(ROOTLIBDIR) ROOTLINT= $(LINTSRC:%=$(ROOTLINTDIR)/%) @@ -90,10 +93,10 @@ # development (debug) - cstyle prohibits use of "STATIC" DFLAGS = -g -DISSTATIC=" " -CFLAGS += -v $(DFLAGS) -I. -DLIBSPCS_CLIENT\ +CFLAGS += $(CCVERBOSE) $(DFLAGS) -I. -DLIBSPCS_CLIENT\ -I$(JAVAINC) -I$(JAVAINCSOL)\ -DLIBUNISTAT_LOCALE=\"/usr/install/unistat/locale\" -CFLAGS64 += -v $(DFLAGS) -I. -DLIBSPCS_CLIENT\ +CFLAGS64 += $(CCVERBOSE) $(DFLAGS) -I. -DLIBSPCS_CLIENT\ -I$(JAVAINC) -I$(JAVAINCSOL)\ -DLIBUNISTAT_LOCALE=\"/usr/install/unistat/locale\" LDLIBS += -lc diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libv12n/Makefile.com --- a/usr/src/lib/libv12n/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libv12n/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -39,6 +39,8 @@ CFLAGS += $(CCVERBOSE) $(C_BIGPICFLAGS) CFLAGS64 += $(CCVERBOSE) $(C_BIGPICFLAGS) +CERRWARN += -_gcc=-Wno-uninitialized + $(LINTLIB) := SRCS = ../common/llib-lv12n .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libvolmgt/Makefile.com --- a/usr/src/lib/libvolmgt/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libvolmgt/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY= libvolmgt.a VERS=.1 @@ -44,6 +42,8 @@ CPPFLAGS = -I.. $(CPPFLAGS.master) CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-unused-variable + LDLIBS += -ladm -lc .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libwanboot/Makefile.com --- a/usr/src/lib/libwanboot/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libwanboot/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -58,8 +58,12 @@ LIBS += $(LINTLIB) LDLIBS += -lnvpair -lresolv -lnsl -lsocket -ldevinfo -ldhcputil \ - -linetutil -lc -lcrypto -lssl + -linetutil -lc -lcrypto -lssl CPPFLAGS = -I$(SRC)/common/net/wanboot/crypt $(CPPFLAGS.master) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-uninitialized # Must override SRCS from Makefile.lib since sources have # multiple source directories. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libwanbootutil/Makefile.com --- a/usr/src/lib/libwanbootutil/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libwanbootutil/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY = libwanbootutil.a VERS = .1 @@ -66,6 +64,10 @@ CPPFLAGS += -I$(CRYPTO_DIR) +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-uninitialized + install: all all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libwrap/Makefile.com --- a/usr/src/lib/libwrap/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libwrap/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -48,10 +48,16 @@ $(STYLE) $(TABLES) $(DOT) $(BUGS) \ -DRFC931_TIMEOUT=$(RFC931_TIMEOUT) \ -I$(SRCDIR) -CFLAGS += $(CCVERBOSE) -erroff=E_FUNC_EXPECTS_TO_RETURN_VALUE \ - -erroff=E_IMPLICIT_DECL_FUNC_RETURN_INT \ - -erroff=E_OLD_STYLE_DECL_HIDES_PROTO \ - -_gcc=-Wno-return-type +CFLAGS += $(CCVERBOSE) + +CERRWARN += -erroff=E_FUNC_EXPECTS_TO_RETURN_VALUE +CERRWARN += -erroff=E_IMPLICIT_DECL_FUNC_RETURN_INT +CERRWARN += -erroff=E_OLD_STYLE_DECL_HIDES_PROTO + +CERRWARN += -_gcc=-Wno-return-type +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libxcurses/Makefile.com --- a/usr/src/lib/libxcurses/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libxcurses/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY= libcurses.a VERS= .1 @@ -115,6 +113,11 @@ $(LINTLIB):= SRCS=../src/libc/llib-lcurses $(LINTLIB):= CPPFLAGS += -D_XOPEN_SOURCE_EXTENDED +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-function + LINTSRC= $(LINTLIB:%.ln=%) LDLIBS += -lc diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libxcurses2/Makefile.com --- a/usr/src/lib/libxcurses2/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libxcurses2/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY= libcurses.a VERS= .2 @@ -98,6 +96,8 @@ LDLIBS += -lc CPPFLAGS = -I../h -I../src/libc/xcurses $(CPPFLAGS.master) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-value # # If and when somebody gets around to messaging this, CLOBBERFILE should not diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libzfs/Makefile.com --- a/usr/src/lib/libzfs/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libzfs/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -72,6 +72,11 @@ -ladm -lidmap -ltsol -lmd -lumem -lzfs_core CPPFLAGS += $(INCS) -D_LARGEFILE64_SOURCE=1 -D_REENTRANT +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-function + SRCS= $(OBJS_COMMON:%.o=$(SRCDIR)/%.c) \ $(OBJS_SHARED:%.o=$(SRC)/common/zfs/%.c) $(LINTLIB) := SRCS= $(SRCDIR)/$(LINTSRC) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libzfs_jni/Makefile.com --- a/usr/src/lib/libzfs_jni/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libzfs_jni/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY= libzfs_jni.a VERS= .1 @@ -46,6 +44,8 @@ LDLIBS += -lc -lnvpair -ldiskmgt -lzfs CPPFLAGS += $(INCS) $(NOT_RELEASE_BUILD) CPPFLAGS += -DDEBUG +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized SRCDIR = ../common $(LINTLIB) := SRCS= $(SRCDIR)/$(LINTSRC) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libzonecfg/Makefile.com --- a/usr/src/lib/libzonecfg/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libzonecfg/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -36,6 +36,8 @@ SRCDIR = ../common CPPFLAGS += -I/usr/include/libxml2 -I$(SRCDIR) -D_REENTRANT +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses $(LINTLIB) := SRCS= $(SRCDIR)/$(LINTSRC) .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libzonestat/Makefile.com --- a/usr/src/lib/libzonestat/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libzonestat/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -35,6 +35,8 @@ CPPFLAGS += -I../common -mt -D_POSIX_PTHREAD_SEMANTICS $(LINTLIB) := SRCS= $(SRCDIR)/$(LINTSRC) +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/libzpool/Makefile.com --- a/usr/src/lib/libzpool/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/libzpool/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -62,6 +62,15 @@ LDLIBS += -lcmdutils -lumem -lavl -lnvpair -lz -lc -lsysevent -lmd CPPFLAGS += $(INCS) -DDEBUG +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-empty-body +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-label + .KEEP_STATE: all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/lvm/Makefile.lvm --- a/usr/src/lib/lvm/Makefile.lvm Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/lvm/Makefile.lvm Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# include $(SRC)/lib/Makefile.lib @@ -37,3 +35,8 @@ RPCGENFLAGS = -C -M CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-label diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/madv/Makefile.com --- a/usr/src/lib/madv/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/madv/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY = madv.a VERS = .1 @@ -42,6 +40,9 @@ CPPFLAGS += -D_REENTRANT DYNFLAGS += $(ZNOVERSION) $(ZINTERPOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/mpapi/libmpapi/Makefile.com --- a/usr/src/lib/mpapi/libmpapi/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/mpapi/libmpapi/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -38,11 +38,15 @@ $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC) CFLAGS += $(CCVERBOSE) -CPPFLAGS += -I$(SRCDIR) -mt -v -D_POSIX_PTHREAD_SEMANTICS +CPPFLAGS += -I$(SRCDIR) -mt $(CCVERBOSE) -D_POSIX_PTHREAD_SEMANTICS CPPFLAGS += -DBUILD_TIME='"Wed Sep 24 12:00:00 2008"' DYNFLAGS += -z finiarray=ExitLibrary DYNFLAGS += -z initarray=InitLibrary +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized + ROOTETC = $(ROOT)/etc CONFDIR = ../common CONFFILE = $(CONFDIR)/mpapi.conf diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/mpss/Makefile.com --- a/usr/src/lib/mpss/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/mpss/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY = mpss.a VERS = .1 @@ -42,6 +40,9 @@ CPPFLAGS += -D_REENTRANT DYNFLAGS += $(BLOCAL) $(ZNOVERSION) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/nsswitch/Makefile.com --- a/usr/src/lib/nsswitch/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/nsswitch/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -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 $(SRC)/lib/Makefile.lib @@ -37,6 +35,12 @@ CPPFLAGS += -D_REENTRANT +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-address + LDLIBS += -lc HSONAME = diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/pam_modules/authtok_check/Makefile.com --- a/usr/src/lib/pam_modules/authtok_check/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/pam_modules/authtok_check/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,10 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# -# usr/src/lib/pam_modules/authtok_check/Makefile.com -# LIBRARY= pam_authtok_check.a VERS= .1 @@ -37,6 +33,7 @@ LDLIBS += -lpam -lc CPPFLAGS += -D_FILE_OFFSET_BITS=64 +CERRWARN += -_gcc=-Wno-parentheses all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/pam_modules/dhkeys/Makefile.com --- a/usr/src/lib/pam_modules/dhkeys/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/pam_modules/dhkeys/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -25,7 +25,6 @@ # # usr/src/lib/pam_modules/dhkeys/Makefile.com # -# ident "%Z%%M% %I% %E% SMI" LIBRARY= pam_dhkeys.a VERS= .1 @@ -36,6 +35,7 @@ LDLIBS += -lpam -lnsl -lc CPPFLAGS += -I$(SRC)/lib/libnsl/include +CERRWARN += -_gcc=-Wno-parentheses all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/pam_modules/krb5/Makefile.com --- a/usr/src/lib/pam_modules/krb5/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/pam_modules/krb5/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -48,6 +48,9 @@ -I$(SRC)/lib/krb5 \ -I. +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-function + # module needs to be unloadable because the key destructor might be # called after dlclose() DYNFLAGS += $(ZNODELETE) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/pam_modules/krb5_migrate/Makefile.com --- a/usr/src/lib/pam_modules/krb5_migrate/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/pam_modules/krb5_migrate/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -38,6 +38,9 @@ -I$(SRC)/lib/gss_mechs/mech_krb5 \ -I$(SRC)/lib/krb5 +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-function + LDLIBS += -lpam -lc all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/pam_modules/ldap/Makefile.com --- a/usr/src/lib/pam_modules/ldap/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/pam_modules/ldap/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -24,8 +24,6 @@ # # usr/src/lib/pam_modules/ldap/Makefile.com # -#ident "%Z%%M% %I% %E% SMI" -# LIBRARY= pam_ldap.a VERS= .1 @@ -42,6 +40,7 @@ LDLIBS += -lpam -lsldap -lc CPPFLAGS += -I$(SRC)/lib/libsldap/common +CERRWARN += -_gcc=-Wno-parentheses all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/pam_modules/unix_account/Makefile.com --- a/usr/src/lib/pam_modules/unix_account/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/pam_modules/unix_account/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,10 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# -# usr/src/lib/pam_modules/unix_account/Makefile.com -# LIBRARY= pam_unix_account.a VERS= .1 @@ -36,6 +32,7 @@ LDLIBS += -lpam -lc # Enable large file support for reading the lastlog file. CPPFLAGS += -D_FILE_OFFSET_BITS=64 +CERRWARN += -_gcc=-Wno-parentheses all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/pam_modules/unix_cred/Makefile.com --- a/usr/src/lib/pam_modules/unix_cred/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/pam_modules/unix_cred/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,10 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# -# usr/src/lib/pam_modules/unix_cred/Makefile.com -# LIBRARY= pam_unix_cred.a VERS= .1 @@ -34,6 +30,8 @@ include ../../Makefile.pam_modules LDLIBS += -lbsm -lpam -lsecdb -lproject -lc +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/passwdutil/Makefile.com --- a/usr/src/lib/passwdutil/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/passwdutil/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -56,6 +56,10 @@ -I$(SRC)/lib/libsldap/common -I$(SRC)/lib/libnsl/include CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-label + lint := SRCS= $(OBJ:%.o=$(SRCDIR)/%.c) .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/pkcs11/libpkcs11/Makefile.com --- a/usr/src/lib/pkcs11/libpkcs11/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/pkcs11/libpkcs11/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -75,6 +75,9 @@ LINTFLAGS64 += -errchk=longptr64 +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/pkcs11/libsoftcrypto/amd64/Makefile --- a/usr/src/lib/pkcs11/libsoftcrypto/amd64/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/pkcs11/libsoftcrypto/amd64/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -35,6 +35,10 @@ include $(SRC)/lib/Makefile.lib include $(SRC)/lib/Makefile.lib.64 +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + AES_PSM_SRC = $(AES_DIR)/$(MACH64)/aes_amd64.s \ $(AES_DIR)/$(MACH64)/aes_intel.s \ $(AES_DIR)/$(MACH64)/aeskey.c diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/pkcs11/libsoftcrypto/capabilities/intel/i386/Makefile --- a/usr/src/lib/pkcs11/libsoftcrypto/capabilities/intel/i386/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/pkcs11/libsoftcrypto/capabilities/intel/i386/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -38,6 +38,8 @@ CPPFLAGS += -I$(CRYPTODIR) -I$(UTSDIR) -D_POSIX_PTHREAD_SEMANTICS BIGNUM_FLAGS += -DMMX_MANAGE -DHWCAP -DPSR_MUL -DNO_BIG_ONE -DNO_BIG_TWO +CERRWARN += -_gcc=-Wno-unused-variable + .KEEP_STATE: all install: $(SYMCAP) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4u/Makefile.com --- a/usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4u/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4u/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -41,6 +41,10 @@ AS_CPPFLAGS += -D__STDC__ -D_ASM -DPIC -D_REENTRANT -D$(MACH) ASFLAGS += $(AS_PICFLAGS) -P CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function CPPFLAGS += -D$(PLATFORM) -I$(CRYPTODIR) -I$(UTSDIR) \ -D_POSIX_PTHREAD_SEMANTICS BIGNUM_FLAGS += -DUSE_FLOATING_POINT -DNO_BIG_ONE -DNO_BIG_TWO diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4v/Makefile.com --- a/usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4v/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4v/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -35,6 +35,10 @@ AS_CPPFLAGS += -D__STDC__ -D_ASM -DPIC -D_REENTRANT -D$(MACH) ASFLAGS += $(AS_PICFLAGS) -P CFLAGS += $(CCVERBOSE) -xO5 -xbuiltin=%all -dalign +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function CPPFLAGS += -D$(PLATFORM) -I$(CRYPTODIR) -I$(UTSDIR) \ -D_POSIX_PTHREAD_SEMANTICS BIGNUM_FLAGS += -DUMUL64 -DNO_BIG_ONE -DNO_BIG_TWO diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/pkcs11/libsoftcrypto/i386/Makefile --- a/usr/src/lib/pkcs11/libsoftcrypto/i386/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/pkcs11/libsoftcrypto/i386/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -30,6 +30,10 @@ include $(SRC)/lib/Makefile.lib +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # Sources need to be redefined after Makefile.lib inclusion. SRCS = $(AES_SRC) $(ARCFOUR_SRC) $(BIGNUM_SRC) $(BLOWFISH_SRC) \ $(DES_SRC) $(MODES_SRC) $(DH_SRC) $(DSA_SRC) $(RSA_SRC) \ diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/pkcs11/libsoftcrypto/sparc/Makefile --- a/usr/src/lib/pkcs11/libsoftcrypto/sparc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/pkcs11/libsoftcrypto/sparc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -41,6 +41,11 @@ MAPFILEDIR = ../common CFLAGS += $(CCVERBOSE) + +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + CPPFLAGS += -I$(CRYPTODIR) -I$(UTSDIR) -D_POSIX_PTHREAD_SEMANTICS LDLIBS += -lcryptoutil -lc LINTFLAGS += $(EXTRA_LINT_FLAGS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/pkcs11/libsoftcrypto/sparcv9/Makefile --- a/usr/src/lib/pkcs11/libsoftcrypto/sparcv9/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/pkcs11/libsoftcrypto/sparcv9/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -42,6 +42,11 @@ MAPFILEDIR = ../common CFLAGS += $(CCVERBOSE) + +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + CPPFLAGS += -I$(CRYPTODIR) -I$(UTSDIR) -D_POSIX_PTHREAD_SEMANTICS LDLIBS += -lcryptoutil -lc LINTFLAGS64 += $(EXTRA_LINT_FLAGS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/pkcs11/pkcs11_kernel/Makefile.com --- a/usr/src/lib/pkcs11/pkcs11_kernel/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/pkcs11/pkcs11_kernel/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY= pkcs11_kernel.a VERS= .1 @@ -86,6 +84,9 @@ CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-label + ROOTLIBDIR= $(ROOT)/usr/lib/security ROOTLIBDIR64= $(ROOT)/usr/lib/security/$(MACH64) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/pkcs11/pkcs11_softtoken/Makefile.com --- a/usr/src/lib/pkcs11/pkcs11_softtoken/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/pkcs11/pkcs11_softtoken/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -125,6 +125,13 @@ CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-empty-body + CPPFLAGS += -I$(AESDIR) -I$(BLOWFISHDIR) -I$(ARCFOURDIR) -I$(DESDIR) \ -I$(DHDIR) -I$(DSADIR) -I$(ECCDIR) -I$(SRC)/common/crypto \ -I$(MPIDIR) -I$(RSADIR) -I$(RNGDIR) \ diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/pkcs11/pkcs11_tpm/Makefile.com --- a/usr/src/lib/pkcs11/pkcs11_tpm/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/pkcs11/pkcs11_tpm/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -78,6 +78,10 @@ CPPFLAGS64 += $(CPPFLAGS) C99MODE= $(C99_ENABLE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + LINTSRC= $(OBJECTS:%.o=$(SRCDIR)/%.c) $(LINTLIB):= SRCS = $(SRCDIR)/$(LINTSRC) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/policykit/Makefile.com --- a/usr/src/lib/policykit/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/policykit/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,14 +22,14 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# include $(SRC)/lib/Makefile.lib include $(SRC)/lib/policykit/Makefile.policykit CPPFLAGS = $(POLICYKIT_DBUS_CPPFLAGS) $(POLICYKIT_GLIB_CPPFLAGS) $(CPPFLAGS.master) +CERRWARN += -_gcc=-Wno-unused-variable + C99MODE = $(C99_ENABLE) ROOTLIBPCDIR = $(ROOT)/usr/lib/pkgconfig diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/print/libipp-core/Makefile.com --- a/usr/src/lib/print/libipp-core/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/print/libipp-core/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY = libipp-core.a VERS = .0 @@ -44,6 +42,10 @@ CPPFLAGS += -I$(SRCDIR) CPPFLAGS += -I../../libpapi-common/common +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-switch + MAPFILES = $(SRCDIR)/mapfile LDLIBS += -lpapi-common -lc diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/print/libipp-listener/Makefile.com --- a/usr/src/lib/print/libipp-listener/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/print/libipp-listener/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -52,6 +52,9 @@ CPPFLAGS += -I../../libpapi-common/common CPPFLAGS += -I../../libipp-core/common +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized + MAPFILES = $(SRCDIR)/mapfile LDLIBS += -lipp-core -lpapi -lc -lsocket -lnsl diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/print/libpapi-common/Makefile.com --- a/usr/src/lib/print/libpapi-common/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/print/libpapi-common/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY = libpapi-common.a VERS = .0 @@ -43,6 +41,8 @@ CFLAGS += $(CCVERBOSE) CPPFLAGS += -I$(SRCDIR) +CERRWARN += -_gcc=-Wno-switch + MAPFILES = $(SRCDIR)/mapfile LDLIBS += -lc -lsocket -lnsl diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/print/libpapi-dynamic/Makefile.com --- a/usr/src/lib/print/libpapi-dynamic/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/print/libpapi-dynamic/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY = libpapi.a VERS = .0 @@ -48,6 +46,8 @@ CPPFLAGS += -DNSS_SOLARIS LDLIBS += -lc +CERRWARN += -_gcc=-Wno-unused-variable + .KEEP_STATE: all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/print/libpapi-ipp/Makefile.com --- a/usr/src/lib/print/libpapi-ipp/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/print/libpapi-ipp/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY = psm-ipp.a VERS = .1 @@ -52,6 +50,10 @@ CPPFLAGS += -I../../libipp-core/common CPPFLAGS += -I../../libhttp-core/common +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized + MAPFILES = $(SRCDIR)/mapfile LDLIBS += -L$(ROOTLIBDIR) -R/usr/lib/print -lhttp-core -lmd5 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/print/libpapi-lpd/Makefile.com --- a/usr/src/lib/print/libpapi-lpd/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/print/libpapi-lpd/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -49,6 +49,8 @@ CPPFLAGS += -I$(SRCDIR) CPPFLAGS += -I../../libpapi-common/common +CERRWARN += -_gcc=-Wno-unused-variable + MAPFILES = $(SRCDIR)/mapfile LDLIBS += -lc diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/pysolaris/Makefile.com --- a/usr/src/lib/pysolaris/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/pysolaris/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -44,6 +44,7 @@ LIBS = $(DYNLIB) LDLIBS += -lc -lsec -lidmap -lpython2.6 CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-unused-variable CPPFLAGS += -I/usr/include/python2.6 .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/pyzfs/Makefile.com --- a/usr/src/lib/pyzfs/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/pyzfs/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -47,6 +47,7 @@ LIBS = $(DYNLIB) LDLIBS += -lc -lnvpair -lpython2.6 -lzfs CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-unused-variable CPPFLAGS += -I/usr/include/python2.6 CPPFLAGS += -I../../../uts/common/fs/zfs CPPFLAGS += -I../../../common/zfs diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/rpcsec_gss/Makefile.com --- a/usr/src/lib/rpcsec_gss/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/rpcsec_gss/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY= rpcsec.a VERS = .1 @@ -35,10 +33,13 @@ CPPFLAGS += -D_REENTRANT -I$(SRC)/uts/common/gssapi/include \ -I$(SRC)/uts/common - + CFLAGS += $(XFFLAG) CFLAGS64 += $(XFFLAG) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + DYNFLAGS += $(ZIGNORE) LINTSRC= $(LINTLIB:%.ln=%) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/sasl_plugins/Makefile.com --- a/usr/src/lib/sasl_plugins/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/sasl_plugins/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -30,6 +30,8 @@ CPPFLAGS += -I$(SRC)/lib/libsasl/include +CERRWARN += -_gcc=-Wno-uninitialized + LIBS = $(DYNLIB) SRCS= $(PLUG_OBJS:%.o=../%.c) \ $(COMMONOBJS:%.o=$(SRC)/lib/libsasl/plugin/%.c) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/scsi/libscsi/Makefile.com --- a/usr/src/lib/scsi/libscsi/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/scsi/libscsi/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" LIBRARY = libscsi.a VERS = .1 @@ -42,6 +41,9 @@ CPPFLAGS += -I../common -I. -D_REENTRANT $(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG CFLAGS += $(CCVERBOSE) + +CERRWARN += -_gcc=-Wno-type-limits + LDLIBS += \ -lumem \ -lc diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/scsi/libses/Makefile.defs --- a/usr/src/lib/scsi/libses/Makefile.defs Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/scsi/libses/Makefile.defs Sun Jul 22 16:03:46 2012 -0400 @@ -29,6 +29,10 @@ $(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-label + ROOTLIBDIR = $(ROOTSCSILIBDIR) ROOTLIBDIR64 = $(ROOTSCSILIBDIR)/$(MACH64) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/scsi/libsmp/Makefile.com --- a/usr/src/lib/scsi/libsmp/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/scsi/libsmp/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -40,6 +40,10 @@ CPPFLAGS += -I../common -I. -D_REENTRANT $(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG CFLAGS += $(CCVERBOSE) + +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-uninitialized + LDLIBS += \ -lumem \ -lc diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/scsi/plugins/ses/SUN-Storage-J4400/Makefile.com --- a/usr/src/lib/scsi/plugins/ses/SUN-Storage-J4400/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/scsi/plugins/ses/SUN-Storage-J4400/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" MODULE = SUN-Storage-J4400 SRCS = riverwalk.c @@ -32,3 +31,5 @@ ALIASES = SUN-Storage-J4200 include ../../Makefile.lib + +CERRWARN += -_gcc=-Wno-switch diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/scsi/plugins/ses/ses2/Makefile.com --- a/usr/src/lib/scsi/plugins/ses/ses2/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/scsi/plugins/ses/ses2/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" MODULE = ses2 SRCS = ses2.c \ @@ -37,3 +36,5 @@ PLUGINTYPE = framework include ../../Makefile.lib + +CERRWARN += -_gcc=-Wno-switch diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/scsi/plugins/smp/sas2/Makefile.com --- a/usr/src/lib/scsi/plugins/smp/sas2/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/scsi/plugins/smp/sas2/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -31,3 +31,5 @@ PLUGINTYPE = framework include ../../Makefile.lib + +CERRWARN += -_gcc=-Wno-unused-variable diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/smbsrv/libmlsvc/Makefile.com --- a/usr/src/lib/smbsrv/libmlsvc/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/smbsrv/libmlsvc/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -89,6 +89,9 @@ CPPFLAGS += $(INCS) -D_REENTRANT $(ENABLE_SMB_PRINTING) CPPFLAGS += -DHAVE_CUPS +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized + SRCS= $(OBJS_COMMON:%.o=$(SRCDIR)/%.c) include ../../Makefile.targ diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/smbsrv/libsmb/Makefile.com --- a/usr/src/lib/smbsrv/libsmb/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/smbsrv/libsmb/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -77,6 +77,9 @@ LDLIBS += -lscf -lmd -luuid -lnsl -lpkcs11 -lsec -lsocket -lresolv LDLIBS += -lidmap -lreparse -lnvpair -lcmdutils -lavl -lc CPPFLAGS += $(INCS) -D_REENTRANT +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-switch SRCS= $(OBJS_COMMON:%.o=$(SRCDIR)/%.c) \ $(OBJS_SHARED:%.o=$(SRC)/common/smbsrv/%.c) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/smbsrv/libsmbns/Makefile.com --- a/usr/src/lib/smbsrv/libsmbns/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/smbsrv/libsmbns/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -51,6 +51,8 @@ LDLIBS += -lsmb -lgss -lcmdutils -lldap -lresolv -lnsl -lsocket LDLIBS += -lc -lcryptoutil CPPFLAGS += -D_REENTRANT +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized # DYNLIB libraries do not have lint libs and are not linted $(DYNLIB) := LDLIBS += -lkrb5 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/smhba/Makefile.com --- a/usr/src/lib/smhba/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/smhba/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -45,6 +45,10 @@ CPPFLAGS += $(INCS) CPPFLAGS += -DPOSIX_THREADS +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-function + LDLIBS += -lc $(LINTLIB) := SRCS= $(SRCDIR)/$(LINTSRC) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/storage/liba5k/Makefile.com --- a/usr/src/lib/storage/liba5k/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/storage/liba5k/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -44,6 +44,9 @@ LINTFLAGS += $(COMMON_LINTFLAGS) LINTFLAGS64 += $(COMMON_LINTFLAGS) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + LDLIBS += -lc -ldevice -lg_fc $(LINTLIB) := SRCS= $(SRCDIR)/$(LINTSRC) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/storage/libg_fc/Makefile.com --- a/usr/src/lib/storage/libg_fc/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/storage/libg_fc/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -49,6 +49,9 @@ LINTFLAGS += $(COMMON_LINTFLAGS) LINTFLAGS64 += $(COMMON_LINTFLAGS) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + $(LINTLIB) := SRCS= $(SRCDIR)/$(LINTSRC) .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/sun_sas/Makefile.com --- a/usr/src/lib/sun_sas/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/sun_sas/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -75,12 +75,15 @@ INCS += -I$(SRC)/lib/libdevid CFLAGS += -mt -CFLAGS += -v +CFLAGS += $(CCVERBOSE) CFLAGS64 += -mt -CFLAGS64 += -v +CFLAGS64 += $(CCVERBOSE) CPPFLAGS += $(INCS) -D_POSIX_PTHREAD_SEMANTICS CPPFLAGS += -DBUILD_TIME='"Wed Feb 4 12:00:00 2009"' +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-value + LDLIBS += -ldevinfo LDLIBS += -lsysevent LDLIBS += -lnvpair diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/udapl/libdat/Makefile.com --- a/usr/src/lib/udapl/libdat/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/udapl/libdat/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY= libdat.a VERS= .1 @@ -53,6 +51,8 @@ LINTFLAGS64 += -DDEBUG $(LINTLIB):= SRCS = $(SRCDIR)/$(LINTSRC) +CERRWARN += -_gcc=-Wno-type-limits + $(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG debug := COPTFLAG = -g debug := COPTFLAG64 = -g diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/udapl/udapl_tavor/Makefile.com --- a/usr/src/lib/udapl/udapl_tavor/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/udapl/udapl_tavor/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -148,6 +148,10 @@ LINTFLAGS += -DDAPL_DBG LINTFLAGS64 += -DDAPL_DBG +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch + $(NOT_RELEASE_BUILD)CPPFLAGS += -DDAPL_DBG debug := COPTFLAG = -g debug := COPTFLAG64 = -g diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/lib/watchmalloc/Makefile.com --- a/usr/src/lib/watchmalloc/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/lib/watchmalloc/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY = watchmalloc.a VERS = .1 @@ -42,6 +40,8 @@ CPPFLAGS += -I../common -I../../common/inc -D_REENTRANT DYNFLAGS += $(ZINTERPOSE) +CERRWARN += -_gcc=-Wno-unused-label + .KEEP_STATE: all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/psm/stand/boot/Makefile.boot --- a/usr/src/psm/stand/boot/Makefile.boot Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/psm/stand/boot/Makefile.boot Sun Jul 22 16:03:46 2012 -0400 @@ -63,3 +63,7 @@ # LINTFLAGS = -nmsF -erroff=E_BAD_PTR_CAST_ALIGN \ -erroff=E_NAME_DECL_NOT_USED_DEF2 -erroff=E_NAME_DEF_NOT_USED2 + +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-char-subscripts diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/psm/stand/bootlst/sparc/sun4u/Makefile --- a/usr/src/psm/stand/bootlst/sparc/sun4u/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/psm/stand/bootlst/sparc/sun4u/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -57,6 +57,7 @@ include ../../common/Makefile.com include $(TOPDIR)/psm/Makefile.psm.64 CFLAGS64 += -xchip=ultra $(CCABS32) +CERRWARN += -_gcc=-Wno-char-subscripts POST_PROCESS += ; $(CHK4UBINARY) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/psm/stand/bootlst/sparc/sun4v/Makefile --- a/usr/src/psm/stand/bootlst/sparc/sun4v/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/psm/stand/bootlst/sparc/sun4v/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# TOPDIR = ../../../../.. SPARCDIR = .. @@ -59,6 +57,6 @@ include ../../common/Makefile.com include $(TOPDIR)/psm/Makefile.psm.64 CFLAGS64 += -xchip=ultra $(CCABS32) - +CERRWARN += -_gcc=-Wno-char-subscripts .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/psm/stand/cpr/sparcv9/sun4u/Makefile --- a/usr/src/psm/stand/cpr/sparcv9/sun4u/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/psm/stand/cpr/sparcv9/sun4u/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 1995-1999,2002-2003 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# TOPDIR = ../../../../.. @@ -51,6 +49,7 @@ include ../../common/Makefile.com include $(TOPDIR)/psm/Makefile.psm.64 CFLAGS64 += -xchip=ultra $(CCABS32) +CERRWARN += -_gcc=-Wno-uninitialized .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/psm/stand/lib/promif/sparcv9/ieee1275/common/Makefile --- a/usr/src/psm/stand/lib/promif/sparcv9/ieee1275/common/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/psm/stand/lib/promif/sparcv9/ieee1275/common/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# # psm/stand/lib/promif/sparcv9/ieee1275/common/Makefile # @@ -37,6 +35,7 @@ include $(TOPDIR)/psm/Makefile.psm.64 CFLAGS64 += -xchip=ultra $(CCABS32) +CERRWARN += -_gcc=-Wno-parentheses PROMDIR = $(TOPDIR)/psm/promif/ieee1275/common SYSDIR = $(TOPDIR)/uts diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/stand/lib/crypto/Makefile --- a/usr/src/stand/lib/crypto/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/stand/lib/crypto/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -218,6 +218,11 @@ $(CRYPTO_ULONG_OBJ:%.o=objs/%.o) := CPPFLAGS += \ -erroff=E_CONST_PROMOTED_UNSIGNED_LONG +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-address +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-variable + objs/md5_dgst.o := CPPFLAGS += -DMD5_ASM objs/md5-sparcv9.o := CPPFLAGS += -DMD5_BLOCK_DATA_ORDER diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/stand/lib/fs/Makefile.com --- a/usr/src/stand/lib/fs/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/stand/lib/fs/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2003 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# DIRREL = ../ @@ -35,3 +33,9 @@ # needs to go finish cleaning them up, at which point this can be removed. # lint lintcheck := LINTFLAGS += -y + +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-char-subscripts diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/stand/lib/inet/Makefile --- a/usr/src/stand/lib/inet/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/stand/lib/inet/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2003 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY = libinet.a LOCOBJS = ipv4.o icmp4.o udp.o mac.o ethernet.o dhcpv4.o ibd.o @@ -38,4 +36,7 @@ LDLIBS += -lsock CPPFLAGS += $(SOCKCPPFLAGS) -I$(TOPDIR)/psm/stand +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-uninitialized + include ../Makefile.targ diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/stand/lib/nvpair/Makefile --- a/usr/src/stand/lib/nvpair/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/stand/lib/nvpair/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY = libnvpair.a LOCOBJS = nvpair_alloc_system.o @@ -37,4 +35,7 @@ SRCS = $(LOCOBJS:%.o=$(SRCDIR)/%.c) $(CMNOBJS:%.o=$(CMNDIR)/%.c) LDLIBS += -lxdr +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + include ../Makefile.targ diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/stand/lib/sa/Makefile --- a/usr/src/stand/lib/sa/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/stand/lib/sa/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY = libsa.a LOCOBJS = assert.o ctype.o errno.o libintl.o malloc.o memlist.o \ @@ -58,6 +56,9 @@ LDLIBS += -lsock CPPFLAGS += $(SOCKCPPFLAGS) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + objs/%.o: $(MACH)/%.s $(COMPILE.s) -o $@ $< $(POST_PROCESS_O) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/stand/lib/sock/Makefile --- a/usr/src/stand/lib/sock/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/stand/lib/sock/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY = libsock.a OBJECTS = socket.o sock_test.o @@ -33,5 +31,5 @@ LDLIBS += -linet -ltcp CPPFLAGS += -I../inet -I../tcp $(SOCKCPPFLAGS) - +CERRWARN += -_gcc=-Wno-type-limits include ../Makefile.targ diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/stand/lib/ssl/Makefile --- a/usr/src/stand/lib/ssl/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/stand/lib/ssl/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -51,6 +51,8 @@ CPPFLAGS += $(OPENSSL_BUILD_CPPFLAGS) $(SOCKCPPFLAGS) $(LINTLIB) := SRCS = $(CMNDIR)/$(LINTSRC) +CERRWARN += -_gcc=-Wno-unused-value + objs/%.o: $(TOPDIR)/common/openssl/crypto/comp/%.c $(COMPILE.c) -o $@ $< $(POST_PROCESS_O) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/stand/lib/tcp/Makefile --- a/usr/src/stand/lib/tcp/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/stand/lib/tcp/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2003 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# LIBRARY = libtcp.a OBJECTS = tcp.o tcp_sack.o @@ -35,4 +33,7 @@ LDLIBS += -linet CPPFLAGS += -I../inet $(SOCKCPPFLAGS) +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + include ../Makefile.targ diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/stand/lib/wanboot/Makefile --- a/usr/src/stand/lib/wanboot/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/stand/lib/wanboot/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -42,5 +42,10 @@ # CPPFLAGS += -I.. +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-value include ../Makefile.targ diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/tools/aw/Makefile --- a/usr/src/tools/aw/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/tools/aw/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -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 -r 6bef548f1800 -r 58bc6f85b799 usr/src/tools/codereview/Makefile --- a/usr/src/tools/codereview/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/tools/codereview/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -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 @@ include ../Makefile.tools +CERRWARN += -_gcc=-Wno-parentheses + MAN1FILES= codereview.1 $(ROOTONBLDMAN1FILES) := FILEMODE= 644 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/tools/cscope-fast/Makefile --- a/usr/src/tools/cscope-fast/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/tools/cscope-fast/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -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 @@ 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 -r 6bef548f1800 -r 58bc6f85b799 usr/src/tools/ctf/Makefile.ctf --- a/usr/src/tools/ctf/Makefile.ctf Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/tools/ctf/Makefile.ctf Sun Jul 22 16:03:46 2012 -0400 @@ -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 @@ CPPFLAGS += $(HDRDIRS) CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/tools/ctf/ctfstrip/Makefile --- a/usr/src/tools/ctf/ctfstrip/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/tools/ctf/ctfstrip/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -17,6 +17,7 @@ CFLAGS += $(CCVERBOSE) include $(SRC)/tools/Makefile.tools +CERRWARN += -_gcc=-Wno-unused-variable OBJS = $(SRCS:%.c=%.o) LINTFILES = $(SRCS:%.c=%.ln) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/tools/ctf/cvt/Makefile.com --- a/usr/src/tools/ctf/cvt/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/tools/ctf/cvt/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -78,6 +78,10 @@ CFLAGS += $(CTF_FLAGS) LINTFLAGS += -mnux +CERRWARN += -_gcc=-Wno-unused +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch + C99MODE = $(C99_ENABLE) ctfconvert := LDFLAGS += $(DWARFLDFLAGS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/tools/ctf/dump/Makefile.com --- a/usr/src/tools/ctf/dump/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/tools/ctf/dump/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -36,6 +36,8 @@ OBJS = $(SRCS:%.c=%.o) LINTFILES = $(SRCS:%.c=%.ln) +CERRWARN += -_gcc=-Wno-uninitialized + .NO_PARALLEL: .PARALLEL: $(OBJS) $(LINTFILES) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/tools/ctf/dwarf/Makefile.com --- a/usr/src/tools/ctf/dwarf/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/tools/ctf/dwarf/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -74,6 +74,8 @@ SRCDIR = ../common/ CPPFLAGS += -I$(SRCDIR) -DELF_TARGET_ALL=1 +CERRWARN += -_gcc=-Wno-unused +CERRWARN += -_gcc=-Wno-implicit-function-declaration LDLIBS = -lelf -lc diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/tools/ctf/stabs/Makefile.com --- a/usr/src/tools/ctf/stabs/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/tools/ctf/stabs/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -44,6 +44,8 @@ LINTFILES = $(SRCS:%.c=%.ln) LINTFLAGS = -mnux -L$(ROOT)/usr/lib +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused .NO_PARALLEL: .PARALLEL: $(OBJS) $(LINTFILES) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/tools/cw/cw.c --- a/usr/src/tools/cw/cw.c Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/tools/cw/cw.c Sun Jul 22 16:03:46 2012 -0400 @@ -526,17 +526,12 @@ 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 @@ 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 -r 6bef548f1800 -r 58bc6f85b799 usr/src/tools/elfextract/Makefile --- a/usr/src/tools/elfextract/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/tools/elfextract/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -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 @@ include ../Makefile.tools +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-implicit-function-declaration .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/tools/elfsign/Makefile --- a/usr/src/tools/elfsign/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/tools/elfsign/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -49,6 +49,8 @@ CPPFLAGS += -I$(SRC)/lib/libcryptoutil/common LDFLAGS += -lmd -lelf -lkmf -lcryptoutil -lc +CERRWARN += -_gcc=-Wno-unused + .KEEP_STATE: all: $(PROG) $(SHFILES) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/tools/findunref/Makefile --- a/usr/src/tools/findunref/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/tools/findunref/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -31,6 +31,9 @@ include ../Makefile.tools +CERRWARN += -_gcc=-Wno-unused +CERRWARN += -_gcc=-Wno-parentheses + $(ROOTONBLDMAN1FILES) := FILEMODE= 644 EXCEPTION_SRC= common open diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/tools/install.bin/Makefile --- a/usr/src/tools/install.bin/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/tools/install.bin/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -31,6 +31,7 @@ include ../Makefile.tools CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-type-limits CPPFLAGS += -I../protocmp LDLIBS += -lgen CLEANFILES += $(OBJS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/tools/ndrgen/Makefile --- a/usr/src/tools/ndrgen/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/tools/ndrgen/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -34,6 +34,8 @@ include ../Makefile.tools CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused CLEANFILES += $(OBJS) y.tab.c y.tab.h diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/tools/pmodes/Makefile --- a/usr/src/tools/pmodes/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/tools/pmodes/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -32,6 +32,8 @@ include ../Makefile.tools CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/tools/protocmp/Makefile --- a/usr/src/tools/protocmp/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/tools/protocmp/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -33,6 +33,8 @@ include ../Makefile.tools CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/tools/protolist/Makefile --- a/usr/src/tools/protolist/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/tools/protolist/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -30,6 +30,7 @@ CFLAGS += $(CCVERBOSE) CPPFLAGS += -I../protocmp +CERRWARN += -_gcc=-Wno-parentheses CLEANFILES += $(OBJS) .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/ucbcmd/chown/Makefile --- a/usr/src/ucbcmd/chown/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/ucbcmd/chown/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG= chown @@ -33,6 +31,8 @@ FILEMODE= 755 CPPFLAGS += -D_FILE_OFFSET_BITS=64 +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-parentheses LDFLAGS += $(MAPFILE.NGB:%=-M%) .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/ucbcmd/expr/Makefile --- a/usr/src/ucbcmd/expr/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/ucbcmd/expr/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -21,14 +21,16 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG= expr include ../Makefile.ucbcmd FILEMODE= 755 +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-extra +CERRWARN += -_gcc=-Wno-char-subscripts LDFLAGS += $(MAPFILE.NGB:%=-M%) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/ucbcmd/from/Makefile --- a/usr/src/ucbcmd/from/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/ucbcmd/from/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" -# # Copyright (c) 1990 by Sun Microsystems, Inc. # @@ -31,6 +29,8 @@ FILEMODE= 755 +CERRWARN += -_gcc=-Wno-parentheses + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/ucbcmd/groups/Makefile --- a/usr/src/ucbcmd/groups/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/ucbcmd/groups/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -19,8 +19,7 @@ # # CDDL HEADER END # -# -#ident "%Z%%M% %I% %E% SMI" + # # Copyright (c) 1989 by Sun Microsystems, Inc. # @@ -31,6 +30,8 @@ FILEMODE= 755 +CERRWARN += -_gcc=-Wno-parentheses + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/ucbcmd/install.d/Makefile --- a/usr/src/ucbcmd/install.d/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/ucbcmd/install.d/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -19,8 +19,7 @@ # # CDDL HEADER END # -# -#ident "%Z%%M% %I% %E% SMI" + # # Copyright (c) 1989,1996 by Sun Microsystems, Inc. # All rights reserved. @@ -37,6 +36,7 @@ CPPFLAGS += -D_FILE_OFFSET_BITS=64 FILEMODE= 755 +CERRWARN += -_gcc=-Wno-implicit-function-declaration # for messaging catalog # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/ucbcmd/ln/Makefile --- a/usr/src/ucbcmd/ln/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/ucbcmd/ln/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -19,8 +19,7 @@ # # CDDL HEADER END # -# -#ident "%Z%%M% %I% %E% SMI" + # # Copyright (c) 1989 by Sun Microsystems, Inc. # @@ -31,6 +30,9 @@ FILEMODE= 755 +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-unused-label + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/ucbcmd/ls/Makefile --- a/usr/src/ucbcmd/ls/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/ucbcmd/ls/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -19,13 +19,12 @@ # # CDDL HEADER END # -# -#ident "%Z%%M% %I% %E% SMI" + # # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ucbcmd/ls/Makefile + PROG= ls @@ -33,6 +32,7 @@ CFLAGS += $(CCVERBOSE) CPPFLAGS += -D_FILE_OFFSET_BITS=64 +CERRWARN += -_gcc=-Wno-parentheses FILEMODE= 755 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/ucbcmd/mkstr/Makefile --- a/usr/src/ucbcmd/mkstr/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/ucbcmd/mkstr/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -19,8 +19,7 @@ # # CDDL HEADER END # -# -#ident "%Z%%M% %I% %E% SMI" + # # Copyright (c) 1989 by Sun Microsystems, Inc. # @@ -32,6 +31,8 @@ # For messaging XGETFLAGS += -a -x mkstr.xcl +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(PROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/ucbcmd/rusage/Makefile --- a/usr/src/ucbcmd/rusage/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/ucbcmd/rusage/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -34,6 +34,7 @@ LDLIBS += -L$(ROOT)/usr/ucblib -R /usr/ucblib -lucb CPPFLAGS = -I$(INC1) $(CPPFLAGS.master) +CERRWARN += -_gcc=-Wno-implicit-function-declaration .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/ucbcmd/sbcp/Makefile --- a/usr/src/ucbcmd/sbcp/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/ucbcmd/sbcp/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG= sbcp @@ -49,6 +47,8 @@ -I/usr/lib/ld.so.1 LIBS= $(LDLIBS.lib) -lmapmalloc $(LIBBC) $(LIBUCB) -lnsl -lc +CERRWARN += -_gcc=-Wno-unused-variable + all: $(PROG) install: all $(ROOT4LIBPROG) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/ucbcmd/sed/Makefile --- a/usr/src/ucbcmd/sed/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/ucbcmd/sed/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,10 +24,6 @@ # All rights reserved. # -# -#ident "%Z%%M% %I% %E% SMI" -# - PROG= sed OBJS= sed0.o sed1.o @@ -36,6 +32,9 @@ include ../Makefile.ucbcmd CPPFLAGS += -D_FILE_OFFSET_BITS=64 +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-parentheses .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/ucbcmd/shutdown/Makefile --- a/usr/src/ucbcmd/shutdown/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/ucbcmd/shutdown/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -37,6 +37,9 @@ LDLIBS += -lsocket -lrpcsvc -lnsl -L$(ROOT)/usr/ucblib -R /usr/ucblib -lucb -lbsm CPPFLAGS = -I$(INC1) $(CPPFLAGS.master) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-clobbered XGETFLAGS += -a -x shutdown.xcl diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/ucbcmd/stty/Makefile --- a/usr/src/ucbcmd/stty/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/ucbcmd/stty/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# PROG= stty @@ -33,6 +31,8 @@ include ../Makefile.ucbcmd FILEMODE= 755 +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-parentheses .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/ucbcmd/test/Makefile --- a/usr/src/ucbcmd/test/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/ucbcmd/test/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -19,8 +19,7 @@ # # CDDL HEADER END # -# -#ident "%Z%%M% %I% %E% SMI" + # # Copyright (c) 1989,1996, by Sun Microsystems, Inc. # All rights reserved. @@ -33,6 +32,7 @@ FILEMODE= 755 CPPFLAGS += -D_FILE_OFFSET_BITS=64 +CERRWARN += -_gcc=-Wno-parentheses .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/ucbcmd/touch/Makefile --- a/usr/src/ucbcmd/touch/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/ucbcmd/touch/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,16 +24,14 @@ # All rights reserved. # -# -#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 -# - PROG= touch include ../Makefile.ucbcmd FILEMODE= 755 CPPFLAGS += -D_FILE_OFFSET_BITS=64 +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-implicit-function-declaration .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/ucbcmd/tr/Makefile --- a/usr/src/ucbcmd/tr/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/ucbcmd/tr/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -19,8 +19,7 @@ # # CDDL HEADER END # -# -#ident "%Z%%M% %I% %E% SMI" + # # Copyright (c) 1989 by Sun Microsystems, Inc. # @@ -30,6 +29,8 @@ include ../Makefile.ucbcmd FILEMODE= 755 +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-parentheses .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/ucbcmd/tset/Makefile --- a/usr/src/ucbcmd/tset/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/ucbcmd/tset/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -32,6 +32,10 @@ LDLIBS = -L$(ROOT)/usr/ucblib -R /usr/ucblib $(LDLIBS.cmd) -lucb -ltermcap CPPFLAGS = -I$(SRC)/ucbhead $(CPPFLAGS.master) +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized ROOTSYMLINK= $(ROOTBIN)/reset diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/ucbcmd/vipw/Makefile --- a/usr/src/ucbcmd/vipw/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/ucbcmd/vipw/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -30,8 +30,10 @@ INC1 = $(SRC)/ucbhead LDLIBS = -L$(ROOT)/usr/ucblib -R /usr/ucblib $(LDLIBS.cmd) -lucb - + CPPFLAGS = -I$(INC1) $(CPPFLAGS.master) +CERRWARN += -_gcc=-Wno-implicit-function-declaration +CERRWARN += -_gcc=-Wno-unused-variable .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/ucbcmd/whereis/Makefile --- a/usr/src/ucbcmd/whereis/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/ucbcmd/whereis/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -19,8 +19,7 @@ # # CDDL HEADER END # -# -#ident "%Z%%M% %I% %E% SMI" + # # Copyright (c) 1989 by Sun Microsystems, Inc. # @@ -30,6 +29,7 @@ include ../Makefile.ucbcmd FILEMODE= 755 +CERRWARN += -_gcc=-Wno-implicit-function-declaration .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/ucblib/libcurses/Makefile.com --- a/usr/src/ucblib/libcurses/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/ucblib/libcurses/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -85,6 +85,10 @@ CPPFLAGS = -I$(SRC)/ucbhead -I../../../lib/libc/inc $(CPPFLAGS.master) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/ucblib/libdbm/Makefile.com --- a/usr/src/ucblib/libdbm/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/ucblib/libdbm/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -41,6 +41,8 @@ CPPFLAGS = -I$(SRC)/ucbhead $(CPPFLAGS.master) +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: all: $(LIBS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/ucblib/librpcsoc/Makefile.com --- a/usr/src/ucblib/librpcsoc/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/ucblib/librpcsoc/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -49,6 +49,8 @@ CPPFLAGS = -I$(SRC)/ucbhead -I../../../lib/libc/inc $(CPPFLAGS.master) +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: lint: lintcheck diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/ucblib/libucb/Makefile.com --- a/usr/src/ucblib/libucb/Makefile.com Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/ucblib/libucb/Makefile.com Sun Jul 22 16:03:46 2012 -0400 @@ -93,6 +93,11 @@ CPPFLAGS = -D$(MACH) -I$(SRC)/ucbhead -I../inc \ -I../../../lib/libc/inc $(CPPFLAGS.master) +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-uninitialized + ASFLAGS= -P -D__STDC__ -DLOCORE -D_SYS_SYS_S -D_ASM $(CPPFLAGS) pics/%.o:= ASFLAGS += $(AS_PICFLAGS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/Makefile.uts --- a/usr/src/uts/Makefile.uts Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/Makefile.uts Sun Jul 22 16:03:46 2012 -0400 @@ -213,6 +213,17 @@ # Override the default, the kernel is squeaky clean CERRWARN = -errtags=yes -errwarn=%all +CERRWARN += -_gcc=-Wno-missing-braces +CERRWARN += -_gcc=-Wno-sign-compare +CERRWARN += -_gcc=-Wno-unknown-pragmas +CERRWARN += -_gcc=-Wno-unused-parameter +CERRWARN += -_gcc=-Wno-missing-field-initializers + +# DEBUG v. -nd make for frequent unused variables, empty conditions, etc. in +# -nd builds +$(RELEASE_BUILD)CERRWARN += -_gcc=-Wno-unused +$(RELEASE_BUILD)CERRWARN += -_gcc=-Wno-empty-body + C99MODE = $(C99_ENABLE) CFLAGS_uts = diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86pc/acpidev/Makefile --- a/usr/src/uts/i86pc/acpidev/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86pc/acpidev/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -60,6 +60,9 @@ # LDFLAGS += -dy -N misc/acpica +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-type-limits + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86pc/acpippm/Makefile --- a/usr/src/uts/i86pc/acpippm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86pc/acpippm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -63,6 +63,8 @@ # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-unused-variable + # # Declare dependency on misc/acpica # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86pc/amd_iommu/Makefile --- a/usr/src/uts/i86pc/amd_iommu/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86pc/amd_iommu/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -56,6 +56,9 @@ # LDFLAGS += -dy -Nmisc/iommulib -Nmisc/acpica +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86pc/apix/Makefile --- a/usr/src/uts/i86pc/apix/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86pc/apix/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -62,6 +62,11 @@ # LDFLAGS += -dy -N misc/acpica +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-empty-body + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86pc/consconfig_dacf/Makefile --- a/usr/src/uts/i86pc/consconfig_dacf/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86pc/consconfig_dacf/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,10 +24,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" -# -# This makefile drives the production of the consconfig_dacf module. -# + # # Path to the base of the uts directory tree (usually /usr/src/uts). # @@ -58,6 +55,8 @@ # LDFLAGS += -dy -Nmisc/usbser +CERRWARN += -_gcc=-Wno-parentheses + .KEEP_STATE: def: $(DEF_DEPS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86pc/cpr/Makefile --- a/usr/src/uts/i86pc/cpr/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86pc/cpr/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -72,6 +72,11 @@ # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86pc/cpudrv/Makefile --- a/usr/src/uts/i86pc/cpudrv/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86pc/cpudrv/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -55,6 +55,9 @@ # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + # # Link to acpica for ACPI services # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86pc/dr/Makefile --- a/usr/src/uts/i86pc/dr/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86pc/dr/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -68,6 +68,10 @@ # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-empty-body + # # module dependencies # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86pc/fipe/Makefile --- a/usr/src/uts/i86pc/fipe/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86pc/fipe/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -62,6 +62,8 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-type-limits + # # Dependency # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86pc/generic_cpu/Makefile --- a/usr/src/uts/i86pc/generic_cpu/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86pc/generic_cpu/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -41,6 +41,9 @@ # include ../cpu/Makefile.cpu +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Our lint library has a different name from that of the module we build. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86pc/gfx_private/Makefile --- a/usr/src/uts/i86pc/gfx_private/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86pc/gfx_private/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,10 +23,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# -# This makefile drives the production of the graphics private -# interface kernel module. + # # i86pc platform dependent # @@ -74,6 +71,9 @@ LINTTAGS += -erroff=E_STATIC_UNUSED LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86pc/i86hvm/hvm_cmdk/Makefile --- a/usr/src/uts/i86pc/i86hvm/hvm_cmdk/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86pc/i86hvm/hvm_cmdk/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -72,6 +72,10 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized # # Default build targets. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86pc/i86hvm/hvm_sd/Makefile --- a/usr/src/uts/i86pc/i86hvm/hvm_sd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86pc/i86hvm/hvm_sd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -70,6 +70,12 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-value # # Default build targets. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86pc/i86hvm/pv_cmdk/Makefile --- a/usr/src/uts/i86pc/i86hvm/pv_cmdk/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86pc/i86hvm/pv_cmdk/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -76,6 +76,9 @@ LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-variable + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86pc/i86hvm/pv_sd/Makefile --- a/usr/src/uts/i86pc/i86hvm/pv_sd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86pc/i86hvm/pv_sd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -73,6 +73,8 @@ LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-unused-variable + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86pc/i86hvm/xdf/Makefile --- a/usr/src/uts/i86pc/i86hvm/xdf/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86pc/i86hvm/xdf/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -60,6 +60,10 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-switch + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86pc/i86hvm/xpv/Makefile --- a/usr/src/uts/i86pc/i86hvm/xpv/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86pc/i86hvm/xpv/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the xpv # driver, which provides the necessary infrastructure for @@ -71,6 +71,8 @@ LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-unused-label + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86pc/i86hvm/xpvd/Makefile --- a/usr/src/uts/i86pc/i86hvm/xpvd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86pc/i86hvm/xpvd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the xpvd nexus driver # @@ -63,6 +63,8 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86pc/ioat/Makefile --- a/usr/src/uts/i86pc/ioat/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86pc/ioat/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the ioat driver kernel # module. @@ -58,6 +58,9 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + # # Dependency # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86pc/isa/Makefile --- a/usr/src/uts/i86pc/isa/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86pc/isa/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -105,6 +105,8 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-unused-variable + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86pc/npe/Makefile --- a/usr/src/uts/i86pc/npe/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86pc/npe/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -78,6 +78,9 @@ LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86pc/pci-ide/Makefile --- a/usr/src/uts/i86pc/pci-ide/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86pc/pci-ide/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -25,7 +25,7 @@ # Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the pci-ide "drv" # kernel module. @@ -67,6 +67,8 @@ INC_PATH += -I$(UTSBASE)/common/io/pci-ide +CERRWARN += -_gcc=-Wno-switch + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86pc/pci/Makefile --- a/usr/src/uts/i86pc/pci/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86pc/pci/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the PCI nexus driver # @@ -75,6 +75,9 @@ LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86pc/pcie/Makefile --- a/usr/src/uts/i86pc/pcie/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86pc/pcie/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -63,6 +63,12 @@ LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function # safe + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86pc/pcplusmp/Makefile --- a/usr/src/uts/i86pc/pcplusmp/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86pc/pcplusmp/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the pcplusmp "mach" # kernel module. @@ -77,6 +77,12 @@ LINTTAGS += -erroff=E_STATIC_UNUSED LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-empty-body + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86pc/ppm/Makefile --- a/usr/src/uts/i86pc/ppm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86pc/ppm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the generic power managment # pseudo driver @@ -63,6 +63,11 @@ # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-variable + # # Link to acpica for ACPI services # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86pc/rootnex/Makefile --- a/usr/src/uts/i86pc/rootnex/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86pc/rootnex/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -69,6 +69,11 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86pc/tzmon/Makefile --- a/usr/src/uts/i86pc/tzmon/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86pc/tzmon/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# # This makefile drives the production of the tzmon # ThermalZone Monitor driver kernel module. @@ -72,6 +70,8 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86pc/unix/Makefile --- a/usr/src/uts/i86pc/unix/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86pc/unix/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -134,6 +134,17 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-clobbered +CERRWARN += -_gcc=-Wno-empty-body +CERRWARN += -_gcc=-Wno-unused-value + # Ensure that lint sees 'struct cpu' containing a fully declared # embedded 'struct machcpu' # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86pc/xsvc/Makefile --- a/usr/src/uts/i86pc/xsvc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86pc/xsvc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the xsvc driver kernel # module. @@ -67,6 +67,8 @@ MODSTUBS_DIR = $(OBJS_DIR) CLEANFILES += $(MODSTUBS_O) +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86xpv/consconfig_dacf/Makefile --- a/usr/src/uts/i86xpv/consconfig_dacf/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86xpv/consconfig_dacf/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,11 +23,10 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the consconfig_dacf module. # -# # Path to the base of the uts directory tree (usually /usr/src/uts). # UTSBASE = ../.. @@ -57,6 +56,8 @@ # LDFLAGS += -dy -Nmisc/usbser +CERRWARN += -_gcc=-Wno-parentheses + .KEEP_STATE: def: $(DEF_DEPS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86xpv/generic_cpu/Makefile --- a/usr/src/uts/i86xpv/generic_cpu/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86xpv/generic_cpu/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -44,6 +44,10 @@ include $(UTSBASE)/i86xpv/Makefile.i86xpv include $(UTSBASE)/i86pc/cpu/Makefile.files +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-variable + # # Our lint library has a different name from that of the module we build. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86xpv/gfx_private/Makefile --- a/usr/src/uts/i86xpv/gfx_private/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86xpv/gfx_private/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the graphics private # interface kernel module. @@ -67,6 +67,9 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86xpv/ioat/Makefile --- a/usr/src/uts/i86xpv/ioat/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86xpv/ioat/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the ioat driver kernel # module. @@ -58,6 +58,9 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + # # Dependency # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86xpv/isa/Makefile --- a/usr/src/uts/i86xpv/isa/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86xpv/isa/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -99,6 +99,7 @@ $(OBJECTS) $(LINTS) := CPPFLAGS += -Dd37A_read_count=$(MODULE)_d37A_read_count LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-unused-variable # # Default build targets. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86xpv/npe/Makefile --- a/usr/src/uts/i86xpv/npe/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86xpv/npe/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -72,6 +72,9 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86xpv/pci-ide/Makefile --- a/usr/src/uts/i86xpv/pci-ide/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86xpv/pci-ide/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the pci-ide "drv" # kernel module. @@ -65,6 +65,8 @@ INC_PATH += -I$(UTSBASE)/common/io/pci-ide +CERRWARN += -_gcc=-Wno-switch + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86xpv/pci/Makefile --- a/usr/src/uts/i86xpv/pci/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86xpv/pci/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the PCI nexus driver # @@ -70,6 +70,9 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86xpv/privcmd/Makefile --- a/usr/src/uts/i86xpv/privcmd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86xpv/privcmd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the privcmd # driver kernel module. @@ -58,6 +58,8 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86xpv/rootnex/Makefile --- a/usr/src/uts/i86xpv/rootnex/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86xpv/rootnex/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the rootnex driver # @@ -63,6 +63,10 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86xpv/unix/Makefile --- a/usr/src/uts/i86xpv/unix/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86xpv/unix/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -123,6 +123,17 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-clobbered +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-empty-body + # Ensure that lint sees 'struct cpu' containing a fully declared # embedded 'struct machcpu' # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86xpv/xdb/Makefile --- a/usr/src/uts/i86xpv/xdb/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86xpv/xdb/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -55,6 +55,7 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-switch # # Overrides diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86xpv/xdf/Makefile --- a/usr/src/uts/i86xpv/xdf/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86xpv/xdf/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -25,7 +25,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # i86xpv architecture dependent # @@ -61,6 +61,9 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86xpv/xdt/Makefile --- a/usr/src/uts/i86xpv/xdt/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86xpv/xdt/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# UTSBASE = ../.. @@ -42,6 +40,8 @@ LDFLAGS += -dy -Ndrv/dtrace +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: def: $(DEF_DEPS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86xpv/xenbus/Makefile --- a/usr/src/uts/i86xpv/xenbus/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86xpv/xenbus/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -25,7 +25,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the xenbus # xenstore driver kernel module. @@ -60,6 +60,9 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86xpv/xencons/Makefile --- a/usr/src/uts/i86xpv/xencons/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86xpv/xencons/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -25,7 +25,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the xencons # console driver kernel module. @@ -63,6 +63,9 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-variable + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86xpv/xnb/Makefile --- a/usr/src/uts/i86xpv/xnb/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86xpv/xnb/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -76,6 +76,8 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86xpv/xpv_psm/Makefile --- a/usr/src/uts/i86xpv/xpv_psm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86xpv/xpv_psm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the xpv_psm mach # kernel module. @@ -73,6 +73,11 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-empty-body + # Default build targets. # .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86xpv/xpvd/Makefile --- a/usr/src/uts/i86xpv/xpvd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86xpv/xpvd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the xpvd nexus driver # @@ -58,6 +58,8 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86xpv/xpvtap/Makefile --- a/usr/src/uts/i86xpv/xpvtap/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86xpv/xpvtap/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -75,6 +75,8 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_CONSTANT_CONDITION +CERRWARN += -_gcc=-Wno-unused-label + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/i86xpv/xsvc/Makefile --- a/usr/src/uts/i86xpv/xsvc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/i86xpv/xsvc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the xsvc driver kernel # module. @@ -66,6 +66,8 @@ MODSTUBS_DIR = $(OBJS_DIR) CLEANFILES += $(MODSTUBS_O) +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/FSS/Makefile --- a/usr/src/uts/intel/FSS/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/FSS/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # # uts/intel/FSS/Makefile # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the FSS scheduling class # kernel module. @@ -64,6 +64,8 @@ # LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/aac/Makefile --- a/usr/src/uts/intel/aac/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/aac/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the aac driver kernel module. # @@ -68,6 +68,12 @@ # Overrides # +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-switch + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/acpica/Makefile --- a/usr/src/uts/intel/acpica/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/acpica/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -57,6 +57,10 @@ LINTFLAGS += -erroff=%all LINTFLAGS += -errwarn=%none +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/aggr/Makefile --- a/usr/src/uts/intel/aggr/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/aggr/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# # # Path to the base of the uts directory tree (usually /usr/src/uts). @@ -65,6 +63,12 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/agpgart/Makefile --- a/usr/src/uts/intel/agpgart/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/agpgart/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -4,8 +4,7 @@ # # uts/intel/agpgart/Makefile # -# -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the framework of agp protocol # (agpgart) kernel module. @@ -36,6 +35,10 @@ LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # For now, disable these lint checks; maintainers should endeavor # to investigate and remove these for maximum lint coverage. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/agptarget/Makefile --- a/usr/src/uts/intel/agptarget/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/agptarget/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -31,6 +31,8 @@ # include $(UTSBASE)/intel/Makefile.intel +CERRWARN += -_gcc=-Wno-uninitialized + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/ahci/Makefile --- a/usr/src/uts/intel/ahci/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/ahci/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# # # This makefile drives the production of the @@ -73,6 +71,10 @@ # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + # # # we depend on the sata module diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/amr/Makefile --- a/usr/src/uts/intel/amr/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/amr/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -45,6 +45,8 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses + # # Depends on scsi # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/arcmsr/Makefile --- a/usr/src/uts/intel/arcmsr/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/arcmsr/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -41,6 +41,11 @@ # include $(UTSBASE)/intel/Makefile.intel +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Define targets. # @@ -52,6 +57,7 @@ # Note dependancy on misc/scsi. # LDFLAGS += -dy -N"misc/scsi" + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/arn/Makefile --- a/usr/src/uts/intel/arn/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/arn/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -61,6 +61,12 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-empty-body + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/asy/Makefile --- a/usr/src/uts/intel/asy/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/asy/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the asy `drv' # kernel module. @@ -70,6 +70,11 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-variable + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/ata/Makefile --- a/usr/src/uts/intel/ata/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/ata/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -72,6 +72,9 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Depends on scsi # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/atge/Makefile --- a/usr/src/uts/intel/atge/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/atge/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -56,6 +56,9 @@ # Overrides # +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch + # # Driver depends on GLD # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/ath/Makefile --- a/usr/src/uts/intel/ath/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/ath/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -62,6 +62,10 @@ # LDFLAGS += -dy -Nmisc/mac -Nmisc/net80211 +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-empty-body + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/atu/Makefile --- a/usr/src/uts/intel/atu/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/atu/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -59,6 +59,8 @@ # LDFLAGS += -dy -Nmisc/mac -Nmisc/net80211 -Nmisc/usba +CERRWARN += -_gcc=-Wno-switch + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/audio/Makefile --- a/usr/src/uts/intel/audio/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/audio/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -46,6 +46,8 @@ # include $(UTSBASE)/intel/Makefile.intel +CERRWARN += -_gcc=-Wno-uninitialized + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/audio1575/Makefile --- a/usr/src/uts/intel/audio1575/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/audio1575/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -51,6 +51,8 @@ # LDFLAGS += -dy -Ndrv/audio -Nmisc/ac97 +CERRWARN += -_gcc=-Wno-switch + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/audio810/Makefile --- a/usr/src/uts/intel/audio810/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/audio810/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -52,6 +52,8 @@ # LDFLAGS += -dy -Ndrv/audio -Nmisc/ac97 +CERRWARN += -_gcc=-Wno-switch + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/audiocmi/Makefile --- a/usr/src/uts/intel/audiocmi/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/audiocmi/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -54,6 +54,8 @@ LDFLAGS += -dy -Ndrv/audio +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/audiocmihd/Makefile --- a/usr/src/uts/intel/audiocmihd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/audiocmihd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -56,6 +56,9 @@ LDFLAGS += -dy -Ndrv/audio -Nmisc/ac97 +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/audioemu10k/Makefile --- a/usr/src/uts/intel/audioemu10k/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/audioemu10k/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -60,6 +60,8 @@ LDFLAGS += -dy -Ndrv/audio -Nmisc/ac97 +CERRWARN += -_gcc=-Wno-uninitialized + $(OBJS_DIR)/%.o := CPPFLAGS += -I$(OBJS_DIR) $(OBJS_DIR)/%.ln := CPPFLAGS += -I$(OBJS_DIR) $(OBJS_DIR)/emu10k_gpr.h := ASM10KFLAGS = -v -0 -P gpr diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/audioens/Makefile --- a/usr/src/uts/intel/audioens/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/audioens/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -54,6 +54,8 @@ LDFLAGS += -dy -Ndrv/audio -Nmisc/ac97 +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/audiohd/Makefile --- a/usr/src/uts/intel/audiohd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/audiohd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -63,6 +63,10 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + LDFLAGS += -dy -Ndrv/audio # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/audioixp/Makefile --- a/usr/src/uts/intel/audioixp/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/audioixp/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -56,6 +56,8 @@ # LDFLAGS += -dy -Ndrv/audio -Nmisc/ac97 +CERRWARN += -_gcc=-Wno-unused-label + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/audiols/Makefile --- a/usr/src/uts/intel/audiols/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/audiols/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -54,6 +54,8 @@ LDFLAGS += -dy -Ndrv/audio -Nmisc/ac97 +CERRWARN += -_gcc=-Wno-switch + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/audiop16x/Makefile --- a/usr/src/uts/intel/audiop16x/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/audiop16x/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -54,6 +54,8 @@ LDFLAGS += -dy -Ndrv/audio -Nmisc/ac97 +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/audiopci/Makefile --- a/usr/src/uts/intel/audiopci/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/audiopci/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -54,6 +54,8 @@ LDFLAGS += -dy -Ndrv/audio +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/audiosolo/Makefile --- a/usr/src/uts/intel/audiosolo/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/audiosolo/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -54,6 +54,8 @@ LDFLAGS += -dy -Ndrv/audio +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/audiots/Makefile --- a/usr/src/uts/intel/audiots/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/audiots/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -55,6 +55,8 @@ # LDFLAGS += -dy -N misc/ac97 -N drv/audio +CERRWARN += -_gcc=-Wno-parentheses + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/autofs/Makefile --- a/usr/src/uts/intel/autofs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/autofs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -71,6 +71,11 @@ LINTTAGS += -erroff=E_STATIC_UNUSED LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/av1394/Makefile --- a/usr/src/uts/intel/av1394/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/av1394/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# # # Path to the base of the uts directory tree. @@ -75,6 +73,10 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-type-limits + # # depends on misc/s1394 LDFLAGS += -dy -Nmisc/s1394 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/bfe/Makefile --- a/usr/src/uts/intel/bfe/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/bfe/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -68,6 +68,9 @@ CFLAGS += $(CPPFLAGS) -xc99=%all +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # Driver depends on MAC & IP # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/bge/Makefile --- a/usr/src/uts/intel/bge/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/bge/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the Broadcom BCM57xx # Gigabit Ethernet (BGE) driver module in intel systems @@ -64,6 +64,9 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses # # Driver depends on MAC diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/blkdev/Makefile --- a/usr/src/uts/intel/blkdev/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/blkdev/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -57,6 +57,8 @@ # LDFLAGS += -dy -Nmisc/cmlb +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/blowfish/Makefile --- a/usr/src/uts/intel/blowfish/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/blowfish/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the Blowfish KEF provider. # @@ -75,6 +75,9 @@ LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/bofi/Makefile --- a/usr/src/uts/intel/bofi/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/bofi/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the bofi driver # kernel module. @@ -66,7 +66,9 @@ $(MODSTUBS_O) := AS_CPPFLAGS += -DBOFI_MODULE CLEANFILES += $(MODSTUBS_O) -CPPFLAGS += -I../../sun4 +CPPFLAGS += -I../../sun4 + +CERRWARN += -_gcc=-Wno-uninitialized # # For now, disable these lint checks; maintainers should endeavor diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/bpf/Makefile --- a/usr/src/uts/intel/bpf/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/bpf/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -70,6 +70,9 @@ # LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/bridge/Makefile --- a/usr/src/uts/intel/bridge/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/bridge/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -57,6 +57,10 @@ # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses + # # Driver depends on MAC, DLS, and DLD # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/bscbus/Makefile --- a/usr/src/uts/intel/bscbus/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/bscbus/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the bscbus driver # @@ -66,6 +66,8 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON +CERRWARN += -_gcc=-Wno-unused-value + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/bscv/Makefile --- a/usr/src/uts/intel/bscv/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/bscv/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the bscv driver # @@ -67,6 +67,9 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-value + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/busra/Makefile --- a/usr/src/uts/intel/busra/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/busra/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -25,7 +25,7 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the busra # kernel module. @@ -51,6 +51,9 @@ # include $(UTSBASE)/intel/Makefile.intel +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/c2audit/Makefile --- a/usr/src/uts/intel/c2audit/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/c2audit/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -75,6 +75,10 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-clobbered +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/cachefs/Makefile --- a/usr/src/uts/intel/cachefs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/cachefs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -73,6 +73,9 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/cardbus/Makefile --- a/usr/src/uts/intel/cardbus/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/cardbus/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # # uts/intel/cardbus/Makefile # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the cardbus kernel module. # @@ -82,6 +82,11 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-variable + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/chxge/Makefile --- a/usr/src/uts/intel/chxge/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/chxge/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the Chelsio N110 # 10G Ethernet (CH) driver module in x86 systems @@ -101,6 +101,11 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses + # # # Default build targets. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/cmdk/Makefile --- a/usr/src/uts/intel/cmdk/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/cmdk/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -66,6 +66,11 @@ # Larger than 1TB VTOC support CPPFLAGS += -D_EXTVTOC +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-type-limits + # # For now, disable these lint checks; maintainers should endeavor # to investigate and remove these for maximum lint coverage. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/cmlb/Makefile --- a/usr/src/uts/intel/cmlb/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/cmlb/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -76,6 +76,12 @@ LINTTAGS += -erroff=E_STATIC_UNUSED LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/consms/Makefile --- a/usr/src/uts/intel/consms/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/consms/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the consms driver # @@ -63,6 +63,8 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-switch + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/core_pcbe/Makefile --- a/usr/src/uts/intel/core_pcbe/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/core_pcbe/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -52,6 +52,9 @@ # include $(UTSBASE)/intel/Makefile.intel +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-variable + # # Define targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/cryptmod/Makefile --- a/usr/src/uts/intel/cryptmod/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/cryptmod/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the streams crypto kernel # module. @@ -65,6 +65,8 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/crypto/Makefile --- a/usr/src/uts/intel/crypto/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/crypto/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -56,6 +56,8 @@ LDFLAGS += -dy -Nmisc/kcf +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/cryptoadm/Makefile --- a/usr/src/uts/intel/cryptoadm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/cryptoadm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the cryptoadm driver # kernel module. @@ -65,6 +65,9 @@ # LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/ctf/Makefile --- a/usr/src/uts/intel/ctf/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/ctf/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" UTSBASE = ../.. @@ -49,6 +48,8 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: def: $(DEF_DEPS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/ctfs/Makefile --- a/usr/src/uts/intel/ctfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/ctfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the contract file system # kernel module. @@ -62,6 +62,8 @@ # LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/dadk/Makefile --- a/usr/src/uts/intel/dadk/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/dadk/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -73,6 +73,8 @@ # LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/daplt/Makefile --- a/usr/src/uts/intel/daplt/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/daplt/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -71,6 +71,11 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/dca/Makefile --- a/usr/src/uts/intel/dca/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/dca/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the DCA kCF provider. # @@ -71,6 +71,9 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/dcam1394/Makefile --- a/usr/src/uts/intel/dcam1394/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/dcam1394/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# # # Path to the base of the uts directory tree (usually /usr/src/uts). @@ -66,6 +64,9 @@ # LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # Default build targets. # .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/dcfs/Makefile --- a/usr/src/uts/intel/dcfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/dcfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -58,6 +58,9 @@ # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/dcopy/Makefile --- a/usr/src/uts/intel/dcopy/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/dcopy/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the dcopy # kernel module. @@ -50,6 +50,8 @@ # include $(UTSBASE)/intel/Makefile.intel +CERRWARN += -_gcc=-Wno-unused-label + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/des/Makefile --- a/usr/src/uts/intel/des/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/des/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the des crypto kernel module. # @@ -80,6 +80,9 @@ LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/dev/Makefile --- a/usr/src/uts/intel/dev/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/dev/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -63,6 +63,10 @@ INC_PATH += -I$(UTSBASE)/common/fs/zfs INC_PATH += -I$(UTSBASE)/common/io/bpf +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/devfs/Makefile --- a/usr/src/uts/intel/devfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/devfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # uts/intel/devfs/Makefile # This makefile drives the production of the devfs file system @@ -49,6 +49,8 @@ # include $(UTSBASE)/intel/Makefile.intel +CERRWARN += -_gcc=-Wno-parentheses + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/devinfo/Makefile --- a/usr/src/uts/intel/devinfo/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/devinfo/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the devinfo kernel # driver to support libdevinfo. @@ -60,6 +60,11 @@ CPPFLAGS += -I$(SRC)/common +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-clobbered + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/dld/Makefile --- a/usr/src/uts/intel/dld/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/dld/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -67,6 +67,10 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/dls/Makefile --- a/usr/src/uts/intel/dls/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/dls/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -65,6 +65,8 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/dmfe/Makefile --- a/usr/src/uts/intel/dmfe/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/dmfe/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -56,6 +56,8 @@ # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized + # # extra link arguments # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/dnet/Makefile --- a/usr/src/uts/intel/dnet/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/dnet/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -64,6 +64,9 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + LDFLAGS += -dy -N misc/mac # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/doorfs/Makefile --- a/usr/src/uts/intel/doorfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/doorfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the doorfs driver kernel module. # @@ -73,6 +73,9 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/dprov/Makefile --- a/usr/src/uts/intel/dprov/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/dprov/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the dummy KEF provider. # @@ -84,6 +84,10 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/drm/Makefile --- a/usr/src/uts/intel/drm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/drm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the DRM (Direct Rendering # Manager) common misc module. @@ -52,6 +52,10 @@ # include $(UTSBASE)/intel/Makefile.intel +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-variable + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/dscpmk/Makefile --- a/usr/src/uts/intel/dscpmk/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/dscpmk/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,6 @@ # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" # # This makefile creates the marker (ipp) module. # intel architecture dependent @@ -69,6 +68,8 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/dtrace/Makefile --- a/usr/src/uts/intel/dtrace/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/dtrace/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" UTSBASE = ../.. @@ -46,6 +45,10 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-uninitialized + ALL_TARGET = $(BINARY) $(SRC_CONFILE) LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/e1000g/Makefile --- a/usr/src/uts/intel/e1000g/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/e1000g/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -58,6 +58,12 @@ CFLAGS += $(CFLAGS_CPP_COMMENTS) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-variable + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/ecc/Makefile --- a/usr/src/uts/intel/ecc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/ecc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -69,6 +69,14 @@ LINTFLAGS += -I$(COM1_DIR) -I$(COM2_DIR) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-empty-body +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/ecpp/Makefile --- a/usr/src/uts/intel/ecpp/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/ecpp/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This Makefile drives the production of ecpp # kernel module. @@ -67,6 +67,10 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/efe/Makefile --- a/usr/src/uts/intel/efe/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/efe/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -40,6 +40,8 @@ CFLAGS += $(CCVERBOSE) LDFLAGS += -dy -N misc/mac -N misc/mii +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/ehci/Makefile --- a/usr/src/uts/intel/ehci/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/ehci/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -48,6 +48,9 @@ # include $(UTSBASE)/intel/Makefile.intel +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch + # # depends on misc/usba # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/eibnx/Makefile --- a/usr/src/uts/intel/eibnx/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/eibnx/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -77,6 +77,9 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/elfexec/Makefile --- a/usr/src/uts/intel/elfexec/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/elfexec/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the elfexec exec kernel # module. @@ -69,6 +69,9 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/elxl/Makefile --- a/usr/src/uts/intel/elxl/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/elxl/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -60,6 +60,9 @@ # Lint flag # +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # # Default build targets. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/emlxs/Makefile --- a/usr/src/uts/intel/emlxs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/emlxs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -91,6 +91,10 @@ LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON LINTTAGS += -erroff=E_INCONS_VAL_TYPE_DECL2 +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/emul64/Makefile --- a/usr/src/uts/intel/emul64/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/emul64/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -67,6 +67,9 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + # # Depends on scsi # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/eoib/Makefile --- a/usr/src/uts/intel/eoib/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/eoib/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -66,6 +66,9 @@ # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # Depends on misc/ibtl # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/fasttrap/Makefile --- a/usr/src/uts/intel/fasttrap/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/fasttrap/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# UTSBASE = ../.. @@ -45,6 +43,8 @@ CPPFLAGS += -I$(SRC)/common LDFLAGS += -dy -Ndrv/dtrace +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: def: $(DEF_DEPS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/fcip/Makefile --- a/usr/src/uts/intel/fcip/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/fcip/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -71,6 +71,9 @@ LINTTAGS += -erroff=E_INCONS_ARG_USED2 LINTTAGS += -erroff=E_INCONS_VAL_TYPE_USED2 +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-type-limits + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/fcoe/Makefile --- a/usr/src/uts/intel/fcoe/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/fcoe/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -58,6 +58,8 @@ LDFLAGS += -dy -Nmisc/mac INC_PATH += -I$(UTSBASE)/common/io/fcoe +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/fcp/Makefile --- a/usr/src/uts/intel/fcp/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/fcp/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -65,6 +65,11 @@ LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/fcsm/Makefile --- a/usr/src/uts/intel/fcsm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/fcsm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -70,6 +70,9 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/fct/Makefile --- a/usr/src/uts/intel/fct/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/fct/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -71,6 +71,10 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_IF_ELSE_ANNOTATION +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/fctl/Makefile --- a/usr/src/uts/intel/fctl/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/fctl/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -68,6 +68,8 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/fd/Makefile --- a/usr/src/uts/intel/fd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/fd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the floppy driver # @@ -70,6 +70,8 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/fdc/Makefile --- a/usr/src/uts/intel/fdc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/fdc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the floppy controller dirver # @@ -69,6 +69,8 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/fifofs/Makefile --- a/usr/src/uts/intel/fifofs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/fifofs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the fifofs file system # kernel module. @@ -72,6 +72,8 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/flowacct/Makefile --- a/usr/src/uts/intel/flowacct/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/flowacct/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,6 @@ # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" # # This makefile creates the flowacct accounting (ipp) module. # intel architecture dependent @@ -67,6 +66,8 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/fp/Makefile --- a/usr/src/uts/intel/fp/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/fp/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -76,6 +76,9 @@ LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-function + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/fssnap/Makefile --- a/usr/src/uts/intel/fssnap/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/fssnap/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,6 @@ # # intel architecture dependent # -#ident "%Z%%M% %I% %E% SMI" # # Path to the base of the uts directory tree (usually /usr/src/uts). @@ -64,6 +63,8 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/gen_drv/Makefile --- a/usr/src/uts/intel/gen_drv/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/gen_drv/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the gen_drv kernel # driver to testing hotplugging operations @@ -62,6 +62,8 @@ # LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-unused-variable + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/genunix/Makefile --- a/usr/src/uts/intel/genunix/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/genunix/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -98,6 +98,17 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-clobbered +CERRWARN += -_gcc=-Wno-empty-body + # # Ensure that lint sees 'struct cpu' containing a fully declared # embedded 'struct machcpu' diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/gld/Makefile --- a/usr/src/uts/intel/gld/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/gld/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the gld driver # kernel module. @@ -66,6 +66,9 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/hci1394/Makefile --- a/usr/src/uts/intel/hci1394/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/hci1394/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the hci1394 OHCI HAL module. # @@ -83,6 +83,9 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/hermon/Makefile --- a/usr/src/uts/intel/hermon/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/hermon/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -75,6 +75,12 @@ # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/hid/Makefile --- a/usr/src/uts/intel/hid/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/hid/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -73,6 +73,8 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/hidparser/Makefile --- a/usr/src/uts/intel/hidparser/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/hidparser/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -46,6 +46,8 @@ # include $(UTSBASE)/intel/Makefile.intel +CERRWARN += -_gcc=-Wno-uninitialized + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/hme/Makefile --- a/usr/src/uts/intel/hme/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/hme/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -59,6 +59,10 @@ CFLAGS += $(CCVERBOSE) LDFLAGS += -dy -Nmisc/mii -Nmisc/mac +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/hook/Makefile --- a/usr/src/uts/intel/hook/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/hook/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the hook driver kernel module. # @@ -50,6 +50,8 @@ # include $(UTSBASE)/intel/Makefile.intel +CERRWARN += -_gcc=-Wno-uninitialized + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/hpcsvc/Makefile --- a/usr/src/uts/intel/hpcsvc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/hpcsvc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the hpcsvc "misc" # kernel module. @@ -63,6 +63,8 @@ DEBUG_FLGS = DEBUG_DEFS += $(DEBUG_FLGS) +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/hsfs/Makefile --- a/usr/src/uts/intel/hsfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/hsfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -73,6 +73,12 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-switch + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/hwahc/Makefile --- a/usr/src/uts/intel/hwahc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/hwahc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -48,6 +48,9 @@ # include $(UTSBASE)/intel/Makefile.intel +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/hxge/Makefile --- a/usr/src/uts/intel/hxge/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/hxge/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -81,6 +81,12 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_FALSE_LOGICAL_EXPR + +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + # # Driver depends on mac & IP # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/i8042/Makefile --- a/usr/src/uts/intel/i8042/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/i8042/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -19,11 +19,10 @@ # CDDL HEADER END # # -# uts/intel/i8042/%M% # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the i8042 nexus driver # @@ -63,6 +62,8 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-unused-function + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/i915/Makefile --- a/usr/src/uts/intel/i915/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/i915/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # uts/intel/drm/Makefile # @@ -57,6 +57,8 @@ # include $(UTSBASE)/intel/Makefile.intel +CERRWARN += -_gcc=-Wno-unused-label + # # Re-define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/ib/Makefile --- a/usr/src/uts/intel/ib/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/ib/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,9 +22,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# -# + # # This makefile drives the production of the ibnex driver # @@ -64,6 +62,8 @@ # Overrides. # +CERRWARN += -_gcc=-Wno-uninitialized + # # lint pass one enforcement # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/ibcm/Makefile --- a/usr/src/uts/intel/ibcm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/ibcm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -28,8 +28,6 @@ # module. SPARC architecture dependent # -#ident "%Z%%M% %I% %E% SMI" - # # Path to the base of the uts directory tree (usually /usr/src/uts). # @@ -67,6 +65,14 @@ # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-value + # # depends on misc/ibtl and misc/ibmf # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/ibdm/Makefile --- a/usr/src/uts/intel/ibdm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/ibdm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,9 +22,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# -# + # This makefile drives the production of the ibdm kernel module. # # intel architecture dependent @@ -79,6 +77,8 @@ LINTTAGS += -erroff=E_STATIC_UNUSED LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/ibmf/Makefile --- a/usr/src/uts/intel/ibmf/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/ibmf/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# + # This makefile drives the production of the ibmf kernel module. # # intel architecture dependent @@ -76,6 +75,8 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/ibp/Makefile --- a/usr/src/uts/intel/ibp/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/ibp/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -61,6 +61,9 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/ibtl/Makefile --- a/usr/src/uts/intel/ibtl/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/ibtl/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the ibtl kernel module. # @@ -77,6 +77,12 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-value + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/idm/Makefile --- a/usr/src/uts/intel/idm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/idm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -62,6 +62,10 @@ DEBUG_DEFS += $(DEBUG_FLGS) LDFLAGS += -dy -Nfs/sockfs -Nmisc/ksocket +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # Include INC_PATH += -I$(SRC)/common/hdcrc diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/idmap/Makefile --- a/usr/src/uts/intel/idmap/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/idmap/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -60,6 +60,8 @@ # LINTTAGS += -erroff=E_FUNC_VAR_UNUSED -erroff=E_CONSTANT_CONDITION +CERRWARN += -_gcc=-Wno-unused-variable + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/igb/Makefile --- a/usr/src/uts/intel/igb/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/igb/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -49,6 +49,9 @@ # include $(UTSBASE)/intel/Makefile.intel +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/ii/Makefile --- a/usr/src/uts/intel/ii/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/ii/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -62,11 +62,14 @@ # # lint pass one enforcement # -CFLAGS += -v +CFLAGS += $(CCVERBOSE) LDFLAGS += -dy -N"drv/nsctl" -N"drv/nskern" -N"misc/spuni" LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: def: $(DEF_DEPS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/inst_sync/Makefile --- a/usr/src/uts/intel/inst_sync/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/inst_sync/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -25,7 +25,7 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the inst_sync system call module. # @@ -57,6 +57,8 @@ LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/intel_nb5000/Makefile --- a/usr/src/uts/intel/intel_nb5000/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/intel_nb5000/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -75,6 +75,9 @@ # LDFLAGS += -dy -N drv/smbios +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/intel_nhm/Makefile --- a/usr/src/uts/intel/intel_nhm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/intel_nhm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -70,8 +70,10 @@ LINT_TARGET = $(LINT_MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) -CPPFLAGS += -I$(UTSBASE)/i86pc -LDFLAGS += -dy -N drv/smbios +CPPFLAGS += -I$(UTSBASE)/i86pc +LDFLAGS += -dy -N drv/smbios + +CERRWARN += -_gcc=-Wno-uninitialized # # Default build targets. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/intpexec/Makefile --- a/usr/src/uts/intel/intpexec/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/intpexec/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -25,7 +25,7 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the intpexec (interpreter) # exec kernel module. @@ -51,6 +51,8 @@ # include $(UTSBASE)/intel/Makefile.intel +CERRWARN += -_gcc=-Wno-parentheses + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/ip/Makefile --- a/usr/src/uts/intel/ip/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/ip/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -59,6 +59,15 @@ CINLINEFLAGS = -xinline=tcp_set_ws_value CFLAGS += $(CINLINEFLAGS) + +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-type-limits + # # To get the BPF header files included by ipnet.h # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/ipc/Makefile --- a/usr/src/uts/intel/ipc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/ipc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the ipc `user' kernel module. # @@ -63,6 +63,9 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/ipf/Makefile --- a/usr/src/uts/intel/ipf/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/ipf/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -72,6 +72,12 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-empty-body + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/ipgpc/Makefile --- a/usr/src/uts/intel/ipgpc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/ipgpc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,6 @@ # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" # # This makefile drives the production of the IP generic packet classifier # ipp kernel module. @@ -71,6 +70,8 @@ LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/iprb/Makefile --- a/usr/src/uts/intel/iprb/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/iprb/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -54,6 +54,8 @@ # Overrides # +CERRWARN += -_gcc=-Wno-switch + # # Driver depends on GLD # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/ipsecah/Makefile --- a/usr/src/uts/intel/ipsecah/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/ipsecah/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the ipsecah driver # kernel module. @@ -73,6 +73,9 @@ LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/ipsecesp/Makefile --- a/usr/src/uts/intel/ipsecesp/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/ipsecesp/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the ipsecesp driver # kernel module. @@ -72,6 +72,8 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/iptun/Makefile --- a/usr/src/uts/intel/iptun/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/iptun/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -59,6 +59,10 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/ipw/Makefile --- a/usr/src/uts/intel/ipw/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/ipw/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" - # # This makefile drives the production of the ipw driver kernel module. # @@ -49,6 +47,11 @@ # include $(UTSBASE)/intel/Makefile.intel +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Define targets # @@ -69,7 +72,7 @@ all: $(ALL_DEPS) clean: $(CLEAN_DEPS) - + clobber: $(CLOBBER_DEPS) lint: $(LINT_DEPS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/iscsi/Makefile --- a/usr/src/uts/intel/iscsi/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/iscsi/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -68,6 +68,12 @@ LINTFLAGS += -a -erroff=E_BAD_PTR_CAST_ALIGN -erroff=E_PTRDIFF_OVERFLOW LINTFLAGS64 += -a -erroff=E_BAD_PTR_CAST_ALIGN -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/iscsit/Makefile --- a/usr/src/uts/intel/iscsit/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/iscsit/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -63,6 +63,10 @@ C99MODE= -xc99=%all C99LMODE= -Xc99=%all +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-label + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/iser/Makefile --- a/usr/src/uts/intel/iser/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/iser/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -43,6 +43,8 @@ # include $(UTSBASE)/intel/Makefile.intel +CERRWARN += -_gcc=-Wno-uninitialized + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/iwh/Makefile --- a/usr/src/uts/intel/iwh/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/iwh/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -59,6 +59,9 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + CPPFLAGS += -I. -D_KERNEL LDFLAGS += -dy -Nmisc/mac -Nmisc/net80211 -Ndrv/random -Ndrv/ip diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/iwk/Makefile --- a/usr/src/uts/intel/iwk/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/iwk/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,6 @@ # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" # # This makefile drives the production of the iwk driver kernel module. # @@ -64,6 +63,9 @@ LDFLAGS += -dy -Nmisc/mac -Nmisc/net80211 -Ndrv/random -Ndrv/ip +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/iwp/Makefile --- a/usr/src/uts/intel/iwp/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/iwp/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -63,6 +63,9 @@ LDFLAGS += -dy -Nmisc/mac -Nmisc/net80211 -Ndrv/random -Ndrv/ip +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/ixgbe/Makefile --- a/usr/src/uts/intel/ixgbe/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/ixgbe/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -49,6 +49,10 @@ # include $(UTSBASE)/intel/Makefile.intel +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/javaexec/Makefile --- a/usr/src/uts/intel/javaexec/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/javaexec/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -25,7 +25,7 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the javaexec kernel module # @@ -50,6 +50,8 @@ # include $(UTSBASE)/intel/Makefile.intel +CERRWARN += -_gcc=-Wno-parentheses + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/kaio/Makefile --- a/usr/src/uts/intel/kaio/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/kaio/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the kaio driver kernel module. # @@ -71,6 +71,10 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/kbtrans/Makefile --- a/usr/src/uts/intel/kbtrans/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/kbtrans/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the kbtrans kernel module. # @@ -63,6 +63,9 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-empty-body +CERRWARN += -_gcc=-Wno-unused-braces + .KEEP_STATE: def: $(DEF_DEPS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/kcf/Makefile --- a/usr/src/uts/intel/kcf/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/kcf/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -69,6 +69,11 @@ LINTTAGS += -I$(COM_DIR) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/keysock/Makefile --- a/usr/src/uts/intel/keysock/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/keysock/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the keysock driver # kernel module. @@ -73,6 +73,8 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-unused-variable + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/kgssapi/Makefile --- a/usr/src/uts/intel/kgssapi/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/kgssapi/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -67,6 +67,9 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/kiconv_ko/Makefile --- a/usr/src/uts/intel/kiconv_ko/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/kiconv_ko/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the kiconv_ko # kernel module. @@ -69,6 +69,8 @@ # LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/kmech_dummy/Makefile --- a/usr/src/uts/intel/kmech_dummy/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/kmech_dummy/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -48,6 +48,8 @@ # include $(UTSBASE)/intel/Makefile.intel +CERRWARN += -_gcc=-Wno-parentheses + # # Define dependency on kgssapi # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/kmech_krb5/Makefile --- a/usr/src/uts/intel/kmech_krb5/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/kmech_krb5/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -68,6 +68,11 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/kssl/Makefile --- a/usr/src/uts/intel/kssl/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/kssl/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the kernel SSL driver # kernel module. @@ -68,6 +68,8 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/ksslf/Makefile --- a/usr/src/uts/intel/ksslf/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/ksslf/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -67,6 +67,9 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/kstat/Makefile --- a/usr/src/uts/intel/kstat/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/kstat/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # kernel statistics driver makefile. # @@ -64,6 +64,8 @@ # LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/ksyms/Makefile --- a/usr/src/uts/intel/ksyms/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/ksyms/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -25,7 +25,7 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # ksyms (kernel symbols) driver makefile. # @@ -51,6 +51,8 @@ # include $(UTSBASE)/intel/Makefile.intel +CERRWARN += -_gcc=-Wno-parentheses + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/ldterm/Makefile --- a/usr/src/uts/intel/ldterm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/ldterm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the ldterm streams kernel # module. @@ -66,6 +66,9 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/llc1/Makefile --- a/usr/src/uts/intel/llc1/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/llc1/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the Sound-Blaster driver # kernel module. @@ -66,6 +66,8 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/lofi/Makefile --- a/usr/src/uts/intel/lofi/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/lofi/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -47,7 +47,9 @@ # # Overrides. # -INC_PATH += -I$(SRC)/common/lzma +INC_PATH += -I$(SRC)/common/lzma + +CERRWARN += -_gcc=-Wno-uninitialized # # Define targets diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/lofs/Makefile --- a/usr/src/uts/intel/lofs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/lofs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -25,7 +25,7 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the lofs file system # kernel module. @@ -51,6 +51,8 @@ # include $(UTSBASE)/intel/Makefile.intel +CERRWARN += -_gcc=-Wno-parentheses + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/mac/Makefile --- a/usr/src/uts/intel/mac/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/mac/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -61,6 +61,13 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-variable + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/mac_wifi/Makefile --- a/usr/src/uts/intel/mac_wifi/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/mac_wifi/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -44,6 +44,8 @@ # include $(UTSBASE)/intel/Makefile.intel +CERRWARN += -_gcc=-Wno-switch + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/mc-amd/Makefile --- a/usr/src/uts/intel/mc-amd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/mc-amd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -61,6 +61,9 @@ CLEANFILES += $(MCAMD_OFF_H) CLOBBERFILES += $(MCAMD_OFF_H) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/md/Makefile --- a/usr/src/uts/intel/md/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/md/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -63,6 +63,12 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/md_hotspares/Makefile --- a/usr/src/uts/intel/md_hotspares/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/md_hotspares/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -48,6 +48,8 @@ # include $(UTSBASE)/intel/Makefile.intel +CERRWARN += -_gcc=-Wno-uninitialized + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/md_mirror/Makefile --- a/usr/src/uts/intel/md_mirror/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/md_mirror/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -70,6 +70,9 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/md_notify/Makefile --- a/usr/src/uts/intel/md_notify/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/md_notify/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -48,6 +48,8 @@ # include $(UTSBASE)/intel/Makefile.intel +CERRWARN += -_gcc=-Wno-uninitialized + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/md_raid/Makefile --- a/usr/src/uts/intel/md_raid/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/md_raid/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -66,6 +66,9 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Depends on md # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/md_sp/Makefile --- a/usr/src/uts/intel/md_sp/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/md_sp/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -63,6 +63,10 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Depends on md # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/md_stripe/Makefile --- a/usr/src/uts/intel/md_stripe/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/md_stripe/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -66,6 +66,10 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses + # # Depends on md # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/md_trans/Makefile --- a/usr/src/uts/intel/md_trans/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/md_trans/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -62,6 +62,9 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses + # # Depends on md & ufs # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/mega_sas/Makefile --- a/usr/src/uts/intel/mega_sas/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/mega_sas/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -21,7 +21,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # uts/intel/mega_sas/Makefile # @@ -61,6 +61,8 @@ # LDFLAGS += -dy -Nmisc/scsi +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/mii/Makefile --- a/usr/src/uts/intel/mii/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/mii/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -57,6 +57,9 @@ LDFLAGS += -dy -N misc/mac +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/mm/Makefile --- a/usr/src/uts/intel/mm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/mm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the mm driver # @@ -67,6 +67,9 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-clobbered + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/mntfs/Makefile --- a/usr/src/uts/intel/mntfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/mntfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the mntfs file system # kernel module. @@ -70,6 +70,8 @@ # LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/mouse8042/Makefile --- a/usr/src/uts/intel/mouse8042/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/mouse8042/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -19,11 +19,10 @@ # CDDL HEADER END # # -# uts/intel/mouse8042/%M% # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the mouse8042 driver # @@ -64,6 +63,9 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/mpt_sas/Makefile --- a/usr/src/uts/intel/mpt_sas/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/mpt_sas/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -60,6 +60,11 @@ # include $(UTSBASE)/intel/Makefile.intel +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-switch + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/mr_sas/Makefile --- a/usr/src/uts/intel/mr_sas/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/mr_sas/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -59,6 +59,10 @@ # LDFLAGS += -dy -Nmisc/scsi +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/msgsys/Makefile --- a/usr/src/uts/intel/msgsys/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/msgsys/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the msgsys driver kernel module. # @@ -66,6 +66,9 @@ # LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/mwl/Makefile --- a/usr/src/uts/intel/mwl/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/mwl/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -64,6 +64,9 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-value + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/mxfe/Makefile --- a/usr/src/uts/intel/mxfe/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/mxfe/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the Macronix # Fast Ethernet (MXFE) driver module in intel systems @@ -57,6 +57,8 @@ # Overrides # +CERRWARN += -_gcc=-Wno-switch + # # Driver depends on GLDv3 # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/namefs/Makefile --- a/usr/src/uts/intel/namefs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/namefs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -25,7 +25,7 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the namefs file system # kernel module. @@ -51,6 +51,8 @@ # include $(UTSBASE)/intel/Makefile.intel +CERRWARN += -_gcc=-Wno-parentheses + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/net80211/Makefile --- a/usr/src/uts/intel/net80211/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/net80211/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,8 +24,6 @@ # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" - # # This file makes the atheros driver for an intel system # @@ -67,6 +65,10 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/nfs/Makefile --- a/usr/src/uts/intel/nfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/nfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -81,6 +81,15 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-empty-body + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/nfs_dlboot/Makefile --- a/usr/src/uts/intel/nfs_dlboot/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/nfs_dlboot/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the dlboot_proto # kernel module. @@ -73,6 +73,8 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/nfssrv/Makefile --- a/usr/src/uts/intel/nfssrv/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/nfssrv/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the nfs server-specific # kernel module. @@ -74,6 +74,14 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/nge/Makefile --- a/usr/src/uts/intel/nge/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/nge/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -71,6 +71,9 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/nsctl/Makefile --- a/usr/src/uts/intel/nsctl/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/nsctl/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -63,11 +63,13 @@ # # lint pass one enforcement # -CFLAGS += -v +CFLAGS += $(CCVERBOSE) LDFLAGS += -dy -N"drv/nskern" -N"drv/ncall" -N"misc/spuni" LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-parentheses + .KEEP_STATE: def: $(DEF_DEPS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/ntxn/Makefile --- a/usr/src/uts/intel/ntxn/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/ntxn/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -69,6 +69,10 @@ LINTFLAGS += $(NTXN_DFLAGS) $(NTXN_KFLAGS) LINTFLAGS += -DSOLARIS11 +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-type-limits + # # # Default build targets. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/nv_sata/Makefile --- a/usr/src/uts/intel/nv_sata/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/nv_sata/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -76,6 +76,8 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/nxge/Makefile --- a/usr/src/uts/intel/nxge/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/nxge/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -85,6 +85,13 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_FALSE_LOGICAL_EXPR + +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-type-limits + # # Driver depends on mac & IP # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/objfs/Makefile --- a/usr/src/uts/intel/objfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/objfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the object file system # kernel module. @@ -68,6 +68,10 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/oce/Makefile --- a/usr/src/uts/intel/oce/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/oce/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -56,6 +56,11 @@ LDFLAGS += -dy -Nmisc/mac +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/ohci/Makefile --- a/usr/src/uts/intel/ohci/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/ohci/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -67,6 +67,8 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/openeepr/Makefile --- a/usr/src/uts/intel/openeepr/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/openeepr/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the openeepr driver # @@ -66,6 +66,9 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/p123_pcbe/Makefile --- a/usr/src/uts/intel/p123_pcbe/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/p123_pcbe/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This Makefile builds the Pentium 1, 2, and 3 Performance Counter BackEnd (PCBE) # @@ -60,6 +60,9 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-unused-function + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/p4_pcbe/Makefile --- a/usr/src/uts/intel/p4_pcbe/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/p4_pcbe/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This Makefile builds the Pentium 4 Performance Counter BackEnd (PCBE). # @@ -59,6 +59,8 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-uninitialized # # Default build targets. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/pcan/Makefile --- a/usr/src/uts/intel/pcan/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/pcan/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the pcan driver kernel module. # @@ -66,13 +66,17 @@ # # lint pass one enforcement # -CFLAGS += -v +CFLAGS += $(CCVERBOSE) # # STREAMS API limitations force us to turn off these lint checks. # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-switch + # # dependency # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/pcata/Makefile --- a/usr/src/uts/intel/pcata/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/pcata/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the pcata driver kernel module. # @@ -71,6 +71,9 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/pcfs/Makefile --- a/usr/src/uts/intel/pcfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/pcfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the DOS file system # kernel module. @@ -62,6 +62,12 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-function + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/pci_autoconfig/Makefile --- a/usr/src/uts/intel/pci_autoconfig/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/pci_autoconfig/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -68,6 +68,8 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/pcic/Makefile --- a/usr/src/uts/intel/pcic/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/pcic/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,6 @@ # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" # # This makefile drives the PCIC style PCMCIA adapter # It is mostly a standard driver @@ -74,6 +73,11 @@ LINTTAGS += -erroff=E_STATIC_UNUSED LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/pcicfg/Makefile --- a/usr/src/uts/intel/pcicfg/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/pcicfg/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -77,6 +77,9 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/pcieb/Makefile --- a/usr/src/uts/intel/pcieb/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/pcieb/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -75,6 +75,8 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-unused-value + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/pckt/Makefile --- a/usr/src/uts/intel/pckt/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/pckt/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the pckt streams kernel # module. @@ -65,6 +65,8 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/pcmcia/Makefile --- a/usr/src/uts/intel/pcmcia/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/pcmcia/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This file makes the pcmcia nexus for an intel system # @@ -80,6 +80,9 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/pcn/Makefile --- a/usr/src/uts/intel/pcn/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/pcn/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -56,6 +56,8 @@ # Overrides # +CERRWARN += -_gcc=-Wno-parentheses + # # Driver depends on GLD # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/pcwl/Makefile --- a/usr/src/uts/intel/pcwl/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/pcwl/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the pcwl driver kernel module. # @@ -66,13 +66,18 @@ # # lint pass one enforcement # -CFLAGS += -v +CFLAGS += $(CCVERBOSE) # # STREAMS API limitations force us to turn off these lint checks. # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # dependency # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/pipe/Makefile --- a/usr/src/uts/intel/pipe/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/pipe/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -49,6 +49,8 @@ # include $(UTSBASE)/intel/Makefile.intel +CERRWARN += -_gcc=-Wno-parentheses + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/pm/Makefile --- a/usr/src/uts/intel/pm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/pm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the pm driver # @@ -65,6 +65,9 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/pmcs/Makefile --- a/usr/src/uts/intel/pmcs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/pmcs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -69,6 +69,12 @@ -DPMCS_FIRMWARE_VERSION=${PMCS_FW_VERSION} \ -DPMCS_FIRMWARE_VERSION_STRING=\"${PMCS_FW_VERSION_STRING}\" +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/poll/Makefile --- a/usr/src/uts/intel/poll/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/poll/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,11 +20,10 @@ # CDDL HEADER END # # -# uts/intel/devpoll/Makefile # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the /dev/poll driver # @@ -50,6 +49,8 @@ # include $(UTSBASE)/intel/Makefile.intel +CERRWARN += -_gcc=-Wno-uninitialized + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/portfs/Makefile --- a/usr/src/uts/intel/portfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/portfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the portfs driver kernel module. # @@ -72,6 +72,9 @@ # LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/power/Makefile --- a/usr/src/uts/intel/power/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/power/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the power driver # @@ -77,6 +77,8 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-unused-variable + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/pppt/Makefile --- a/usr/src/uts/intel/pppt/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/pppt/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -63,6 +63,9 @@ C99MODE= -xc99=%all C99LMODE= -Xc99=%all +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/procfs/Makefile --- a/usr/src/uts/intel/procfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/procfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the procfs file system # kernel module. @@ -73,6 +73,9 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/pshot/Makefile --- a/usr/src/uts/intel/pshot/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/pshot/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the pshot kernel # driver to testing hotplugging operations @@ -63,6 +63,9 @@ # LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/ptem/Makefile --- a/usr/src/uts/intel/ptem/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/ptem/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the ptem streams kernel # module. @@ -65,6 +65,9 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/ptsl/Makefile --- a/usr/src/uts/intel/ptsl/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/ptsl/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -64,6 +64,8 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-parentheses + # # Depends on ptc # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/qlc/Makefile --- a/usr/src/uts/intel/qlc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/qlc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -78,6 +78,10 @@ FWMODULES = $(FWIMAGES:%=$(MODULE)_fw_%) FWMODULES_SRC = $(FWIMAGES:%=$(SRC)/uts/common/io/fibre-channel/fca/qlc/ql_fw_%.c) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/qlge/Makefile --- a/usr/src/uts/intel/qlge/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/qlge/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -64,6 +64,9 @@ C99MODE= -xc99=%all C99LMODE= -Xc99=%all +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/qlt/Makefile --- a/usr/src/uts/intel/qlt/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/qlt/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -71,6 +71,8 @@ LINTTAGS += -erroff=E_STATIC_UNUSED LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/rdc/Makefile --- a/usr/src/uts/intel/rdc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/rdc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -62,7 +62,7 @@ # # lint pass one enforcement # -CFLAGS += -v -D_SD_8K_BLKSIZE -D_SYSCALL32 +CFLAGS += $(CCVERBOSE) -D_SD_8K_BLKSIZE -D_SYSCALL32 LINT_DEFS += -D_SYSCALL32 LINTTAGS += -erroff=E_FUNC_RET_MAYBE_IGNORED2 LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN @@ -70,6 +70,12 @@ LDFLAGS += -dy -N"drv/nsctl" -N"drv/nskern" -N"drv/ncall" -N"misc/spuni" \ -N"misc/rdcsrv" -N"strmod/rpcmod" +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + + .KEEP_STATE: def: $(DEF_DEPS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/rdcsrv/Makefile --- a/usr/src/uts/intel/rdcsrv/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/rdcsrv/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -62,9 +62,12 @@ # # lint pass one enforcement # -CFLAGS += -v -D_SD_8K_BLKSIZE -D_SYSCALL32 -LINT_DEFS += -D_SD_8K_BLKSIZE -D_SYSCALL32 -LDFLAGS += -dy -N"strmod/rpcmod" -N"misc/rdcstub" +CFLAGS += $(CCVERBOSE) -D_SD_8K_BLKSIZE -D_SYSCALL32 +LINT_DEFS += -D_SD_8K_BLKSIZE -D_SYSCALL32 +LDFLAGS += -dy -N"strmod/rpcmod" -N"misc/rdcstub" + +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-variable .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/rds/Makefile --- a/usr/src/uts/intel/rds/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/rds/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,9 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# -# # # Path to the base of the uts directory tree (usually /usr/src/uts). @@ -45,6 +42,8 @@ # include $(UTSBASE)/intel/Makefile.intel +CERRWARN += -_gcc=-Wno-uninitialized + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/rdsib/Makefile --- a/usr/src/uts/intel/rdsib/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/rdsib/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,9 +22,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# -# # # Path to the base of the uts directory tree (usually /usr/src/uts). @@ -45,6 +42,9 @@ # include $(UTSBASE)/intel/Makefile.intel +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/rdsv3/Makefile --- a/usr/src/uts/intel/rdsv3/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/rdsv3/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -59,6 +59,12 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_FUNC_SET_NOT_USED +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/rge/Makefile --- a/usr/src/uts/intel/rge/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/rge/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -68,6 +68,9 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/rlmod/Makefile --- a/usr/src/uts/intel/rlmod/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/rlmod/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the rlmod streams kernel # module. @@ -65,6 +65,9 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/rpcib/Makefile --- a/usr/src/uts/intel/rpcib/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/rpcib/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the kernel # rpcib module. @@ -73,6 +73,10 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/rpcmod/Makefile --- a/usr/src/uts/intel/rpcmod/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/rpcmod/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the rpcmod streams kernel # module. @@ -82,6 +82,13 @@ LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-function + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/rpcsec/Makefile --- a/usr/src/uts/intel/rpcsec/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/rpcsec/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -68,6 +68,9 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/rpcsec_gss/Makefile --- a/usr/src/uts/intel/rpcsec_gss/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/rpcsec_gss/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -68,6 +68,8 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/rsa/Makefile --- a/usr/src/uts/intel/rsa/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/rsa/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -74,6 +74,9 @@ LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/rsm/Makefile --- a/usr/src/uts/intel/rsm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/rsm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the rsm kernel agent @@ -78,6 +78,9 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/rtls/Makefile --- a/usr/src/uts/intel/rtls/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/rtls/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -56,6 +56,8 @@ # Overrides # +CERRWARN += -_gcc=-Wno-uninitialized + # # Driver depends on Mac # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/rtw/Makefile --- a/usr/src/uts/intel/rtw/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/rtw/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the realtek 8180 # wifi(rtw) driver module in intel systems @@ -58,6 +58,10 @@ # LDFLAGS += -dy -Nmisc/mac -Nmisc/net80211 +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-switch + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/rwn/Makefile --- a/usr/src/uts/intel/rwn/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/rwn/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -64,6 +64,10 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-value + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/s1394/Makefile --- a/usr/src/uts/intel/s1394/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/s1394/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the s1394 kernel module. # @@ -81,6 +81,11 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/sad/Makefile --- a/usr/src/uts/intel/sad/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/sad/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the sad driver # @@ -70,6 +70,9 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/sata/Makefile --- a/usr/src/uts/intel/sata/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/sata/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# # # uts/intel/io/sata/Makefile @@ -88,6 +86,13 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-empty-body + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/sbp2/Makefile --- a/usr/src/uts/intel/sbp2/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/sbp2/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,8 +24,6 @@ # # uts/intel/sbp2/Makefile -#ident "%Z%%M% %I% %E% SMI" - # # This makefile drives the production of the sbp2 kernel module. # @@ -67,6 +65,8 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-unused-function + .KEEP_STATE: def: $(DEF_DEPS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/scsa1394/Makefile --- a/usr/src/uts/intel/scsa1394/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/scsa1394/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# # # Path to the base of the uts directory tree. @@ -67,6 +65,9 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # Default build targets. # .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/scsa2usb/Makefile --- a/usr/src/uts/intel/scsa2usb/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/scsa2usb/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -75,6 +75,9 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/scsi/Makefile --- a/usr/src/uts/intel/scsi/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/scsi/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the scsi kernel module. # @@ -74,6 +74,10 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/scsi_vhci/Makefile --- a/usr/src/uts/intel/scsi_vhci/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/scsi_vhci/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -25,8 +25,6 @@ # # -#pragma ident "%Z%%M% %I% %E% SMI" -# # This makefile drives the production of SCSI vHCI Driver # intel architecture dependent # @@ -50,6 +48,10 @@ # include $(UTSBASE)/intel/Makefile.intel +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-label + # # Define targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/sd/Makefile --- a/usr/src/uts/intel/sd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/sd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -77,6 +77,13 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-uninitialized + # # Depends on scsi and cmlb # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/sdbc/Makefile --- a/usr/src/uts/intel/sdbc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/sdbc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -70,11 +70,15 @@ # # lint pass one enforcement # -CFLAGS += -v -D_SD_8K_BLKSIZE -D_SDBC_SINGLE_BRD +CFLAGS += $(CCVERBOSE) -D_SD_8K_BLKSIZE -D_SDBC_SINGLE_BRD LDFLAGS += -dy -N"drv/nsctl" -N"drv/ncall" -N"drv/nskern" -N"misc/spuni" LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-label + .KEEP_STATE: def: $(DEF_DEPS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/semsys/Makefile --- a/usr/src/uts/intel/semsys/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/semsys/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the semsys driver kernel module. # @@ -69,6 +69,9 @@ # LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/sfe/Makefile --- a/usr/src/uts/intel/sfe/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/sfe/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of NS/SiS # Fast Ethernet (SFE) driver module in intel systems @@ -73,6 +73,11 @@ CFLAGS += $(CPPFLAGS) -xc99=%all +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Driver depends on MAC & IP # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/sgen/Makefile --- a/usr/src/uts/intel/sgen/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/sgen/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -25,8 +25,6 @@ # # -#ident "%Z%%M% %I% %E% SMI" -# # This makefile drives the production of the sgen driver. # intel architecture dependent # @@ -70,6 +68,9 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/sha2/Makefile --- a/usr/src/uts/intel/sha2/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/sha2/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -71,6 +71,9 @@ CFLAGS += -I$(COMDIR) LINTFLAGS += -I$(COMDIR) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/sharefs/Makefile --- a/usr/src/uts/intel/sharefs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/sharefs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the sharetab file system # kernel module. @@ -60,6 +60,8 @@ # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/shbinexec/Makefile --- a/usr/src/uts/intel/shbinexec/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/shbinexec/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -48,6 +48,8 @@ # include $(UTSBASE)/intel/Makefile.intel +CERRWARN += -_gcc=-Wno-parentheses + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/shmsys/Makefile --- a/usr/src/uts/intel/shmsys/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/shmsys/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the shmsys driver kernel module. # @@ -70,6 +70,8 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/si3124/Makefile --- a/usr/src/uts/intel/si3124/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/si3124/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -67,6 +67,8 @@ DEBUG_FLGS = DEBUG_DEFS += $(DEBUG_FLGS) +CERRWARN += -_gcc=-Wno-uninitialized + # # lint pass one enforcement # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/simnet/Makefile --- a/usr/src/uts/intel/simnet/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/simnet/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -54,6 +54,8 @@ CFLAGS += $(CCVERBOSE) LDFLAGS += -dy -Ndrv/dld -Nmisc/mac -Nmisc/dls -Ndrv/random +CERRWARN += -_gcc=-Wno-switch + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/smbfs/Makefile --- a/usr/src/uts/intel/smbfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/smbfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -68,6 +68,8 @@ # Until CR 4994570 is fixed... LINTTAGS += -erroff=E_BAD_FORMAT_ARG_TYPE2 +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized # The mb_put/md_get functions are intentionally used with and without # return value checks, so filter those out like LGREP.2 does. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/smbsrv/Makefile --- a/usr/src/uts/intel/smbsrv/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/smbsrv/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -69,6 +69,10 @@ INC_PATH += -I$(SRC)/common +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/sockfs/Makefile --- a/usr/src/uts/intel/sockfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/sockfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the sockfs file system # kernel module. @@ -86,6 +86,13 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/sockpfp/Makefile --- a/usr/src/uts/intel/sockpfp/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/sockpfp/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -68,6 +68,9 @@ # LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-label + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/socksctp/Makefile --- a/usr/src/uts/intel/socksctp/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/socksctp/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -68,6 +68,9 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/socksdp/Makefile --- a/usr/src/uts/intel/socksdp/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/socksdp/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -58,6 +58,9 @@ # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + LDFLAGS += -dy -Nfs/sockfs -Ndrv/ip -Ndrv/sdpib # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/softmac/Makefile --- a/usr/src/uts/intel/softmac/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/softmac/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# # # Path to the base of the uts directory tree (usually /usr/src/uts). @@ -64,6 +62,9 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-label + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/sol_ofs/Makefile --- a/usr/src/uts/intel/sol_ofs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/sol_ofs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -61,6 +61,11 @@ LINTTAGS += -erroff=E_STATIC_UNUSED LINTTAGS += -erroff=E_CONST_TRUNCATED_BY_ASSIGN +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-unused-variable + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/sol_umad/Makefile --- a/usr/src/uts/intel/sol_umad/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/sol_umad/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -42,6 +42,7 @@ # include $(UTSBASE)/intel/Makefile.intel +CERRWARN += -_gcc=-Wno-uninitialized # # Define targets diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/sol_uverbs/Makefile --- a/usr/src/uts/intel/sol_uverbs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/sol_uverbs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -62,6 +62,10 @@ LINTTAGS += -erroff=E_STATIC_UNUSED LINTTAGS += -erroff=E_CONST_TRUNCATED_BY_ASSIGN +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-label + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/spdsock/Makefile --- a/usr/src/uts/intel/spdsock/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/spdsock/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -71,6 +71,8 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/specfs/Makefile --- a/usr/src/uts/intel/specfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/specfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the specfs file system # kernel module. @@ -72,6 +72,9 @@ # LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/sppp/Makefile --- a/usr/src/uts/intel/sppp/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/sppp/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the sppp STREAMS pseudo- # driver kernel module. @@ -76,6 +76,9 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/spppcomp/Makefile --- a/usr/src/uts/intel/spppcomp/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/spppcomp/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -75,6 +75,9 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Depends on sppp # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/sppptun/Makefile --- a/usr/src/uts/intel/sppptun/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/sppptun/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the sppptun STREAMS pseudo- # driver kernel module. @@ -78,6 +78,8 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/srn/Makefile --- a/usr/src/uts/intel/srn/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/srn/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the srn driver # @@ -50,6 +50,8 @@ # include $(UTSBASE)/intel/Makefile.intel +CERRWARN += -_gcc=-Wno-uninitialized + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/srpt/Makefile --- a/usr/src/uts/intel/srpt/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/srpt/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -63,6 +63,8 @@ C99MODE= -xc99=%all C99LMODE= -Xc99=%all +CERRWARN += -_gcc=-Wno-unused-label + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/st/Makefile --- a/usr/src/uts/intel/st/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/st/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -74,6 +74,10 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # Depends on scsi # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/stmf/Makefile --- a/usr/src/uts/intel/stmf/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/stmf/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -68,6 +68,10 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-variable + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/stmf_sbd/Makefile --- a/usr/src/uts/intel/stmf_sbd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/stmf_sbd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -69,6 +69,11 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/strategy/Makefile --- a/usr/src/uts/intel/strategy/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/strategy/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -25,7 +25,7 @@ # Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the strategy "misc" # kernel module. @@ -51,6 +51,8 @@ # include $(UTSBASE)/intel/Makefile.intel +CERRWARN += -_gcc=-Wno-parentheses + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/strplumb/Makefile --- a/usr/src/uts/intel/strplumb/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/strplumb/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the strplumb # kernel module. @@ -66,6 +66,8 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/sv/Makefile --- a/usr/src/uts/intel/sv/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/sv/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -62,9 +62,11 @@ # # lint pass one enforcement # -CFLAGS += -v +CFLAGS += $(CCVERBOSE) LDFLAGS += -dy -N"drv/nsctl" -N"drv/nskern" -N"misc/spuni" +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: def: $(DEF_DEPS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/swrand/Makefile --- a/usr/src/uts/intel/swrand/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/swrand/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -74,6 +74,8 @@ LINTTAGS += -erroff=E_STATIC_UNUSED LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-unused-function + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/tavor/Makefile --- a/usr/src/uts/intel/tavor/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/tavor/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -84,6 +84,11 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-type-limits + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/telmod/Makefile --- a/usr/src/uts/intel/telmod/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/telmod/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the telmod streams kernel # module. @@ -65,6 +65,8 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/tem/Makefile --- a/usr/src/uts/intel/tem/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/tem/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -65,6 +65,9 @@ # LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/tirdwr/Makefile --- a/usr/src/uts/intel/tirdwr/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/tirdwr/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the tirdwr streams kernel # module. @@ -65,6 +65,8 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/tl/Makefile --- a/usr/src/uts/intel/tl/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/tl/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the tl driver # @@ -73,6 +73,10 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/tmpfs/Makefile --- a/usr/src/uts/intel/tmpfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/tmpfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the tmpfs file system # kernel module. @@ -65,6 +65,10 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-value + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/tnf/Makefile --- a/usr/src/uts/intel/tnf/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/tnf/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # tnf (kernel trace driver) Makefile # @@ -66,6 +66,8 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/tphci/Makefile --- a/usr/src/uts/intel/tphci/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/tphci/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the tphci kernel # driver for testing MPxIO interfaces @@ -49,6 +49,8 @@ CLOBBERFILES += $(MODULE) +CERRWARN += -_gcc=-Wno-parentheses + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/tpm/Makefile --- a/usr/src/uts/intel/tpm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/tpm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -63,6 +63,8 @@ # This is for /usr/include/tss/, which is not built in the ON consolidation CPPFLAGS += -I/usr/include +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/trill/Makefile --- a/usr/src/uts/intel/trill/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/trill/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -48,6 +48,8 @@ # include $(UTSBASE)/intel/Makefile.intel +CERRWARN += -_gcc=-Wno-uninitialized + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/tvhci/Makefile --- a/usr/src/uts/intel/tvhci/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/tvhci/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the tvhci kernel # driver for testing MPxIO interfaces @@ -61,6 +61,7 @@ # Please do not carry these forward to new Makefiles. # LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-unused-function # # Default build targets. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/udfs/Makefile --- a/usr/src/uts/intel/udfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/udfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -78,6 +78,11 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-type-limits + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/ufs/Makefile --- a/usr/src/uts/intel/ufs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/ufs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the ufs file system # kernel module. @@ -77,6 +77,11 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-unused-label + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/ugen/Makefile --- a/usr/src/uts/intel/ugen/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/ugen/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -49,6 +49,8 @@ # include $(UTSBASE)/intel/Makefile.intel +CERRWARN += -_gcc=-Wno-uninitialized + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/uhci/Makefile --- a/usr/src/uts/intel/uhci/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/uhci/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -74,6 +74,8 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/urtw/Makefile --- a/usr/src/uts/intel/urtw/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/urtw/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -59,6 +59,11 @@ # LDFLAGS += -dy -Nmisc/mac -Nmisc/net80211 -Nmisc/usba +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/usb_ac/Makefile --- a/usr/src/uts/intel/usb_ac/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/usb_ac/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -64,6 +64,11 @@ MODSTUBS_DIR = $(OBJS_DIR) CLEANFILES += $(MODSTUBS_O) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + # # depends on misc/usba # @@ -122,7 +127,6 @@ $(WARLOCK_OK): $(WARLOCK_OUT) warlock_ddi.files \ warlock_standalone warlock_usba.files warlock_with_usba $(TOUCH) $(WARLOCK_OK) - warlock_with_usba: $(WLCMD_DIR)/usb_ac_with_usba.wlcmd $(WARLOCK_OUT) \ warlock_ddi.files warlock_usba.files warlock_ohci.files \ diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/usb_ah/Makefile --- a/usr/src/uts/intel/usb_ah/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/usb_ah/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -75,6 +75,8 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/usb_as/Makefile --- a/usr/src/uts/intel/usb_as/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/usb_as/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -72,6 +72,8 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-unused-label + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/usba/Makefile --- a/usr/src/uts/intel/usba/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/usba/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -47,6 +47,13 @@ # include $(UTSBASE)/intel/Makefile.intel +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-unused-variable + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/usbftdi/Makefile --- a/usr/src/uts/intel/usbftdi/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/usbftdi/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -48,6 +48,8 @@ # include $(UTSBASE)/intel/Makefile.intel +CERRWARN += -_gcc=-Wno-uninitialized + LDFLAGS += -dy -Nmisc/usba -Nmisc/usbser # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/usbms/Makefile --- a/usr/src/uts/intel/usbms/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/usbms/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -70,6 +70,9 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/usbsacm/Makefile --- a/usr/src/uts/intel/usbsacm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/usbsacm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -49,6 +49,8 @@ LDFLAGS += -dy -Nmisc/usba -Nmisc/usbser +CERRWARN += -_gcc=-Wno-uninitialized + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/usbser/Makefile --- a/usr/src/uts/intel/usbser/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/usbser/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -68,6 +68,10 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label + .KEEP_STATE: all: $(ALL_DEPS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/usbsksp/Makefile --- a/usr/src/uts/intel/usbsksp/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/usbsksp/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -83,6 +83,8 @@ # include $(UTSBASE)/intel/Makefile.targ +CERRWARN += -_gcc=-Wno-uninitialized + # # Defines for local commands. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/usbsprl/Makefile --- a/usr/src/uts/intel/usbsprl/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/usbsprl/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -47,6 +47,8 @@ # include $(UTSBASE)/intel/Makefile.intel +CERRWARN += -_gcc=-Wno-uninitialized + LDFLAGS += -dy -Nmisc/usba -Nmisc/usbser # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/usbvc/Makefile --- a/usr/src/uts/intel/usbvc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/usbvc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -73,6 +73,8 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/usbwcm/Makefile --- a/usr/src/uts/intel/usbwcm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/usbwcm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -70,6 +70,9 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/uwba/Makefile --- a/usr/src/uts/intel/uwba/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/uwba/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -65,6 +65,9 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/vgatext/Makefile --- a/usr/src/uts/intel/vgatext/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/vgatext/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the VGA text driver # @@ -66,6 +66,9 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/vnic/Makefile --- a/usr/src/uts/intel/vnic/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/vnic/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -54,6 +54,9 @@ CFLAGS += $(CCVERBOSE) LDFLAGS += -dy -Ndrv/dld -Nmisc/mac -Nmisc/dls +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/vr/Makefile --- a/usr/src/uts/intel/vr/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/vr/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -56,6 +56,9 @@ # Overrides # +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + # # Driver depends on GLD # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/vuid2ps2/Makefile --- a/usr/src/uts/intel/vuid2ps2/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/vuid2ps2/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the vuid2ps2 streams kernel # module. @@ -50,6 +50,9 @@ # include $(UTSBASE)/intel/Makefile.intel +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/vuid3ps2/Makefile --- a/usr/src/uts/intel/vuid3ps2/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/vuid3ps2/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the vuid3ps2 streams kernel # module. @@ -50,6 +50,9 @@ # include $(UTSBASE)/intel/Makefile.intel +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/vuidm3p/Makefile --- a/usr/src/uts/intel/vuidm3p/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/vuidm3p/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the vuidm3p streams kernel # module. @@ -62,6 +62,8 @@ # ALL_DEFS += -DVUIDM3P +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/vuidm4p/Makefile --- a/usr/src/uts/intel/vuidm4p/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/vuidm4p/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the vuidm4p streams kernel # module. @@ -62,6 +62,8 @@ # ALL_DEFS += -DVUIDM4P +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/vuidm5p/Makefile --- a/usr/src/uts/intel/vuidm5p/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/vuidm5p/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the vuidm5p streams kernel # module. @@ -59,6 +59,8 @@ ALL_DEFS += -DVUIDM5P +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/wc/Makefile --- a/usr/src/uts/intel/wc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/wc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -64,6 +64,8 @@ # LDFLAGS += -dy -Nmisc/tem -Ndacf/consconfig_dacf +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/winlock/Makefile --- a/usr/src/uts/intel/winlock/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/winlock/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of winlock kernel module. # @@ -64,6 +64,8 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/wusb_df/Makefile --- a/usr/src/uts/intel/wusb_df/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/wusb_df/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -73,6 +73,8 @@ # LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/xge/Makefile --- a/usr/src/uts/intel/xge/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/xge/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -106,6 +106,12 @@ LINTTAGS += -erroff=E_STATIC_UNUSED LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-empty-body +CERRWARN += -_gcc=-Wno-uninitialized + # # # Default build targets. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/yge/Makefile --- a/usr/src/uts/intel/yge/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/yge/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -60,6 +60,8 @@ # Lint flag # +CERRWARN += -_gcc=-Wno-unused-label + # # # Default build targets. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/zfs/Makefile --- a/usr/src/uts/intel/zfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/zfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -79,6 +79,14 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/zut/Makefile --- a/usr/src/uts/intel/zut/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/zut/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -72,6 +72,9 @@ # LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/intel/zyd/Makefile --- a/usr/src/uts/intel/zyd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/intel/zyd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -59,6 +59,8 @@ # LDFLAGS += -dy -Nmisc/mac -Nmisc/net80211 -Nmisc/usba +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/FSS/Makefile --- a/usr/src/uts/sparc/FSS/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/FSS/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # # uts/sparc/FSS/Makefile # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the FSS scheduling class # kernel module. @@ -69,6 +69,8 @@ # LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/aac/Makefile --- a/usr/src/uts/sparc/aac/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/aac/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the aac driver kernel module. # @@ -73,6 +73,12 @@ # Overrides # +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-switch + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/aggr/Makefile --- a/usr/src/uts/sparc/aggr/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/aggr/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# # # Path to the base of the uts directory tree (usually /usr/src/uts). @@ -65,6 +63,12 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/ahci/Makefile --- a/usr/src/uts/sparc/ahci/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/ahci/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# # # uts/sparc/ahci/Makefile @@ -74,6 +72,10 @@ # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/aoutexec/Makefile --- a/usr/src/uts/sparc/aoutexec/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/aoutexec/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -60,6 +60,7 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses # # Define dependency on elfexec diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/audio/Makefile --- a/usr/src/uts/sparc/audio/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/audio/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -46,6 +46,8 @@ # include $(UTSBASE)/sparc/Makefile.sparc +CERRWARN += -_gcc=-Wno-uninitialized + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/audio1575/Makefile --- a/usr/src/uts/sparc/audio1575/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/audio1575/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -55,6 +55,8 @@ # LDFLAGS += -dy -Ndrv/audio -Nmisc/ac97 +CERRWARN += -_gcc=-Wno-switch + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/audiocs/Makefile --- a/usr/src/uts/sparc/audiocs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/audiocs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -57,6 +57,7 @@ # Overrides # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized # # Depends on misc/audiosup diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/audioens/Makefile --- a/usr/src/uts/sparc/audioens/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/audioens/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -54,6 +54,8 @@ LDFLAGS += -dy -Ndrv/audio -Nmisc/ac97 +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/audiols/Makefile --- a/usr/src/uts/sparc/audiols/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/audiols/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -54,6 +54,8 @@ LDFLAGS += -dy -Ndrv/audio -Nmisc/ac97 +CERRWARN += -_gcc=-Wno-switch + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/audiop16x/Makefile --- a/usr/src/uts/sparc/audiop16x/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/audiop16x/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -54,6 +54,8 @@ LDFLAGS += -dy -Ndrv/audio -Nmisc/ac97 +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/audiopci/Makefile --- a/usr/src/uts/sparc/audiopci/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/audiopci/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -54,6 +54,8 @@ LDFLAGS += -dy -Ndrv/audio +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/audiots/Makefile --- a/usr/src/uts/sparc/audiots/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/audiots/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -55,6 +55,8 @@ # LDFLAGS += -dy -N misc/ac97 -N drv/audio +CERRWARN += -_gcc=-Wno-parentheses + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/autofs/Makefile --- a/usr/src/uts/sparc/autofs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/autofs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -75,6 +75,11 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/av1394/Makefile --- a/usr/src/uts/sparc/av1394/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/av1394/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# # # Path to the base of the uts directory tree. @@ -80,6 +78,10 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-type-limits + # # depends on misc/s1394 LDFLAGS += -dy -Nmisc/s1394 diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/bge/Makefile --- a/usr/src/uts/sparc/bge/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/bge/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -18,11 +18,12 @@ # # CDDL HEADER END # + # # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the Broadcom BCM57xx # Gigabit Ethernet (BGE) driver module in sparc systems @@ -76,6 +77,10 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/blkdev/Makefile --- a/usr/src/uts/sparc/blkdev/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/blkdev/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -57,6 +57,8 @@ # LDFLAGS += -dy -Nmisc/cmlb +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/blowfish/Makefile --- a/usr/src/uts/sparc/blowfish/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/blowfish/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# + # This makefile drives the production of the blowfish KEF provider. # # sparc implementation architecture dependent @@ -79,6 +78,9 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/bofi/Makefile --- a/usr/src/uts/sparc/bofi/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/bofi/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -18,11 +18,12 @@ # # CDDL HEADER END # + # # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the bofi driver # kernel module. @@ -82,6 +83,8 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/bpf/Makefile --- a/usr/src/uts/sparc/bpf/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/bpf/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -70,6 +70,9 @@ # LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/bridge/Makefile --- a/usr/src/uts/sparc/bridge/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/bridge/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -57,6 +57,10 @@ # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses + # # Driver depends on MAC, DLS, and DLD # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/busra/Makefile --- a/usr/src/uts/sparc/busra/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/busra/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the busra # kernel module. @@ -50,6 +50,9 @@ # include $(UTSBASE)/sparc/Makefile.sparc +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/c2audit/Makefile --- a/usr/src/uts/sparc/c2audit/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/c2audit/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -75,6 +75,10 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-clobbered +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/cachefs/Makefile --- a/usr/src/uts/sparc/cachefs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/cachefs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -77,6 +77,9 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/cardbus/Makefile --- a/usr/src/uts/sparc/cardbus/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/cardbus/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # # uts/sparc/cardbus/Makefile # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the cardbus kernel module. # @@ -78,6 +78,11 @@ # dependency LDFLAGS += -dy -Nmisc/busra -Nmisc/pcmcia -Nmisc/hpcsvc +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-variable + # # For now, disable these lint checks; maintainers should endeavor # to investigate and remove these for maximum lint coverage. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/chxge/Makefile --- a/usr/src/uts/sparc/chxge/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/chxge/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the Chelsio N110 # 10G Ethernet (CH) driver module in x86 systems @@ -101,6 +101,11 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses + # # # Default build targets. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/cmlb/Makefile --- a/usr/src/uts/sparc/cmlb/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/cmlb/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -75,6 +75,12 @@ LINTTAGS += -erroff=E_STATIC_UNUSED LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/consconfig_dacf/Makefile --- a/usr/src/uts/sparc/consconfig_dacf/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/consconfig_dacf/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" # # Path to the base of the uts directory tree (usually /usr/src/uts). @@ -62,6 +61,7 @@ # Please do not carry these forward to new Makefiles. # LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON +CERRWARN += -_gcc=-Wno-parentheses .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/consms/Makefile --- a/usr/src/uts/sparc/consms/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/consms/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the consms driver # @@ -68,6 +68,8 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-switch + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/cryptmod/Makefile --- a/usr/src/uts/sparc/cryptmod/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/cryptmod/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the streams crypto kernel # module. @@ -70,6 +70,8 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/crypto/Makefile --- a/usr/src/uts/sparc/crypto/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/crypto/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -61,6 +61,8 @@ LDFLAGS += -dy -Nmisc/kcf +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/cryptoadm/Makefile --- a/usr/src/uts/sparc/cryptoadm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/cryptoadm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the cryptoadm driver # kernel module. @@ -70,6 +70,9 @@ # LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/ctf/Makefile --- a/usr/src/uts/sparc/ctf/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/ctf/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" UTSBASE = ../.. @@ -49,6 +48,8 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: def: $(DEF_DEPS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/ctfs/Makefile --- a/usr/src/uts/sparc/ctfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/ctfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the contract file system # kernel module. @@ -67,6 +67,8 @@ # LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/dad/Makefile --- a/usr/src/uts/sparc/dad/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/dad/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -18,13 +18,12 @@ # # CDDL HEADER END # -# -#ident "%Z%%M% %I% %E% SMI" + # # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# uts/sparc/dad/Makefile + # # This makefile drives the production of the dad driver kernel module. # @@ -77,6 +76,14 @@ LINTTAGS += -erroff=E_STATIC_UNUSED LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-type-limits + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/daplt/Makefile --- a/usr/src/uts/sparc/daplt/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/daplt/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -80,6 +80,11 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/dca/Makefile --- a/usr/src/uts/sparc/dca/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/dca/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the DCA kCF provider. # @@ -74,6 +74,9 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/dcam1394/Makefile --- a/usr/src/uts/sparc/dcam1394/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/dcam1394/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# # # Path to the base of the uts directory tree. @@ -67,6 +65,9 @@ # depends on misc/s1394 LDFLAGS += -dy -Nmisc/s1394 +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # Default build targets. # .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/dcfs/Makefile --- a/usr/src/uts/sparc/dcfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/dcfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the dcfs file system # kernel module. @@ -61,6 +61,9 @@ # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/des/Makefile --- a/usr/src/uts/sparc/des/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/des/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the des crypto kernel module. # @@ -82,6 +82,9 @@ CFLAGS += $(CCVERBOSE) -I$(COM_DIR) LINTFLAGS += -I$(COM_DIR) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # For now, disable these lint checks; maintainers should endeavor # to investigate and remove these for maximum lint coverage. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/dev/Makefile --- a/usr/src/uts/sparc/dev/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/dev/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -64,6 +64,10 @@ INC_PATH += -I$(UTSBASE)/common/fs/zfs INC_PATH += -I$(UTSBASE)/common/io/bpf +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/devfs/Makefile --- a/usr/src/uts/sparc/devfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/devfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # uts/sparc/devfs/Makefile # This makefile drives the production of the Cache file system @@ -49,6 +49,8 @@ # include $(UTSBASE)/sparc/Makefile.sparc +CERRWARN += -_gcc=-Wno-parentheses + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/devinfo/Makefile --- a/usr/src/uts/sparc/devinfo/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/devinfo/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the devinfo kernel # driver to support libdevinfo. @@ -65,6 +65,11 @@ CFLAGS += $(CCVERBOSE) CPPFLAGS += -I$(SRC)/common +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-clobbered + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/dld/Makefile --- a/usr/src/uts/sparc/dld/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/dld/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -69,6 +69,10 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/dls/Makefile --- a/usr/src/uts/sparc/dls/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/dls/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -67,6 +67,8 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/dmfe/Makefile --- a/usr/src/uts/sparc/dmfe/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/dmfe/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -56,6 +56,8 @@ # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized + # # extra link arguments # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/doorfs/Makefile --- a/usr/src/uts/sparc/doorfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/doorfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the semsys driver kernel module. # @@ -75,6 +75,9 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/dprov/Makefile --- a/usr/src/uts/sparc/dprov/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/dprov/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the dummy KEF provider. # @@ -86,6 +86,10 @@ LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/dscpmk/Makefile --- a/usr/src/uts/sparc/dscpmk/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/dscpmk/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,6 @@ # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" # # This makefile creates the marker (ipp) module. # sparc architecture dependent @@ -73,6 +72,8 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/dtrace/Makefile --- a/usr/src/uts/sparc/dtrace/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/dtrace/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" UTSBASE = ../.. @@ -40,6 +39,10 @@ # DSF_DIR = $(UTSBASE)/$(PLATFORM)/genassym +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-uninitialized + ALL_TARGET = $(BINARY) $(SRC_CONFILE) LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/e1000g/Makefile --- a/usr/src/uts/sparc/e1000g/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/e1000g/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -56,6 +56,12 @@ LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-variable + # # Override defaults # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/ecc/Makefile --- a/usr/src/uts/sparc/ecc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/ecc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -70,6 +70,14 @@ CFLAGS += -DMP_API_COMPATIBLE -DNSS_ECC_MORE_THAN_SUITE_B LINTFLAGS += -I$(COM1_DIR) -I$(COM2_DIR) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-empty-body +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/ecpp/Makefile --- a/usr/src/uts/sparc/ecpp/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/ecpp/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This Makefile drives the production of ecpp # kernel module. @@ -67,6 +67,10 @@ # Turn this on once compiler understands v9 in it's backend #INLINES += $(UTSBASE)/sun/io/ecpp.il +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable + # # For now, disable these lint checks; maintainers should endeavor # to investigate and remove these for maximum lint coverage. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/efe/Makefile --- a/usr/src/uts/sparc/efe/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/efe/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -40,6 +40,8 @@ CFLAGS += $(CCVERBOSE) LDFLAGS += -dy -N misc/mac -N misc/mii +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/ehci/Makefile --- a/usr/src/uts/sparc/ehci/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/ehci/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -55,7 +55,9 @@ # # lint pass one enforcement # -CFLAGS += $(CCVERBOSE) +CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch # # depends on misc/usba diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/eibnx/Makefile --- a/usr/src/uts/sparc/eibnx/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/eibnx/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -83,6 +83,9 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/elfexec/Makefile --- a/usr/src/uts/sparc/elfexec/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/elfexec/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the elfexec exec kernel # module. @@ -73,6 +73,9 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/emlxs/Makefile --- a/usr/src/uts/sparc/emlxs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/emlxs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -87,6 +87,10 @@ LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON LINTTAGS += -erroff=E_INCONS_VAL_TYPE_DECL2 +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/emul64/Makefile --- a/usr/src/uts/sparc/emul64/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/emul64/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -65,6 +65,9 @@ # LDFLAGS += -dy -N misc/scsi +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + # # For now, disable these lint checks; maintainers should endeavor # to investigate and remove these for maximum lint coverage. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/eoib/Makefile --- a/usr/src/uts/sparc/eoib/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/eoib/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -72,6 +72,9 @@ # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # Depends on misc/ibtl # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/eri/Makefile --- a/usr/src/uts/sparc/eri/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/eri/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -18,14 +18,13 @@ # # CDDL HEADER END # -# -# uts/sparc/eri/Makefile -# -#ident "%Z%%M% %I% %E% SMI" + # # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # + +# # This makefile drives the production of the eri driver # kernel module. # @@ -66,6 +65,8 @@ # Overrides. # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label LDFLAGS += -dy -N misc/mac -N drv/ip # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/fas/Makefile --- a/usr/src/uts/sparc/fas/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/fas/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -76,6 +76,9 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/fasttrap/Makefile --- a/usr/src/uts/sparc/fasttrap/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/fasttrap/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# UTSBASE = ../.. @@ -45,6 +43,8 @@ CPPFLAGS += -I$(SRC)/common LDFLAGS += -dy -Ndrv/dtrace +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: def: $(DEF_DEPS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/fbt/Makefile --- a/usr/src/uts/sparc/fbt/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/fbt/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" UTSBASE = ../.. @@ -50,6 +49,10 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: def: $(DEF_DEPS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/fcip/Makefile --- a/usr/src/uts/sparc/fcip/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/fcip/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -71,6 +71,9 @@ LINTTAGS += -erroff=E_INCONS_ARG_USED2 LINTTAGS += -erroff=E_INCONS_VAL_TYPE_USED2 +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-type-limits + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/fcoe/Makefile --- a/usr/src/uts/sparc/fcoe/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/fcoe/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -58,6 +58,8 @@ LDFLAGS += -dy -Nmisc/mac INC_PATH += -I$(UTSBASE)/common/io/fcoe +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/fcp/Makefile --- a/usr/src/uts/sparc/fcp/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/fcp/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -65,6 +65,11 @@ LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/fcpci/Makefile --- a/usr/src/uts/sparc/fcpci/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/fcpci/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -86,6 +86,9 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/fcsm/Makefile --- a/usr/src/uts/sparc/fcsm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/fcsm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -67,6 +67,9 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/fct/Makefile --- a/usr/src/uts/sparc/fct/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/fct/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -71,6 +71,10 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_IF_ELSE_ANNOTATION +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/fctl/Makefile --- a/usr/src/uts/sparc/fctl/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/fctl/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -69,6 +69,8 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/fifofs/Makefile --- a/usr/src/uts/sparc/fifofs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/fifofs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the fifofs file system # kernel module. @@ -72,6 +72,8 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/flowacct/Makefile --- a/usr/src/uts/sparc/flowacct/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/flowacct/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,6 @@ # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" # # This makefile creates the flowacct accounting (ipp) module. # sparc architecture dependent @@ -72,6 +71,8 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/fp/Makefile --- a/usr/src/uts/sparc/fp/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/fp/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -72,6 +72,9 @@ LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-function + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/fssnap/Makefile --- a/usr/src/uts/sparc/fssnap/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/fssnap/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" # # sparc architecture dependent @@ -67,6 +66,8 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/gen_drv/Makefile --- a/usr/src/uts/sparc/gen_drv/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/gen_drv/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the gen_drv kernel # driver to testing hotplugging operations @@ -68,6 +68,8 @@ # LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-unused-variable + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/gld/Makefile --- a/usr/src/uts/sparc/gld/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/gld/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -19,7 +19,7 @@ # CDDL HEADER END # # -#ident "%Z%%M% %I% %E% SMI" + # # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. @@ -70,6 +70,9 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/hci1394/Makefile --- a/usr/src/uts/sparc/hci1394/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/hci1394/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the hci1394 OHCI HAL module. # @@ -88,6 +88,9 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/hermon/Makefile --- a/usr/src/uts/sparc/hermon/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/hermon/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -75,6 +75,12 @@ # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/hid/Makefile --- a/usr/src/uts/sparc/hid/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/hid/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -68,6 +68,8 @@ LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) +CERRWARN += -_gcc=-Wno-parentheses + # # For now, disable these lint checks; maintainers should endeavor # to investigate and remove these for maximum lint coverage. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/hidparser/Makefile --- a/usr/src/uts/sparc/hidparser/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/hidparser/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -43,6 +43,7 @@ LINTS = $(HIDPARSER_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE) + # # Include common rules. # @@ -51,7 +52,8 @@ # # lint pass one enforcement # -CFLAGS += $(CCVERBOSE) +CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized # # depends on misc/usba diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/hme/Makefile --- a/usr/src/uts/sparc/hme/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/hme/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -59,6 +59,10 @@ CFLAGS += $(CCVERBOSE) LDFLAGS += -dy -Nmisc/mii -Nmisc/mac +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/hook/Makefile --- a/usr/src/uts/sparc/hook/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/hook/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the hook driver kernel module. # @@ -49,6 +49,8 @@ # include $(UTSBASE)/sparc/Makefile.sparc +CERRWARN += -_gcc=-Wno-uninitialized + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/hpcsvc/Makefile --- a/usr/src/uts/sparc/hpcsvc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/hpcsvc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the hpcsvc "misc" # kernel module. @@ -63,6 +63,8 @@ DEBUG_FLGS = DEBUG_DEFS += $(DEBUG_FLGS) +CERRWARN += -_gcc=-Wno-uninitialized + # # lint pass one enforcement # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/hsfs/Makefile --- a/usr/src/uts/sparc/hsfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/hsfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -77,6 +77,12 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-switch + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/hwahc/Makefile --- a/usr/src/uts/sparc/hwahc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/hwahc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -53,6 +53,8 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch # # depends on misc/usba diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/hxge/Makefile --- a/usr/src/uts/sparc/hxge/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/hxge/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -87,6 +87,12 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_FALSE_LOGICAL_EXPR + +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + # # Driver depends on mac & IP # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/i8042/Makefile --- a/usr/src/uts/sparc/i8042/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/i8042/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the i8042 nexus driver # @@ -62,6 +62,8 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-unused-function + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/ib/Makefile --- a/usr/src/uts/sparc/ib/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/ib/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # # @@ -66,6 +66,8 @@ ALL_BUILDS = $(ALL_BUILDSONLY64) DEF_BUILDS = $(DEF_BUILDSONLY64) +CERRWARN += -_gcc=-Wno-uninitialized + # # lint pass one enforcement # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/ibcm/Makefile --- a/usr/src/uts/sparc/ibcm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/ibcm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -28,8 +28,6 @@ # module. SPARC architecture dependent # -# ident "%Z%%M% %I% %E% SMI" - # # Path to the base of the uts directory tree (usually /usr/src/uts). # @@ -69,6 +67,14 @@ # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-value + # # depends on misc/ibtl and misc/ibmf # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/ibdm/Makefile --- a/usr/src/uts/sparc/ibdm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/ibdm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # # This makefile drives the production of the ibdm kernel module. @@ -80,6 +80,8 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/ibmf/Makefile --- a/usr/src/uts/sparc/ibmf/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/ibmf/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the ibmf kernel module. # @@ -79,6 +79,8 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/ibp/Makefile --- a/usr/src/uts/sparc/ibp/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/ibp/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -73,6 +73,9 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/ibtl/Makefile --- a/usr/src/uts/sparc/ibtl/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/ibtl/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the ibtl kernel module. # @@ -78,6 +78,12 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-value + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/idm/Makefile --- a/usr/src/uts/sparc/idm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/idm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -60,6 +60,10 @@ DEBUG_DEFS += $(DEBUG_FLGS) LDFLAGS += -dy -Nfs/sockfs -Nmisc/ksocket +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # Include INC_PATH += -I$(SRC)/common/hdcrc diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/idmap/Makefile --- a/usr/src/uts/sparc/idmap/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/idmap/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -60,6 +60,8 @@ # LINTTAGS += -erroff=E_FUNC_VAR_UNUSED -erroff=E_CONSTANT_CONDITION +CERRWARN += -_gcc=-Wno-unused-variable + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/igb/Makefile --- a/usr/src/uts/sparc/igb/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/igb/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -49,6 +49,9 @@ # include $(UTSBASE)/sparc/Makefile.sparc +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/ii/Makefile --- a/usr/src/uts/sparc/ii/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/ii/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -62,11 +62,14 @@ # # lint pass one enforcement # -CFLAGS += -v +CFLAGS += $(CCVERBOSE) LDFLAGS += -dy -N"drv/nsctl" -N"drv/nskern" -N"misc/spuni" LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: def: $(DEF_DEPS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/inst_sync/Makefile --- a/usr/src/uts/sparc/inst_sync/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/inst_sync/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the inst_sync system call module. # @@ -56,6 +56,8 @@ LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) +CERRWARN += -_gcc=-Wno-parentheses + # # Overrides. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/intpexec/Makefile --- a/usr/src/uts/sparc/intpexec/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/intpexec/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,11 +20,10 @@ # CDDL HEADER END # # -# uts/sparc/intpexec/Makefile # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the intpexec (interpreter) # exec kernel module. @@ -61,6 +60,7 @@ # Overrides. # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses # # Default build targets. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/ip/Makefile --- a/usr/src/uts/sparc/ip/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/ip/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -77,6 +77,14 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-type-limits + # # Depends on md5 and swrand (for SCTP). SCTP needs to depend on # swrand as it needs random numbers early on during boot before diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/ipc/Makefile --- a/usr/src/uts/sparc/ipc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/ipc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the ipc `user' kernel module. # @@ -67,6 +67,9 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/ipf/Makefile --- a/usr/src/uts/sparc/ipf/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/ipf/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -77,6 +77,12 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-empty-body + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/ipgpc/Makefile --- a/usr/src/uts/sparc/ipgpc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/ipgpc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,6 @@ # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" # # This makefile drives the production of the IP generic packet classifier # misc kernel module. @@ -68,6 +67,8 @@ LDFLAGS += -dy -Ndrv/ip +CERRWARN += -_gcc=-Wno-uninitialized + # # For now, disable these lint checks; maintainers should endeavor # to investigate and remove these for maximum lint coverage. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/ipsecah/Makefile --- a/usr/src/uts/sparc/ipsecah/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/ipsecah/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the ipsecah driver # kernel module. @@ -77,6 +77,9 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/ipsecesp/Makefile --- a/usr/src/uts/sparc/ipsecesp/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/ipsecesp/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the ipsecesp driver # kernel module. @@ -76,6 +76,8 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/iptun/Makefile --- a/usr/src/uts/sparc/iptun/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/iptun/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -59,6 +59,10 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/iscsi/Makefile --- a/usr/src/uts/sparc/iscsi/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/iscsi/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -68,6 +68,12 @@ LINTFLAGS += -a -erroff=E_BAD_PTR_CAST_ALIGN -erroff=E_PTRDIFF_OVERFLOW LINTFLAGS64 += -a -erroff=E_BAD_PTR_CAST_ALIGN -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/iscsit/Makefile --- a/usr/src/uts/sparc/iscsit/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/iscsit/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -63,6 +63,10 @@ C99MODE= -xc99=%all C99LMODE= -Xc99=%all +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-label + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/iser/Makefile --- a/usr/src/uts/sparc/iser/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/iser/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -43,6 +43,8 @@ # include $(UTSBASE)/sparc/Makefile.sparc +CERRWARN += -_gcc=-Wno-uninitialized + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/ixgbe/Makefile --- a/usr/src/uts/sparc/ixgbe/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/ixgbe/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -49,6 +49,10 @@ # include $(UTSBASE)/sparc/Makefile.sparc +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/javaexec/Makefile --- a/usr/src/uts/sparc/javaexec/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/javaexec/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -26,7 +26,7 @@ # Use is subject to license terms. # All right reserved. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the javaexec kernel module # @@ -51,6 +51,8 @@ # include $(UTSBASE)/sparc/Makefile.sparc +CERRWARN += -_gcc=-Wno-parentheses + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/kaio/Makefile --- a/usr/src/uts/sparc/kaio/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/kaio/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the kaio driver kernel module. # @@ -75,6 +75,10 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/kb8042/Makefile --- a/usr/src/uts/sparc/kb8042/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/kb8042/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" # # This makefile drives the production of the kb8042 # kernel module. @@ -65,6 +64,8 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/kbtrans/Makefile --- a/usr/src/uts/sparc/kbtrans/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/kbtrans/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -21,10 +21,11 @@ # # uts/sparc/kbtrans/Makefile +# # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the kbtrans misc module. # @@ -69,6 +70,9 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-empty-body +CERRWARN += -_gcc=-Wno-unused-braces + .KEEP_STATE: def: $(DEF_DEPS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/kcf/Makefile --- a/usr/src/uts/sparc/kcf/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/kcf/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -65,6 +65,11 @@ LINTTAGS += -I$(COM_DIR) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/keysock/Makefile --- a/usr/src/uts/sparc/keysock/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/keysock/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the keysock driver # kernel module. @@ -78,6 +78,8 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-unused-variable + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/kgssapi/Makefile --- a/usr/src/uts/sparc/kgssapi/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/kgssapi/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -70,6 +70,9 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/kiconv_ko/Makefile --- a/usr/src/uts/sparc/kiconv_ko/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/kiconv_ko/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the kiconv_ko # kernel module. @@ -69,6 +69,8 @@ # LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/kmech_dummy/Makefile --- a/usr/src/uts/sparc/kmech_dummy/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/kmech_dummy/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -46,6 +46,8 @@ # include $(UTSBASE)/sparc/Makefile.sparc +CERRWARN += -_gcc=-Wno-parentheses + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/kmech_krb5/Makefile --- a/usr/src/uts/sparc/kmech_krb5/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/kmech_krb5/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -64,6 +64,11 @@ # LDFLAGS += -dy -N misc/kgssapi -N crypto/md5 +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + # # For now, disable these lint checks; maintainers should endeavor # to investigate and remove these for maximum lint coverage. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/kssl/Makefile --- a/usr/src/uts/sparc/kssl/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/kssl/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the kernel SSL driver # kernel module. @@ -73,6 +73,8 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/ksslf/Makefile --- a/usr/src/uts/sparc/ksslf/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/ksslf/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -67,6 +67,9 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/kstat/Makefile --- a/usr/src/uts/sparc/kstat/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/kstat/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # kernel statistics driver makefile. # @@ -68,6 +68,8 @@ # LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/ksyms/Makefile --- a/usr/src/uts/sparc/ksyms/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/ksyms/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # ksyms (kernel symbols) driver makefile. # @@ -50,6 +50,8 @@ # include $(UTSBASE)/sparc/Makefile.sparc +CERRWARN += -_gcc=-Wno-parentheses + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/ldterm/Makefile --- a/usr/src/uts/sparc/ldterm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/ldterm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the ldterm streams kernel # module. @@ -70,6 +70,9 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/llc1/Makefile --- a/usr/src/uts/sparc/llc1/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/llc1/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# # # Path to the base of the uts directory tree (usually /usr/src/uts). @@ -65,6 +63,8 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/lofi/Makefile --- a/usr/src/uts/sparc/lofi/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/lofi/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -56,6 +56,8 @@ # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized + INC_PATH += -I$(SRC)/common/lzma # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/lofs/Makefile --- a/usr/src/uts/sparc/lofs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/lofs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the lofs file system # kernel module. @@ -50,6 +50,8 @@ # include $(UTSBASE)/sparc/Makefile.sparc +CERRWARN += -_gcc=-Wno-parentheses + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/mac/Makefile --- a/usr/src/uts/sparc/mac/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/mac/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -65,6 +65,13 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-variable + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/mac_wifi/Makefile --- a/usr/src/uts/sparc/mac_wifi/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/mac_wifi/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -44,6 +44,8 @@ # include $(UTSBASE)/sparc/Makefile.sparc +CERRWARN += -_gcc=-Wno-switch + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/md/Makefile --- a/usr/src/uts/sparc/md/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/md/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -19,7 +19,6 @@ # CDDL HEADER END # # -# uts/sparc/md/Makefile # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # Copyright (c) 2011 Bayard G. Bell. All rights reserved. @@ -63,6 +62,12 @@ # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses + # # Define dependency on rpcmod # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/md_hotspares/Makefile --- a/usr/src/uts/sparc/md_hotspares/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/md_hotspares/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -48,6 +48,8 @@ # include $(UTSBASE)/sparc/Makefile.sparc +CERRWARN += -_gcc=-Wno-uninitialized + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/md_mirror/Makefile --- a/usr/src/uts/sparc/md_mirror/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/md_mirror/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -76,6 +76,9 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/md_notify/Makefile --- a/usr/src/uts/sparc/md_notify/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/md_notify/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -48,6 +48,8 @@ # include $(UTSBASE)/sparc/Makefile.sparc +CERRWARN += -_gcc=-Wno-uninitialized + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/md_raid/Makefile --- a/usr/src/uts/sparc/md_raid/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/md_raid/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -64,6 +64,9 @@ # LDFLAGS += -dy -N drv/md +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # For now, disable these lint checks; maintainers should endeavor # to investigate and remove these for maximum lint coverage. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/md_sp/Makefile --- a/usr/src/uts/sparc/md_sp/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/md_sp/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -59,6 +59,10 @@ # LDFLAGS += -dy -N drv/md +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # For now, disable these lint checks; maintainers should endeavor # to investigate and remove these for maximum lint coverage. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/md_stripe/Makefile --- a/usr/src/uts/sparc/md_stripe/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/md_stripe/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -64,6 +64,10 @@ # LDFLAGS += -dy -N drv/md +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses + # # For now, disable these lint checks; maintainers should endeavor # to investigate and remove these for maximum lint coverage. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/md_trans/Makefile --- a/usr/src/uts/sparc/md_trans/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/md_trans/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -64,6 +64,9 @@ # LDFLAGS += -dy -N drv/md -N fs/ufs +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses + # # For now, disable these lint checks; maintainers should endeavor # to investigate and remove these for maximum lint coverage. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/mii/Makefile --- a/usr/src/uts/sparc/mii/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/mii/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -57,6 +57,9 @@ LDFLAGS += -dy -N misc/mac +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/mm/Makefile --- a/usr/src/uts/sparc/mm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/mm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the mm driver # @@ -68,6 +68,9 @@ # LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-clobbered + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/mntfs/Makefile --- a/usr/src/uts/sparc/mntfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/mntfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the mntfs file system # kernel module. @@ -71,6 +71,8 @@ # LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/mouse8042/Makefile --- a/usr/src/uts/sparc/mouse8042/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/mouse8042/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -19,11 +19,10 @@ # CDDL HEADER END # # -# uts/sparc/mouse8042/%M% # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the mouse8042 driver # @@ -63,6 +62,9 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/mpt_sas/Makefile --- a/usr/src/uts/sparc/mpt_sas/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/mpt_sas/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -65,6 +65,11 @@ # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-switch + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/mr_sas/Makefile --- a/usr/src/uts/sparc/mr_sas/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/mr_sas/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -59,6 +59,10 @@ # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # Turn on doubleword alignment for 64 bit registers # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/msgsys/Makefile --- a/usr/src/uts/sparc/msgsys/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/msgsys/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the msgsys driver kernel module. # @@ -67,6 +67,9 @@ # LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/mxfe/Makefile --- a/usr/src/uts/sparc/mxfe/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/mxfe/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the Macronix # Fast Ethernet (MXFE) driver module in sparc systems @@ -57,6 +57,8 @@ # Overrides # +CERRWARN += -_gcc=-Wno-switch + # # Driver depends on GLDv3 # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/namefs/Makefile --- a/usr/src/uts/sparc/namefs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/namefs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the namefs file system # kernel module. @@ -50,6 +50,8 @@ # include $(UTSBASE)/sparc/Makefile.sparc +CERRWARN += -_gcc=-Wno-parentheses + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/nfs/Makefile --- a/usr/src/uts/sparc/nfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/nfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -82,6 +82,15 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-empty-body + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/nfs_dlboot/Makefile --- a/usr/src/uts/sparc/nfs_dlboot/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/nfs_dlboot/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the dlboot_proto # kernel module. @@ -73,6 +73,8 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/nfssrv/Makefile --- a/usr/src/uts/sparc/nfssrv/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/nfssrv/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the server-side nfs file system # kernel module. @@ -74,6 +74,14 @@ LINTTAGS += -erroff=E_STATIC_UNUSED LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/nsctl/Makefile --- a/usr/src/uts/sparc/nsctl/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/nsctl/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -63,11 +63,13 @@ # # lint pass one enforcement # -CFLAGS += -v +CFLAGS += $(CCVERBOSE) LDFLAGS += -dy -N"drv/nskern" -N"drv/ncall" -N"misc/spuni" LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-parentheses + .KEEP_STATE: def: $(DEF_DEPS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/nv_sata/Makefile --- a/usr/src/uts/sparc/nv_sata/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/nv_sata/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # # Path to the base of the uts directory tree (usually /usr/src/uts). @@ -87,6 +87,8 @@ install: $(INSTALL_DEPS) +CERRWARN += -_gcc=-Wno-uninitialized + # # Include common targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/objfs/Makefile --- a/usr/src/uts/sparc/objfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/objfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the object file system # kernel module. @@ -68,6 +68,10 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/oce/Makefile --- a/usr/src/uts/sparc/oce/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/oce/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -56,6 +56,11 @@ LDFLAGS += -dy -Nmisc/mac +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/ohci/Makefile --- a/usr/src/uts/sparc/ohci/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/ohci/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -69,6 +69,8 @@ LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) +CERRWARN += -_gcc=-Wno-uninitialized + # # For now, disable these lint checks; maintainers should endeavor # to investigate and remove these for maximum lint coverage. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/openeepr/Makefile --- a/usr/src/uts/sparc/openeepr/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/openeepr/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the openeepr driver # @@ -65,6 +65,9 @@ LDFLAGS += -dy -Ndacf/consconfig_dacf +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # For now, disable these lint checks; maintainers should endeavor # to investigate and remove these for maximum lint coverage. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/pcan/Makefile --- a/usr/src/uts/sparc/pcan/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/pcan/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the pcan driver kernel module. # @@ -72,6 +72,10 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-switch + # # dependency # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/pcata/Makefile --- a/usr/src/uts/sparc/pcata/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/pcata/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the pcata driver kernel module. # @@ -74,6 +74,9 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/pcfs/Makefile --- a/usr/src/uts/sparc/pcfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/pcfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the DOS file system # kernel module. @@ -61,6 +61,12 @@ # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-function + # # For now, disable these lint checks; maintainers should endeavor # to investigate and remove these for maximum lint coverage. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/pci_pci/Makefile --- a/usr/src/uts/sparc/pci_pci/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/pci_pci/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -78,6 +78,10 @@ # LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-value + # # Dependency # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/pcic/Makefile --- a/usr/src/uts/sparc/pcic/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/pcic/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,6 @@ # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" # # This makefile drives the production of the PCIC driver kernel module. # @@ -78,6 +77,11 @@ # dependency LDFLAGS += -dy -Nmisc/busra -Nmisc/pcmcia -Nmisc/cardbus +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized + # # For now, disable these lint checks; maintainers should endeavor # to investigate and remove these for maximum lint coverage. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/pcicfg/Makefile --- a/usr/src/uts/sparc/pcicfg/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/pcicfg/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -86,6 +86,11 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/pcieb/Makefile --- a/usr/src/uts/sparc/pcieb/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/pcieb/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -84,6 +84,9 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-unused-variable + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/pcieb_bcm/Makefile --- a/usr/src/uts/sparc/pcieb_bcm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/pcieb_bcm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -85,6 +85,10 @@ LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-type-limits + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/pckt/Makefile --- a/usr/src/uts/sparc/pckt/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/pckt/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the pckt streams kernel # module. @@ -69,6 +69,8 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/pcmcia/Makefile --- a/usr/src/uts/sparc/pcmcia/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/pcmcia/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -28,7 +28,7 @@ # # sparc architecture dependent # -#ident "%Z%%M% %I% %E% SMI" + # # Path to the base of the uts directory tree (usually /usr/src/uts). # @@ -83,6 +83,9 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/pcwl/Makefile --- a/usr/src/uts/sparc/pcwl/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/pcwl/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the pcwl driver kernel module. # @@ -64,13 +64,18 @@ # # lint pass one enforcement # -CFLAGS += -v +CFLAGS += $(CCVERBOSE) # # STREAMS API limitations force us to turn off these lint checks. # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # dependency # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/pipe/Makefile --- a/usr/src/uts/sparc/pipe/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/pipe/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -48,6 +48,8 @@ # include $(UTSBASE)/sparc/Makefile.sparc +CERRWARN += -_gcc=-Wno-parentheses + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/pm/Makefile --- a/usr/src/uts/sparc/pm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/pm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the pm (power manager) driver # kernel module. @@ -70,6 +70,9 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/pmcs/Makefile --- a/usr/src/uts/sparc/pmcs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/pmcs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -69,6 +69,12 @@ -DPMCS_FIRMWARE_VERSION=${PMCS_FW_VERSION} \ -DPMCS_FIRMWARE_VERSION_STRING=\"${PMCS_FW_VERSION_STRING}\" +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/poll/Makefile --- a/usr/src/uts/sparc/poll/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/poll/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,6 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" # # Path to the base of the uts directory tree (usually /usr/src/uts). @@ -54,7 +53,8 @@ # # lint pass one enforcement # -CFLAGS += $(CCVERBOSE) +CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized # # Default build targets. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/portfs/Makefile --- a/usr/src/uts/sparc/portfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/portfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the port kernel module. # @@ -74,6 +74,9 @@ # LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/pppt/Makefile --- a/usr/src/uts/sparc/pppt/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/pppt/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -63,6 +63,9 @@ C99MODE= -xc99=%all C99LMODE= -Xc99=%all +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/procfs/Makefile --- a/usr/src/uts/sparc/procfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/procfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the procfs file system # kernel module. @@ -73,6 +73,10 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/pshot/Makefile --- a/usr/src/uts/sparc/pshot/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/pshot/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the pshot kernel # driver to testing hotplugging operations @@ -69,6 +69,9 @@ # LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/ptem/Makefile --- a/usr/src/uts/sparc/ptem/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/ptem/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the ptem streams kernel # module. @@ -69,6 +69,9 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/ptsl/Makefile --- a/usr/src/uts/sparc/ptsl/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/ptsl/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -65,6 +65,8 @@ # LDFLAGS += -dy -N drv/ptc +CERRWARN += -_gcc=-Wno-parentheses + # # For now, disable these lint checks; maintainers should endeavor # to investigate and remove these for maximum lint coverage. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/qlc/Makefile --- a/usr/src/uts/sparc/qlc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/qlc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -78,6 +78,10 @@ FWMODULES = $(FWIMAGES:%=$(MODULE)_fw_%) FWMODULES_SRC = $(FWIMAGES:%=$(SRC)/uts/common/io/fibre-channel/fca/qlc/ql_fw_%.c) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/qlge/Makefile --- a/usr/src/uts/sparc/qlge/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/qlge/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -64,6 +64,9 @@ C99MODE= -xc99=%all C99LMODE= -Xc99=%all +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/qlt/Makefile --- a/usr/src/uts/sparc/qlt/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/qlt/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -71,6 +71,8 @@ LINTTAGS += -erroff=E_STATIC_UNUSED LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/rdc/Makefile --- a/usr/src/uts/sparc/rdc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/rdc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -58,16 +58,21 @@ ALL_TARGET = $(BINARY) $(SRC_CONFILE) LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) - + # # lint pass one enforcement # -CFLAGS += -v -D_SD_8K_BLKSIZE -D_SYSCALL32 -LINT_DEFS += -D_SYSCALL32 -LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN -LINTTAGS += -erroff=E_INCONS_ARG_DECL2 -LDFLAGS += -dy -N"drv/nsctl" -N"drv/nskern" -N"drv/ncall" -N"misc/spuni" \ - -N"misc/rdcsrv" -N"strmod/rpcmod" +CFLAGS += $(CCVERBOSE) -D_SD_8K_BLKSIZE -D_SYSCALL32 +LINT_DEFS += -D_SYSCALL32 +LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +LINTTAGS += -erroff=E_INCONS_ARG_DECL2 +LDFLAGS += -dy -N"drv/nsctl" -N"drv/nskern" -N"drv/ncall" -N"misc/spuni" +LDFLAGS += -N"misc/rdcsrv" -N"strmod/rpcmod" + +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/rdcsrv/Makefile --- a/usr/src/uts/sparc/rdcsrv/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/rdcsrv/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -62,10 +62,13 @@ # # lint pass one enforcement # -CFLAGS += -v -D_SD_8K_BLKSIZE -D_SYSCALL32 +CFLAGS += $(CCVERBOSE) -D_SD_8K_BLKSIZE -D_SYSCALL32 LINT_DEFS += -D_SD_8K_BLKSIZE -D_SYSCALL32 LDFLAGS += -dy -N"strmod/rpcmod" -N"misc/rdcstub" +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-variable + .KEEP_STATE: def: $(DEF_DEPS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/rds/Makefile --- a/usr/src/uts/sparc/rds/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/rds/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the rds driver # kernel module. @@ -61,6 +61,8 @@ # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized + LDFLAGS += -dy -Nfs/sockfs -Ndrv/ip # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/rdsib/Makefile --- a/usr/src/uts/sparc/rdsib/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/rdsib/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the rds driver # kernel module. @@ -61,6 +61,9 @@ # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + LDFLAGS += -dy -Ndrv/rds -Nmisc/ibtl -Nmisc/ibcm -Ndrv/ip # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/rdsv3/Makefile --- a/usr/src/uts/sparc/rdsv3/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/rdsv3/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -61,6 +61,12 @@ # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + # # Disable these lint checks since some errors suppressed here are # in the OFED code, but we'd like to keep it as is as much as possible. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/rge/Makefile --- a/usr/src/uts/sparc/rge/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/rge/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the Realtek # Gigabit Ethernet (RGE) driver module in sparc systems @@ -68,6 +68,9 @@ # LDFLAGS += -dy -N misc/mac -N drv/ip +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # For now, disable these lint checks; maintainers should endeavor # to investigate and remove these for maximum lint coverage. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/rlmod/Makefile --- a/usr/src/uts/sparc/rlmod/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/rlmod/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the rlmod streams kernel # module. @@ -69,6 +69,9 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/rpcib/Makefile --- a/usr/src/uts/sparc/rpcib/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/rpcib/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the kernel # rpcib module. @@ -73,6 +73,10 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/rpcmod/Makefile --- a/usr/src/uts/sparc/rpcmod/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/rpcmod/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the rpcmod streams kernel # module. @@ -86,6 +86,13 @@ LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-function + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/rpcsec/Makefile --- a/usr/src/uts/sparc/rpcsec/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/rpcsec/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -70,6 +70,9 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/rpcsec_gss/Makefile --- a/usr/src/uts/sparc/rpcsec_gss/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/rpcsec_gss/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -72,6 +72,8 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/rsa/Makefile --- a/usr/src/uts/sparc/rsa/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/rsa/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -81,6 +81,9 @@ LINTTAGS += -erroff=E_STATIC_UNUSED LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/rsm/Makefile --- a/usr/src/uts/sparc/rsm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/rsm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the rsm kernel agent @@ -83,6 +83,9 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/rtls/Makefile --- a/usr/src/uts/sparc/rtls/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/rtls/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -56,6 +56,8 @@ # Overrides # +CERRWARN += -_gcc=-Wno-uninitialized + # # Driver depends on Mac # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/s1394/Makefile --- a/usr/src/uts/sparc/s1394/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/s1394/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the s1394 kernel module. # @@ -85,6 +85,11 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/sad/Makefile --- a/usr/src/uts/sparc/sad/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/sad/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the sad driver # @@ -71,6 +71,9 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/sata/Makefile --- a/usr/src/uts/sparc/sata/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/sata/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# # # uts/sparc/sata/Makefile @@ -96,6 +94,13 @@ install: $(INSTALL_DEPS) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-empty-body + # # Include common targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/sbp2/Makefile --- a/usr/src/uts/sparc/sbp2/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/sbp2/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,8 +24,6 @@ # # uts/sparc/sbp2/Makefile -#ident "%Z%%M% %I% %E% SMI" - # # This makefile drives the production of the sbp2 kernel module. # @@ -78,6 +76,8 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-unused-function + .KEEP_STATE: def: $(DEF_DEPS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/scsa1394/Makefile --- a/usr/src/uts/sparc/scsa1394/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/scsa1394/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# # # Path to the base of the uts directory tree. @@ -82,6 +80,9 @@ # LDFLAGS += -dy -Nmisc/scsi -Nmisc/s1394 -Nmisc/sbp2 +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # Default build targets. # .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/scsa2usb/Makefile --- a/usr/src/uts/sparc/scsa2usb/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/scsa2usb/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -67,6 +67,9 @@ LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + # # For now, disable these lint checks; maintainers should endeavor # to investigate and remove these for maximum lint coverage. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/scsi/Makefile --- a/usr/src/uts/sparc/scsi/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/scsi/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the scsi kernel module. # @@ -72,6 +72,10 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/scsi_vhci/Makefile --- a/usr/src/uts/sparc/scsi_vhci/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/scsi_vhci/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -25,8 +25,6 @@ # # -#pragma ident "%Z%%M% %I% %E% SMI" -# # This makefile drives the production of SCSI vHCI Driver # sparc architecture dependent # @@ -50,6 +48,10 @@ # include $(UTSBASE)/sparc/Makefile.sparc +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-label + # # Define targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/sd/Makefile --- a/usr/src/uts/sparc/sd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/sd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -79,6 +79,13 @@ LINTTAGS += -erroff=E_STATIC_UNUSED LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/sdbc/Makefile --- a/usr/src/uts/sparc/sdbc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/sdbc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -70,11 +70,15 @@ # # lint pass one enforcement # -CFLAGS += -v -D_SD_8K_BLKSIZE -D_SDBC_SINGLE_BRD +CFLAGS += $(CCVERBOSE) -D_SD_8K_BLKSIZE -D_SDBC_SINGLE_BRD LDFLAGS += -dy -N"drv/nsctl" -N"drv/ncall" -N"drv/nskern" -N"misc/spuni" LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-label + .KEEP_STATE: def: $(DEF_DEPS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/sdt/Makefile --- a/usr/src/uts/sparc/sdt/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/sdt/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" UTSBASE = ../.. @@ -49,6 +48,8 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-parentheses + .KEEP_STATE: def: $(DEF_DEPS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/semsys/Makefile --- a/usr/src/uts/sparc/semsys/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/semsys/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the semsys driver kernel module. # @@ -70,6 +70,9 @@ # LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/sfe/Makefile --- a/usr/src/uts/sparc/sfe/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/sfe/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of NS/SiS # Fast Ethernet (SFE) driver module in sparc systems @@ -73,6 +73,11 @@ CFLAGS += $(CPPFLAGS) -xc99=%all +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Driver depends on MAC & IP # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/sgen/Makefile --- a/usr/src/uts/sparc/sgen/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/sgen/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -25,8 +25,6 @@ # # -#ident "%Z%%M% %I% %E% SMI" -# # This makefile drives the production of the sgen driver. # sparc architecture dependent # @@ -75,6 +73,9 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/sha2/Makefile --- a/usr/src/uts/sparc/sha2/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/sha2/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -71,6 +71,9 @@ CFLAGS += $(CCVERBOSE) -I$(COM_DIR) LINTFLAGS += -I$(COM_DIR) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/sharefs/Makefile --- a/usr/src/uts/sparc/sharefs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/sharefs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the sharetab file system # kernel module. @@ -60,6 +60,8 @@ # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/shbinexec/Makefile --- a/usr/src/uts/sparc/shbinexec/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/shbinexec/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -48,6 +48,8 @@ # include $(UTSBASE)/sparc/Makefile.sparc +CERRWARN += -_gcc=-Wno-parentheses + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/shmsys/Makefile --- a/usr/src/uts/sparc/shmsys/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/shmsys/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the shmsys driver kernel module. # @@ -71,6 +71,8 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/si3124/Makefile --- a/usr/src/uts/sparc/si3124/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/si3124/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# # # uts/sparc/si3124/Makefile @@ -69,6 +67,8 @@ DEBUG_FLGS = DEBUG_DEFS += $(DEBUG_FLGS) +CERRWARN += -_gcc=-Wno-uninitialized + # # lint pass one enforcement # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/simnet/Makefile --- a/usr/src/uts/sparc/simnet/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/simnet/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -54,6 +54,8 @@ CFLAGS += $(CCVERBOSE) LDFLAGS += -dy -Ndrv/dld -Nmisc/mac -Nmisc/dls -Ndrv/random +CERRWARN += -_gcc=-Wno-switch + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/smbfs/Makefile --- a/usr/src/uts/sparc/smbfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/smbfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -68,6 +68,8 @@ # Until CR 4994570 is fixed... LINTTAGS += -erroff=E_BAD_FORMAT_ARG_TYPE2 +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized # The mb_put/md_get functions are intentionally used with and without # return value checks, so filter those out like LGREP.2 does. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/smbsrv/Makefile --- a/usr/src/uts/sparc/smbsrv/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/smbsrv/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -68,6 +68,10 @@ INC_PATH += -I$(SRC)/common +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/socal/Makefile --- a/usr/src/uts/sparc/socal/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/socal/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,8 +24,6 @@ # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" - # # This makefile drives the production of the socal driver kernel # module, which is used for the Photon/FC-AL product @@ -75,6 +73,8 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/sockfs/Makefile --- a/usr/src/uts/sparc/sockfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/sockfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the sockfs file system # kernel module. @@ -87,6 +87,13 @@ LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/sockpfp/Makefile --- a/usr/src/uts/sparc/sockpfp/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/sockpfp/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -69,6 +69,9 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-label + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/socksctp/Makefile --- a/usr/src/uts/sparc/socksctp/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/socksctp/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -69,6 +69,9 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/socksdp/Makefile --- a/usr/src/uts/sparc/socksdp/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/socksdp/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -59,6 +59,9 @@ # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + LDFLAGS += -dy -Nfs/sockfs -Ndrv/ip -Ndrv/sdpib # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/softmac/Makefile --- a/usr/src/uts/sparc/softmac/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/softmac/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,8 +22,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# # # Path to the base of the uts directory tree (usually /usr/src/uts). @@ -64,6 +62,9 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-label + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/sol_ofs/Makefile --- a/usr/src/uts/sparc/sol_ofs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/sol_ofs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -61,6 +61,11 @@ LINTTAGS += -erroff=E_STATIC_UNUSED LINTTAGS += -erroff=E_CONST_TRUNCATED_BY_ASSIGN +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-unused-variable + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/sol_umad/Makefile --- a/usr/src/uts/sparc/sol_umad/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/sol_umad/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -37,6 +37,7 @@ ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) CONF_SRCDIR = $(UTSBASE)/common/io/ib/clients/of/sol_umad LDFLAGS += -dy -Nmisc/sol_ofs -Nmisc/ibmf -Nmisc/ibtl + # # Include common rules. # @@ -55,6 +56,8 @@ # INCLUDE_PATH += -I$(UTSBASE)/common/sys/ib/clients/of/sol_umad +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/sol_uverbs/Makefile --- a/usr/src/uts/sparc/sol_uverbs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/sol_uverbs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -62,6 +62,10 @@ LINTTAGS += -erroff=E_STATIC_UNUSED LINTTAGS += -erroff=E_CONST_TRUNCATED_BY_ASSIGN +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-label + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/spdsock/Makefile --- a/usr/src/uts/sparc/spdsock/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/spdsock/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -79,6 +79,8 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/specfs/Makefile --- a/usr/src/uts/sparc/specfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/specfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the specfs file system # kernel module. @@ -65,6 +65,9 @@ CFLAGS += $(CCVERBOSE) LDFLAGS += -dy -Nfs/fifofs +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/sppp/Makefile --- a/usr/src/uts/sparc/sppp/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/sppp/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the sppp STREAMS pseudo- # driver kernel module. @@ -77,6 +77,9 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/spppcomp/Makefile --- a/usr/src/uts/sparc/spppcomp/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/spppcomp/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -74,6 +74,9 @@ CLEANLINTFILES += $(LINT64_FILES) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # For now, disable these lint checks; maintainers should endeavor # to investigate and remove these for maximum lint coverage. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/sppptun/Makefile --- a/usr/src/uts/sparc/sppptun/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/sppptun/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the sppptun STREAMS pseudo- # driver kernel module. @@ -81,6 +81,8 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/srpt/Makefile --- a/usr/src/uts/sparc/srpt/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/srpt/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -63,6 +63,8 @@ C99MODE= -xc99=%all C99LMODE= -Xc99=%all +CERRWARN += -_gcc=-Wno-unused-label + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/ssd/Makefile --- a/usr/src/uts/sparc/ssd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/ssd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -78,6 +78,12 @@ LINTTAGS += -erroff=E_STATIC_UNUSED LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-type-limits + # # Depends on scsi and cmlb # fcp included for fibre support diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/st/Makefile --- a/usr/src/uts/sparc/st/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/st/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -77,6 +77,10 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/stmf/Makefile --- a/usr/src/uts/sparc/stmf/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/stmf/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -68,6 +68,10 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-variable + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/stmf_sbd/Makefile --- a/usr/src/uts/sparc/stmf_sbd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/stmf_sbd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -69,6 +69,11 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/strplumb/Makefile --- a/usr/src/uts/sparc/strplumb/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/strplumb/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the strplumb # kernel module. @@ -70,6 +70,8 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/sv/Makefile --- a/usr/src/uts/sparc/sv/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/sv/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -62,9 +62,11 @@ # # lint pass one enforcement # -CFLAGS += -v +CFLAGS += $(CCVERBOSE) LDFLAGS += -dy -N"drv/nsctl" -N"drv/nskern" -N"misc/spuni" +CERRWARN += -_gcc=-Wno-uninitialized + .KEEP_STATE: def: $(DEF_DEPS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/swapgeneric/Makefile --- a/usr/src/uts/sparc/swapgeneric/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/swapgeneric/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,6 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" # # This makefile drives the production of the swapgeneric `user' # kernel module. @@ -65,6 +64,8 @@ CLEANFILES += $(MODSTUBS_O) CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/swrand/Makefile --- a/usr/src/uts/sparc/swrand/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/swrand/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -73,6 +73,8 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-unused-function + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/tavor/Makefile --- a/usr/src/uts/sparc/tavor/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/tavor/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -85,6 +85,11 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-type-limits + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/telmod/Makefile --- a/usr/src/uts/sparc/telmod/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/telmod/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the telmod streams kernel # module. @@ -69,6 +69,8 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/tem/Makefile --- a/usr/src/uts/sparc/tem/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/tem/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -70,6 +70,9 @@ # LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/tirdwr/Makefile --- a/usr/src/uts/sparc/tirdwr/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/tirdwr/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the tirdwr streams kernel # module. @@ -69,6 +69,8 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/tl/Makefile --- a/usr/src/uts/sparc/tl/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/tl/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the tl driver # @@ -77,6 +77,10 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/tmpfs/Makefile --- a/usr/src/uts/sparc/tmpfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/tmpfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the tmpfs file system # kernel module. @@ -69,6 +69,10 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-value + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/tnf/Makefile --- a/usr/src/uts/sparc/tnf/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/tnf/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # tnf (kernel trace driver) Makefile # @@ -70,6 +70,9 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/tphci/Makefile --- a/usr/src/uts/sparc/tphci/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/tphci/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -28,8 +28,6 @@ # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" - # # This makefile drives the production of a pHCI test driver # for testing the MPxIO framework. @@ -48,7 +46,6 @@ LINTS = $(TPHCI_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(USR_DRV_DIR)/$(MODULE) - # # Include common rules. # @@ -65,6 +62,7 @@ # Overrides # CFLAGS += $(CCVERBOSE) -dalign +CERRWARN += -_gcc=-Wno-parentheses # # Default build targets. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/trill/Makefile --- a/usr/src/uts/sparc/trill/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/trill/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -48,6 +48,8 @@ # include $(UTSBASE)/sparc/Makefile.sparc +CERRWARN += -_gcc=-Wno-uninitialized + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/ttymux/Makefile --- a/usr/src/uts/sparc/ttymux/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/ttymux/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -18,11 +18,12 @@ # # CDDL HEADER END # + # # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the ttymux driver # kernel module. @@ -85,6 +86,10 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-type-limits + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/tvhci/Makefile --- a/usr/src/uts/sparc/tvhci/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/tvhci/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -27,8 +27,6 @@ # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" - # # This makefile drives the production of a vHCI test driver # for testing MPxIO framework @@ -71,6 +69,7 @@ # Please do not carry these forward to new Makefiles. # LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-unused-function # # Default build targets. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/udfs/Makefile --- a/usr/src/uts/sparc/udfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/udfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -79,6 +79,11 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-type-limits + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/ufs/Makefile --- a/usr/src/uts/sparc/ufs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/ufs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the ufs file system # kernel module. @@ -77,6 +77,11 @@ CFLAGS += $(CCVERBOSE) LDFLAGS += -dy -Nfs/specfs -Nmisc/fssnap_if +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-unused-label + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/ugen/Makefile --- a/usr/src/uts/sparc/ugen/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/ugen/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -55,6 +55,7 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized # # depends on misc/usba diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/uhci/Makefile --- a/usr/src/uts/sparc/uhci/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/uhci/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -69,6 +69,8 @@ LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) +CERRWARN += -_gcc=-Wno-uninitialized + # # For now, disable these lint checks; maintainers should endeavor # to investigate and remove these for maximum lint coverage. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/usb_ac/Makefile --- a/usr/src/uts/sparc/usb_ac/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/usb_ac/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -64,6 +64,11 @@ LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + # # For now, disable these lint checks; maintainers should endeavor # to investigate and remove these for maximum lint coverage. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/usb_ah/Makefile --- a/usr/src/uts/sparc/usb_ah/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/usb_ah/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -67,6 +67,8 @@ LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) +CERRWARN += -_gcc=-Wno-uninitialized + # # For now, disable these lint checks; maintainers should endeavor # to investigate and remove these for maximum lint coverage. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/usb_as/Makefile --- a/usr/src/uts/sparc/usb_as/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/usb_as/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -65,6 +65,8 @@ LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) +CERRWARN += -_gcc=-Wno-unused-label + # # For now, disable these lint checks; maintainers should endeavor # to investigate and remove these for maximum lint coverage. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/usba/Makefile --- a/usr/src/uts/sparc/usba/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/usba/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -53,6 +53,13 @@ # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-unused-variable + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/usbftdi/Makefile --- a/usr/src/uts/sparc/usbftdi/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/usbftdi/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -48,6 +48,8 @@ # include $(UTSBASE)/sparc/Makefile.sparc +CERRWARN += -_gcc=-Wno-uninitialized + LDFLAGS += -dy -Nmisc/usba -Nmisc/usbser # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/usbms/Makefile --- a/usr/src/uts/sparc/usbms/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/usbms/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -65,6 +65,9 @@ LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # For now, disable these lint checks; maintainers should endeavor # to investigate and remove these for maximum lint coverage. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/usbsacm/Makefile --- a/usr/src/uts/sparc/usbsacm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/usbsacm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -55,6 +55,8 @@ LDFLAGS += -dy -Nmisc/usba -Nmisc/usbser +CERRWARN += -_gcc=-Wno-uninitialized + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/usbser/Makefile --- a/usr/src/uts/sparc/usbser/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/usbser/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -73,6 +73,10 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label + .KEEP_STATE: all: $(ALL_DEPS) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/usbsksp/Makefile --- a/usr/src/uts/sparc/usbsksp/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/usbsksp/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -89,6 +89,8 @@ # include $(UTSBASE)/sparc/Makefile.targ +CERRWARN += -_gcc=-Wno-uninitialized + # # Defines for local commands. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/usbsprl/Makefile --- a/usr/src/uts/sparc/usbsprl/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/usbsprl/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -53,6 +53,8 @@ # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized + LDFLAGS += -dy -Nmisc/usba -Nmisc/usbser # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/usbvc/Makefile --- a/usr/src/uts/sparc/usbvc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/usbvc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -68,6 +68,8 @@ LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) +CERRWARN += -_gcc=-Wno-uninitialized + # # Disable this because it is necessary for this driver # and it is surely safe diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/usbwcm/Makefile --- a/usr/src/uts/sparc/usbwcm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/usbwcm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -65,6 +65,9 @@ LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # For now, disable these lint checks; maintainers should endeavor # to investigate and remove these for maximum lint coverage. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/uwba/Makefile --- a/usr/src/uts/sparc/uwba/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/uwba/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -70,6 +70,9 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/vnic/Makefile --- a/usr/src/uts/sparc/vnic/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/vnic/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -54,6 +54,9 @@ CFLAGS += $(CCVERBOSE) LDFLAGS += -dy -Ndrv/dld -Nmisc/mac -Nmisc/dls +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/vr/Makefile --- a/usr/src/uts/sparc/vr/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/vr/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -57,6 +57,9 @@ # Overrides # +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + # # Driver depends on GLD # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/vuid3ps2/Makefile --- a/usr/src/uts/sparc/vuid3ps2/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/vuid3ps2/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the vuid3ps2 streams kernel # module. @@ -48,6 +48,9 @@ # include $(UTSBASE)/sparc/Makefile.sparc +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/wc/Makefile --- a/usr/src/uts/sparc/wc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/wc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -64,6 +64,8 @@ $(MODSTUBS_O) := AS_CPPFLAGS += -DWC_MODULE CLEANFILES += $(MODSTUBS_O) +CERRWARN += -_gcc=-Wno-uninitialized + # # lint pass one enforcement # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/winlock/Makefile --- a/usr/src/uts/sparc/winlock/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/winlock/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of winlock kernel module. # @@ -69,6 +69,8 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/wusb_df/Makefile --- a/usr/src/uts/sparc/wusb_df/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/wusb_df/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -74,6 +74,8 @@ # LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/xge/Makefile --- a/usr/src/uts/sparc/xge/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/xge/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -106,6 +106,12 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-empty-body +CERRWARN += -_gcc=-Wno-uninitialized + # # # Default build targets. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/yge/Makefile --- a/usr/src/uts/sparc/yge/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/yge/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -60,6 +60,8 @@ # Lint flag # +CERRWARN += -_gcc=-Wno-unused-label + # # # Default build targets. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/zfs/Makefile --- a/usr/src/uts/sparc/zfs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/zfs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -83,6 +83,14 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sparc/zut/Makefile --- a/usr/src/uts/sparc/zut/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sparc/zut/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -72,6 +72,9 @@ # LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/arcfour/Makefile --- a/usr/src/uts/sun4u/arcfour/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/arcfour/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -64,6 +64,8 @@ CFLAGS += $(CCVERBOSE) -I$(COM_DIR) LINTFLAGS += -I$(COM_DIR) +CERRWARN += -_gcc=-Wno-parentheses + # # Turn on doubleword alignment for 64 bit registers # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/bignum/Makefile --- a/usr/src/uts/sun4u/bignum/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/bignum/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -63,6 +63,7 @@ CFLAGS += $(CCVERBOSE) -I$(CRYPTODIR) -I$(COM1_DIR) CFLAGS += -DUMUL64 -DUSE_FLOATING_POINT LINTFLAGS += -I$(CRYPTODIR) -I$(COM1_DIR) +CERRWARN += -_gcc=-Wno-unused-function # # Default build targets. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/blade/bscv/Makefile --- a/usr/src/uts/sun4u/blade/bscv/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/blade/bscv/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the sun4u "bscv" driver module. # @@ -66,6 +66,7 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized # # Default build targets. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/bootdev/Makefile --- a/usr/src/uts/sun4u/bootdev/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/bootdev/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" # # This makefile drives the production of the bootdev misc kernel @@ -67,6 +66,8 @@ # LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/cheetah/Makefile --- a/usr/src/uts/sun4u/cheetah/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/cheetah/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -123,3 +123,7 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-clobbered diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/cheetahplus/Makefile --- a/usr/src/uts/sun4u/cheetahplus/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/cheetahplus/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -129,3 +129,8 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-clobbered diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/cherrystone/platmod/Makefile --- a/usr/src/uts/sun4u/cherrystone/platmod/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/cherrystone/platmod/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# # # This makefile drives the production of the sun4u lneck platform module. @@ -73,6 +71,7 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-unused-function # # Default build targets. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/chicago/fpc/Makefile --- a/usr/src/uts/sun4u/chicago/fpc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/chicago/fpc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -103,6 +103,8 @@ # LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-unused-variable + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/chicago/platmod/Makefile --- a/usr/src/uts/sun4u/chicago/platmod/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/chicago/platmod/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# # # This makefile drives the production of the sun4u chicago platform module. @@ -69,6 +67,7 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-unused-variable # # Default build targets. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/cpr/Makefile --- a/usr/src/uts/sun4u/cpr/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/cpr/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -89,6 +89,12 @@ LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-type-limits + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/daktari/hpc3130/Makefile --- a/usr/src/uts/sun4u/daktari/hpc3130/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/daktari/hpc3130/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the hpc3130 driver # for the Texas Instruments hot-plug controller. @@ -67,6 +67,7 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-char-subscripts # # Turn on doubleword alignment for 64 bit registers diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/daktari/platmod/Makefile --- a/usr/src/uts/sun4u/daktari/platmod/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/daktari/platmod/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# # # This makefile drives the production of the sun4u daktari platmod module @@ -74,6 +72,7 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-unused-function # # Default build targets. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/db21554/Makefile --- a/usr/src/uts/sun4u/db21554/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/db21554/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the Intel 21554 drawbridge # nexus driver kernel module @@ -86,6 +86,10 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-type-limits + # Default build targets. # .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/des/Makefile --- a/usr/src/uts/sun4u/des/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/des/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the des kernel module. # @@ -90,6 +90,9 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/ebus/Makefile --- a/usr/src/uts/sun4u/ebus/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/ebus/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the ebus driver kernel module # @@ -75,6 +75,9 @@ # LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/excalibur/xcalppm/Makefile --- a/usr/src/uts/sun4u/excalibur/xcalppm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/excalibur/xcalppm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the platform power # management driver in the sun4u excalibur system. @@ -64,6 +64,9 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch # # Turn on doubleword alignment for 64 bit registers diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/fd/Makefile --- a/usr/src/uts/sun4u/fd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/fd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the fd driver kernel module. # @@ -83,6 +83,10 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-char-subscripts + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/genunix/Makefile --- a/usr/src/uts/sun4u/genunix/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/genunix/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -110,6 +110,17 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-clobbered +CERRWARN += -_gcc=-Wno-empty-body + # # Ensure that lint sees 'struct cpu' containing a fully declared # embedded 'struct machcpu' diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/gpio_87317/Makefile --- a/usr/src/uts/sun4u/gpio_87317/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/gpio_87317/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of gpio_87317 driver # @@ -59,7 +59,8 @@ # # lint pass one enforcement # -CFLAGS += $(CCVERBOSE) +CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses # # Default build targets. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/gptwo_cpu/Makefile --- a/usr/src/uts/sun4u/gptwo_cpu/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/gptwo_cpu/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -18,12 +18,12 @@ # # CDDL HEADER END # + # -# uts/sun4u/gptwo_cpu/Makefile # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the cpu portion of # of the Safari Configurator. @@ -88,6 +88,9 @@ # LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-function + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/hummingbird/Makefile --- a/usr/src/uts/sun4u/hummingbird/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/hummingbird/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -120,3 +120,5 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_BAD_FORMAT_STR2 + +CERRWARN += -_gcc=-Wno-uninitialized diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/isadma/Makefile --- a/usr/src/uts/sun4u/isadma/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/isadma/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the isadma driver kernel module # @@ -74,6 +74,8 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-switch + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/jalapeno/Makefile --- a/usr/src/uts/sun4u/jalapeno/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/jalapeno/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -128,3 +128,7 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-clobbered diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/javelin/envctrltwo/Makefile --- a/usr/src/uts/sun4u/javelin/envctrltwo/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/javelin/envctrltwo/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the envctrltwo driver kernel # module in the sun4u javelin systems. @@ -58,6 +58,8 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized # # Turn on doubleword alignment for 64 bit registers diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/kb/Makefile --- a/usr/src/uts/sun4u/kb/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/kb/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -18,12 +18,12 @@ # # CDDL HEADER END # + # -# uts/sun4u/kb/Makefile # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the kb streams kernel # module. @@ -77,6 +77,8 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/lw8/ntwdt/Makefile --- a/usr/src/uts/sun4u/lw8/ntwdt/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/lw8/ntwdt/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # This makes the "ntwdt" driver module, which # provides for an application-level watchdog @@ -66,6 +66,7 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized LDFLAGS += -dy -Ndrv/sgsbbc diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/lw8/platmod/Makefile --- a/usr/src/uts/sun4u/lw8/platmod/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/lw8/platmod/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# # # This makefile drives the production of the sun4u lw8 platform module. @@ -76,6 +74,8 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized # # Default build targets. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/lw8/sgenv/Makefile --- a/usr/src/uts/sun4u/lw8/sgenv/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/lw8/sgenv/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the lw8 # sgenv (environmentals) kernel module. @@ -68,6 +68,8 @@ CFLAGS += $(CCVERBOSE) LDFLAGS += -dy -Ndrv/sgsbbc +CERRWARN += -_gcc=-Wno-type-limits + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/max1617/Makefile --- a/usr/src/uts/sun4u/max1617/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/max1617/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -19,8 +19,7 @@ # # CDDL HEADER END # -# -#ident "%Z%%M% %I% %E% SMI" + # # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. @@ -47,7 +46,9 @@ # # lint pass one enforcement # -CFLAGS += $(CCVERBOSE) +CFLAGS += $(CCVERBOSE) + +CERRWARN += -_gcc=-Wno-unused-label LDFLAGS += -dy -N misc/i2c_svc diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/mc-us3/Makefile --- a/usr/src/uts/sun4u/mc-us3/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/mc-us3/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # #This makefile drives the production of the mc-us3 driver kernel #module. @@ -71,6 +71,8 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-parentheses + # #Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/mc-us3i/Makefile --- a/usr/src/uts/sun4u/mc-us3i/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/mc-us3i/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -19,12 +19,12 @@ # # CDDL HEADER END # + # -# uts/sun4u/mc-us3i/Makefile # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the mc-us3i driver kernel # module. @@ -61,6 +61,8 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized # # Turn on doubleword alignment for 64 bit registers diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/mem_cache/Makefile --- a/usr/src/uts/sun4u/mem_cache/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/mem_cache/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -18,10 +18,12 @@ # # CDDL HEADER END # + +# # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the mem_cache driver # @@ -60,6 +62,7 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses ASFLAGS += -DCHEETAH_PLUS AS_INC_PATH += -I$(DSF_DIR)/$(OBJS_DIR) diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/montecarlo/acebus/Makefile --- a/usr/src/uts/sun4u/montecarlo/acebus/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/montecarlo/acebus/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the acebus driver kernel module # for the Alarm Card. @@ -60,6 +60,7 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) -DNORDICA_CP1500 -DACEBUS_HOTPLUG +CERRWARN += -_gcc=-Wno-switch # # Turn on doubleword alignment for 64 bit registers diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/montecarlo/pcf8574_nct/Makefile --- a/usr/src/uts/sun4u/montecarlo/pcf8574_nct/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/montecarlo/pcf8574_nct/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the pcf8574 driver kernel module # @@ -58,6 +58,7 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) -DNORDICA_CP1500 +CERRWARN += -_gcc=-Wno-uninitialized # # Turn on doubleword alignment for 64 bit registers diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/montecarlo/scsb/Makefile --- a/usr/src/uts/sun4u/montecarlo/scsb/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/montecarlo/scsb/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the scsb driver kernel module # @@ -60,6 +60,11 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) -DNORDICA_CP1500 +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized # # Turn on doubleword alignment for 64 bit registers diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/mpxu/tsalarm/Makefile --- a/usr/src/uts/sun4u/mpxu/tsalarm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/mpxu/tsalarm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # Path to the base of the uts directory tree (usually /usr/src/uts). # @@ -66,6 +66,7 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses # # Turn on doubleword alignment for 64 bit registers diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/nxge/Makefile --- a/usr/src/uts/sun4u/nxge/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/nxge/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -18,17 +18,17 @@ # # CDDL HEADER END # -# uts/sun4u/nxge/Makefile + # # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the Sun # 10G/1G Ethernet leaf driver kernel module. # + # # Path to the base of the uts directory tree (usually /usr/src/uts). # @@ -87,6 +87,13 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW + +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-type-limits + # # Driver depends on mac & IP # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/opl/dr/Makefile --- a/usr/src/uts/sun4u/opl/dr/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/opl/dr/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the dr driver module. # @@ -59,6 +59,8 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses # # module dependencies diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/opl/drmach/Makefile --- a/usr/src/uts/sun4u/opl/drmach/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/opl/drmach/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the drmach loadable module. # @@ -63,6 +63,9 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized # # module dependencies diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/opl/mc-opl/Makefile --- a/usr/src/uts/sun4u/opl/mc-opl/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/opl/mc-opl/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the mc-opl driver kernel # module. @@ -61,6 +61,9 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) -I../sys +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-type-limits # # Turn on doubleword alignment for 64 bit registers diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/opl/olympus_c/Makefile --- a/usr/src/uts/sun4u/opl/olympus_c/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/opl/olympus_c/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -75,6 +75,7 @@ # OLYMPUS_C_DEFS += -DOLYMPUS_C CFLAGS += $(CCVERBOSE) $(OLYMPUS_C_DEFS) +CERRWARN += -_gcc=-Wno-uninitialized CPPFLAGS += -DCPU_MODULE -DOLYMPUS_C AS_CPPFLAGS += -DCPU_MODULE -DOLYMPUS_C diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/opl/oplmsu/Makefile --- a/usr/src/uts/sun4u/opl/oplmsu/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/opl/oplmsu/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the oplmsu driver # loadable module. @@ -61,6 +61,9 @@ CFLAGS += $(CCVERBOSE) -I../sys LDFLAGS += -dy -Ndrv/su +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/opl/oplpanel/Makefile --- a/usr/src/uts/sun4u/opl/oplpanel/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/opl/oplpanel/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -21,7 +21,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the oplpanel driver # loadable module. @@ -59,6 +59,7 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) -I../sys +CERRWARN += -_gcc=-Wno-unused-function # # Default build targets. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/opl/pcicmu/Makefile --- a/usr/src/uts/sun4u/opl/pcicmu/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/opl/pcicmu/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the pcicmu driver kernel module # @@ -60,6 +60,10 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) -I../sys +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-label # # Turn on doubleword alignment for 64 bit registers diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/opl/unix/Makefile --- a/usr/src/uts/sun4u/opl/unix/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/opl/unix/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of unix (and unix.o). # @@ -114,6 +114,18 @@ # CFLAGS += $(CCVERBOSE) -dalign +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-clobbered +CERRWARN += -_gcc=-Wno-empty-body +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-switch + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/opl_cfg/Makefile --- a/usr/src/uts/sun4u/opl_cfg/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/opl_cfg/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -18,13 +18,13 @@ # # CDDL HEADER END # + # -# uts/sun4u/opl_cfg/Makefile # # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the opl_cfg Jupiter Bus # Configurator @@ -83,6 +83,8 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/opl_pcbe/Makefile --- a/usr/src/uts/sun4u/opl_pcbe/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/opl_pcbe/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # uts/sun4u/opl_pcbe/Makefile # @@ -66,6 +66,8 @@ LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-type-limits + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/pca9556/Makefile --- a/usr/src/uts/sun4u/pca9556/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/pca9556/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # This makefile drives the pca9556 build. # # Path to the base of the uts directory tree (usually /usr/src/uts). @@ -56,6 +56,8 @@ # LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-uninitialized + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/pcie/Makefile --- a/usr/src/uts/sun4u/pcie/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/pcie/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -63,6 +63,11 @@ # LDFLAGS += -dy -Nmisc/busra +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-type-limits + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/pcipsy/Makefile --- a/usr/src/uts/sun4u/pcipsy/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/pcipsy/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the pci driver kernel module # @@ -76,6 +76,10 @@ LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-function + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/pcisch/Makefile --- a/usr/src/uts/sun4u/pcisch/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/pcisch/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the pci driver kernel module # @@ -76,6 +76,11 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_STATIC_UNUSED +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-value + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/pic16f747/Makefile --- a/usr/src/uts/sun4u/pic16f747/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/pic16f747/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,10 +24,6 @@ # Use is subject to license terms. # -# -#ident "%Z%%M% %I% %E% SMI" -# - # This makefile drives the pic16f747 build. # # Path to the base of the uts directory tree (usually /usr/src/uts). @@ -57,7 +53,8 @@ # # lint pass one enforcement # -CFLAGS += $(CCVERBOSE) +CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses # # Default build targets. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/pmubus/Makefile --- a/usr/src/uts/sun4u/pmubus/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/pmubus/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" # # This makefile drives the production of the pmubus driver kernel module @@ -77,6 +76,9 @@ # LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/ppm/Makefile --- a/usr/src/uts/sun4u/ppm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/ppm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the power managment # module for the Tomatillo ASIC @@ -74,6 +74,10 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Turn on doubleword alignment for 64 bit registers # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/px/Makefile --- a/usr/src/uts/sun4u/px/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/px/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -82,6 +82,13 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-label + # # Dependency # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/rmclomv/Makefile --- a/usr/src/uts/sun4u/rmclomv/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/rmclomv/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the rmclomv driver kernel # module in the sun4u systems @@ -74,6 +74,8 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/rootnex/Makefile --- a/usr/src/uts/sun4u/rootnex/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/rootnex/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the rootnex driver # @@ -77,6 +77,11 @@ LINTTAGS += -erroff=E_STATIC_UNUSED LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/sbbc/Makefile --- a/usr/src/uts/sun4u/sbbc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/sbbc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the sbbc driver kernel module # @@ -76,6 +76,8 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-switch + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/sbd/Makefile --- a/usr/src/uts/sun4u/sbd/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/sbd/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the sbd driver module. # @@ -60,6 +60,9 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-label # # Default build targets. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/sbus/Makefile --- a/usr/src/uts/sun4u/sbus/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/sbus/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the SBus driver kernel module, # the iommu nexus, and the obio nexus (which really is sbus on sun5). @@ -78,6 +78,9 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/sbusmem/Makefile --- a/usr/src/uts/sun4u/sbusmem/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/sbusmem/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the sbusmem driver kernel module. # @@ -60,7 +60,9 @@ # # lint pass one enforcement # -CFLAGS += $(CCVERBOSE) +CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-variable # # Default build targets. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/seeprom/Makefile --- a/usr/src/uts/sun4u/seeprom/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/seeprom/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -18,8 +18,7 @@ # # CDDL HEADER END # -# -#ident "%Z%%M% %I% %E% SMI" + # # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. @@ -58,6 +57,8 @@ # LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED +CERRWARN += -_gcc=-Wno-uninitialized + # # Define targets # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/serengeti/cheetah/Makefile --- a/usr/src/uts/sun4u/serengeti/cheetah/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/serengeti/cheetah/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -77,6 +77,11 @@ CFLAGS += $(CCVERBOSE) -DCHEETAH ASFLAGS += -DCHEETAH +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-clobbered + # # cpu-module-specific flags # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/serengeti/cheetahplus/Makefile --- a/usr/src/uts/sun4u/serengeti/cheetahplus/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/serengeti/cheetahplus/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -80,6 +80,12 @@ ASFLAGS += -DCHEETAH -DCHEETAH_PLUS -DCPU_IMP_L1_CACHE_PARITY \ -DCPU_IMP_ECACHE_ASSOC -DCPU_IMP_DUAL_PAGESIZE -DCPU_IMP_AFSR_EXT +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-clobbered + # # cpu-module-specific flags # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/serengeti/platmod/Makefile --- a/usr/src/uts/sun4u/serengeti/platmod/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/serengeti/platmod/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# # # This makefile drives the production of the sun4u serengeti platform @@ -77,6 +75,8 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized # # Default build targets. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/serengeti/sbdp/Makefile --- a/usr/src/uts/sun4u/serengeti/sbdp/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/serengeti/sbdp/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the sbdp driver kernel module. # @@ -69,6 +69,11 @@ CFLAGS += $(CCVERBOSE) LDFLAGS += -dy -Ndrv/sgsbbc +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-variable + # # Turn on doubleword alignment for 64 bit registers # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/serengeti/sgcn/Makefile --- a/usr/src/uts/sun4u/serengeti/sgcn/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/serengeti/sgcn/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the "sgcn" driver module. # @@ -68,6 +68,9 @@ CFLAGS += $(CCVERBOSE) LDFLAGS += -dy -Ndrv/sgsbbc +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/serengeti/sghsc/Makefile --- a/usr/src/uts/sun4u/serengeti/sghsc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/serengeti/sghsc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the sghsc driver # kernel module. @@ -68,6 +68,8 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-uninitialized # # Turn on doubleword alignment for 64 bit registers diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/serengeti/sgsbbc/Makefile --- a/usr/src/uts/sun4u/serengeti/sgsbbc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/serengeti/sgsbbc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the serengeti sbbc # kernel module. @@ -69,6 +69,11 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized # # Default build targets. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/serengeti/ssm/Makefile --- a/usr/src/uts/sun4u/serengeti/ssm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/serengeti/ssm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the sram driver kernel module. # @@ -68,6 +68,8 @@ CFLAGS += $(CCVERBOSE) LDFLAGS += -dy -Ndrv/sgsbbc +CERRWARN += -_gcc=-Wno-type-limits + # # Turn on doubleword alignment for 64 bit registers # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/serengeti/unix/Makefile --- a/usr/src/uts/sun4u/serengeti/unix/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/serengeti/unix/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# # # This makefile drives the production of unix (and unix.o). @@ -115,6 +113,18 @@ # CFLAGS += $(CCVERBOSE) -dalign +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-clobbered +CERRWARN += -_gcc=-Wno-empty-body +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-switch + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/serrano/Makefile --- a/usr/src/uts/sun4u/serrano/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/serrano/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -128,3 +128,7 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-clobbered diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/sf/Makefile --- a/usr/src/uts/sun4u/sf/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/sf/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -76,6 +76,10 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/sha1/Makefile --- a/usr/src/uts/sun4u/sha1/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/sha1/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -67,6 +67,8 @@ CFLAGS += -DVIS_SHA1 LINTFLAGS += -I$(COM_DIR) +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/simba/Makefile --- a/usr/src/uts/sun4u/simba/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/simba/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the pci driver kernel module # @@ -62,7 +62,8 @@ # # lint pass one enforcement # -CFLAGS += $(CCVERBOSE) +CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-switch # # Turn on doubleword alignment for 64 bit registers diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/spitfire/Makefile --- a/usr/src/uts/sun4u/spitfire/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/spitfire/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -86,6 +86,8 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_BAD_FORMAT_STR2 +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/starcat/cheetah/Makefile --- a/usr/src/uts/sun4u/starcat/cheetah/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/starcat/cheetah/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -75,6 +75,11 @@ # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-clobbered + # # cpu-module-specific flags # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/starcat/cheetahplus/Makefile --- a/usr/src/uts/sun4u/starcat/cheetahplus/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/starcat/cheetahplus/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -79,6 +79,12 @@ ASFLAGS += -DCHEETAH -DCHEETAH_PLUS -DCPU_IMP_L1_CACHE_PARITY \ -DCPU_IMP_ECACHE_ASSOC -DCPU_IMP_DUAL_PAGESIZE -DCPU_IMP_AFSR_EXT +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-clobbered + # # cpu-module-specific flags # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/starcat/dman/Makefile --- a/usr/src/uts/sun4u/starcat/dman/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/starcat/dman/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the pruction of the Management Network # @@ -60,6 +60,11 @@ CFLAGS += $(CCVERBOSE) LDFLAGS += -dy -Ndrv/ip -Ndrv/eri -Ndrv/iosram -Nmisc/mboxsc +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-type-limits + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/starcat/dr/Makefile --- a/usr/src/uts/sun4u/starcat/dr/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/starcat/dr/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the dr driver module. # @@ -60,6 +60,8 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) -I../sys +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized # # module dependencies diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/starcat/drmach/Makefile --- a/usr/src/uts/sun4u/starcat/drmach/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/starcat/drmach/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the drmach loadable module. # @@ -60,6 +60,10 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) -I../sys -I$(UTSBASE)/sun4u/starcat/sys +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-type-limits # # module dependencies diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/starcat/fcgp2/Makefile --- a/usr/src/uts/sun4u/starcat/fcgp2/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/starcat/fcgp2/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the fcgp2 # miscellaneous module. @@ -60,6 +60,7 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized # # module dependencies diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/starcat/iosram/Makefile --- a/usr/src/uts/sun4u/starcat/iosram/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/starcat/iosram/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the iosram driver module. # @@ -59,6 +59,7 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized # # module dependencies diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/starcat/platmod/Makefile --- a/usr/src/uts/sun4u/starcat/platmod/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/starcat/platmod/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# # # This makefile drives the production of the sun4u starcat platform @@ -68,6 +66,7 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-unused-variable # # Default build targets. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/starcat/sc_gptwocfg/Makefile --- a/usr/src/uts/sun4u/starcat/sc_gptwocfg/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/starcat/sc_gptwocfg/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the sc_gptwocfg # miscellaneous module. @@ -60,6 +60,7 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) -I../sys -I$(UTSBASE)/sun4u/starcat/sys +CERRWARN += -_gcc=-Wno-uninitialized # # module dependencies diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/starcat/scosmb/Makefile --- a/usr/src/uts/sun4u/starcat/scosmb/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/starcat/scosmb/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the scosmb miscellaneous module. # @@ -59,6 +59,8 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized # # module dependencies diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/starcat/unix/Makefile --- a/usr/src/uts/sun4u/starcat/unix/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/starcat/unix/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -113,6 +113,18 @@ # CFLAGS += $(CCVERBOSE) -dalign +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-clobbered +CERRWARN += -_gcc=-Wno-empty-body +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-switch + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/starfire/cvc/Makefile --- a/usr/src/uts/sun4u/starfire/cvc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/starfire/cvc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -# ident "%Z%%M% %I% %E% SMI" -# # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -60,6 +58,8 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized # # Default build targets. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/starfire/idn/Makefile --- a/usr/src/uts/sun4u/starfire/idn/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/starfire/idn/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the idn driver module. # @@ -63,6 +63,10 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) -DIPV6 +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-type-limits # # Default build targets. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/starfire/ngdr/Makefile --- a/usr/src/uts/sun4u/starfire/ngdr/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/starfire/ngdr/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the ngdr driver module. # @@ -60,6 +60,8 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized # # module dependencies diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/starfire/ngdrmach/Makefile --- a/usr/src/uts/sun4u/starfire/ngdrmach/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/starfire/ngdrmach/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -58,6 +58,7 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized # # Define dependency on cvc diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/starfire/pcipsy/Makefile --- a/usr/src/uts/sun4u/starfire/pcipsy/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/starfire/pcipsy/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -# ident "%Z%%M% %I% %E% SMI" -# # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -61,6 +59,9 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-function # # Turn on doubleword alignment for 64 bit registers diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/starfire/rootnex/Makefile --- a/usr/src/uts/sun4u/starfire/rootnex/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/starfire/rootnex/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -# ident "%Z%%M% %I% %E% SMI" -# # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -67,6 +65,10 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch # # Default build targets. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/starfire/sbus/Makefile --- a/usr/src/uts/sun4u/starfire/sbus/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/starfire/sbus/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -20,8 +20,6 @@ # CDDL HEADER END # # -# ident "%Z%%M% %I% %E% SMI" -# # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -65,6 +63,8 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-uninitialized # # Turn on doubleword alignment for 64 bit registers diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/starfire/spitfire/Makefile --- a/usr/src/uts/sun4u/starfire/spitfire/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/starfire/spitfire/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -67,6 +67,7 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized CPPFLAGS += -DCPU_MODULE -DSPITFIRE AS_CPPFLAGS += -DCPU_MODULE -DSPITFIRE diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/starfire/unix/Makefile --- a/usr/src/uts/sun4u/starfire/unix/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/starfire/unix/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -106,6 +106,18 @@ # CFLAGS += $(CCVERBOSE) -dalign +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-clobbered +CERRWARN += -_gcc=-Wno-empty-body +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-switch + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/su/Makefile --- a/usr/src/uts/sun4u/su/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/su/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the sun4u "su" driver module. # @@ -69,6 +69,9 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/sunfire/ac/Makefile --- a/usr/src/uts/sun4u/sunfire/ac/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/sunfire/ac/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -58,6 +58,7 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized # # Turn on doubleword alignment for 64 bit registers diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/sunfire/sysctrl/Makefile --- a/usr/src/uts/sun4u/sunfire/sysctrl/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/sunfire/sysctrl/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -59,6 +59,8 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized # # Turn on doubleword alignment for 64 bit registers diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/tazmo/envctrl/Makefile --- a/usr/src/uts/sun4u/tazmo/envctrl/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/tazmo/envctrl/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the envctrl driver kernel # module. @@ -60,6 +60,9 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-type-limits # # Turn on doubleword alignment for 64 bit registers diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/tod/Makefile --- a/usr/src/uts/sun4u/tod/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/tod/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of tod driver # @@ -60,7 +60,8 @@ # # lint pass one enforcement # -CFLAGS += $(CCVERBOSE) +CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses # # Default build targets. diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/todds1287/Makefile --- a/usr/src/uts/sun4u/todds1287/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/todds1287/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of todds1287 kernel module. # @@ -67,6 +67,8 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/unix/Makefile --- a/usr/src/uts/sun4u/unix/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/unix/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -120,6 +120,18 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-clobbered +CERRWARN += -_gcc=-Wno-empty-body +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-switch + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/upa64s/Makefile --- a/usr/src/uts/sun4u/upa64s/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/upa64s/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # sun4u implementation architecture dependent # @@ -66,6 +66,10 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/us/Makefile --- a/usr/src/uts/sun4u/us/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/us/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of us (UltraSPARC) driver # kernel module. @@ -75,6 +75,9 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/us234_pcbe/Makefile --- a/usr/src/uts/sun4u/us234_pcbe/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/us234_pcbe/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This Makefile builds the UltraSPARC 2 - 4 Performance Counter BackEnd (PCBE). # @@ -59,6 +59,8 @@ LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-type-limits + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/vis/Makefile --- a/usr/src/uts/sun4u/vis/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/vis/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,6 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" # # This makefile drives the production of the vis kernel module # @@ -61,6 +60,7 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/zs/Makefile --- a/usr/src/uts/sun4u/zs/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/zs/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the sun4u "zs" driver module. # @@ -77,6 +77,9 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/zsh/Makefile --- a/usr/src/uts/sun4u/zsh/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/zsh/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -74,6 +74,8 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4u/zuluvm/Makefile --- a/usr/src/uts/sun4u/zuluvm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4u/zuluvm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" # # This makefile drives the production of the zulunvm # mics module @@ -88,6 +87,8 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4v/bge/Makefile --- a/usr/src/uts/sun4v/bge/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4v/bge/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the Broadcom BCM5704 # Gigabit Ethernet (BGE) driver module in sun4v systems @@ -76,6 +76,10 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4v/bootdev/Makefile --- a/usr/src/uts/sun4v/bootdev/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4v/bootdev/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" # # This makefile drives the production of the bootdev misc kernel @@ -67,6 +66,8 @@ # LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4v/dr_io/Makefile --- a/usr/src/uts/sun4v/dr_io/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4v/dr_io/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# + # # Path to the base of the uts directory tree (usually /usr/src/uts). @@ -55,6 +54,8 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized # # Turn on doubleword alignment for 64 bit registers diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4v/dr_mem/Makefile --- a/usr/src/uts/sun4v/dr_mem/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4v/dr_mem/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -53,6 +53,7 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses # # Turn on doubleword alignment for 64 bit registers diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4v/ds/Makefile --- a/usr/src/uts/sun4v/ds/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4v/ds/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the ds kernel module. # @@ -77,6 +77,8 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4v/ds_pri/Makefile --- a/usr/src/uts/sun4v/ds_pri/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4v/ds_pri/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the pseudo device # to access the sun4v PRI @@ -66,7 +66,8 @@ # # lint pass one enforcement # -CFLAGS += -v +CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized # # Module Dependencies diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4v/ebus/Makefile --- a/usr/src/uts/sun4v/ebus/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4v/ebus/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the ebus driver kernel module # @@ -75,6 +75,9 @@ # LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4v/fpc/Makefile --- a/usr/src/uts/sun4v/fpc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4v/fpc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -21,7 +21,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # uts/sun4v/fpc/Makefile # @@ -67,6 +67,7 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-unused-variable # # Turn on doubleword alignment for 64 bit registers diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4v/generic/Makefile --- a/usr/src/uts/sun4v/generic/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4v/generic/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -69,6 +69,7 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses # # cpu-module-specific flags diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4v/genunix/Makefile --- a/usr/src/uts/sun4v/genunix/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4v/genunix/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -118,6 +118,18 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-clobbered +CERRWARN += -_gcc=-Wno-empty-body + + # Ensure that lint sees 'struct cpu' containing a fully declared # embedded 'struct machcpu'. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4v/ldc/Makefile --- a/usr/src/uts/sun4v/ldc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4v/ldc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # uts/sun4v/ldc/Makefile # @@ -78,6 +78,9 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-parentheses + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4v/mdesc/Makefile --- a/usr/src/uts/sun4v/mdesc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4v/mdesc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the pseudo device # to access the sun4v machine description. @@ -67,6 +67,7 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-unused-function # # For now, disable these lint checks; maintainers should endeavor diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4v/n2piupc/Makefile --- a/usr/src/uts/sun4v/n2piupc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4v/n2piupc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -21,7 +21,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # uts/sun4v/n2piupc/Makefile # @@ -66,6 +66,7 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-unused-label # # Turn on doubleword alignment for 64 bit registers, and pass in module name diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4v/n2rng/Makefile --- a/usr/src/uts/sun4v/n2rng/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4v/n2rng/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -66,8 +66,9 @@ # # lint pass one enforcement # -CFLAGS += -v -DN2 -I$(COM_DIR) +CFLAGS += $(CCVERBOSE) -DN2 -I$(COM_DIR) LINTFLAGS += -DN2 -I$(COM_DIR) +CERRWARN += -_gcc=-Wno-uninitialized # # module dependencies diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4v/niagara/Makefile --- a/usr/src/uts/sun4v/niagara/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4v/niagara/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# # # This makefile drives the production of the UltraSPARC-H20 cpu module. @@ -69,6 +67,7 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) -DNIAGARA_IMPL +CERRWARN += -_gcc=-Wno-parentheses # # cpu-module-specific flags diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4v/niagara_pcbe/Makefile --- a/usr/src/uts/sun4v/niagara_pcbe/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4v/niagara_pcbe/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This Makefile builds the UltraSPARC-T1 Performance Counter BackEnd (PCBE). # @@ -58,6 +58,8 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON +CERRWARN += -_gcc=-Wno-type-limits + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4v/niumx/Makefile --- a/usr/src/uts/sun4v/niumx/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4v/niumx/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -63,6 +63,8 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized # # Turn on doubleword alignment for 64 bit registers diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4v/nxge/Makefile --- a/usr/src/uts/sun4v/nxge/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4v/nxge/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,6 @@ # Use is subject to license terms. # # -# ident "%Z%%M% %I% %E% SMI" # # This makefile drives the production of the N2 NIU # 10G and SUN 10G/1G Ethernet leaf driver kernel module. @@ -112,6 +111,13 @@ # LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW + +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-type-limits + # # Driver depends on mac & IP # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4v/ontario/tsalarm/Makefile --- a/usr/src/uts/sun4v/ontario/tsalarm/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4v/ontario/tsalarm/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # Path to the base of the uts directory tree (usually /usr/src/uts). # @@ -85,6 +85,9 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4v/pcie/Makefile --- a/usr/src/uts/sun4v/pcie/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4v/pcie/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -63,6 +63,11 @@ # LDFLAGS += -dy -Nmisc/busra +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-type-limits + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4v/platsvc/Makefile --- a/usr/src/uts/sun4v/platsvc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4v/platsvc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -56,6 +56,7 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized # # Turn on doubleword alignment for 64 bit registers diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4v/px/Makefile --- a/usr/src/uts/sun4v/px/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4v/px/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -85,6 +85,14 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-clobbered +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-label + # Dependency # LDFLAGS += -dy -Nmisc/pcie diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4v/qcn/Makefile --- a/usr/src/uts/sun4v/qcn/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4v/qcn/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the qcn driver kernel module. # @@ -66,6 +66,9 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function # # For now, disable these lint checks; maintainers should endeavor diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4v/rootnex/Makefile --- a/usr/src/uts/sun4v/rootnex/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4v/rootnex/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the rootnex driver # @@ -66,7 +66,11 @@ # # lint pass one enforcement # -CFLAGS += $(CCVERBOSE) +CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-switch +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized # # For now, disable these lint checks; maintainers should endeavor diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4v/su/Makefile --- a/usr/src/uts/sun4v/su/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4v/su/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the sun4v "su" driver module. # @@ -69,6 +69,9 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4v/unix/Makefile --- a/usr/src/uts/sun4v/unix/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4v/unix/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,8 +23,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# # # This makefile drives the production of /unix (and unix.o). @@ -121,6 +119,18 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-char-subscripts +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-clobbered +CERRWARN += -_gcc=-Wno-empty-body +CERRWARN += -_gcc=-Wno-unused-value +CERRWARN += -_gcc=-Wno-switch + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4v/vcc/Makefile --- a/usr/src/uts/sun4v/vcc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4v/vcc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -25,7 +25,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the vcc driver kernel module. # @@ -68,6 +68,9 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-uninitialized # # compiler failes with not reached statements diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4v/vdc/Makefile --- a/usr/src/uts/sun4v/vdc/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4v/vdc/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -65,6 +65,9 @@ CFLAGS += $(CCVERBOSE) CFLAGS += -D_EXTVTOC +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + LDFLAGS += -dy -Nmisc/ldc -Nmisc/platsvc -Nmisc/scsi # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4v/vds/Makefile --- a/usr/src/uts/sun4v/vds/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4v/vds/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -65,6 +65,8 @@ CFLAGS += $(CCVERBOSE) CFLAGS += -D_EXTVTOC +CERRWARN += -_gcc=-Wno-uninitialized + # # module dependencies # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4v/vis/Makefile --- a/usr/src/uts/sun4v/vis/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4v/vis/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -24,7 +24,7 @@ # Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the vis kernel module # @@ -61,6 +61,7 @@ # lint pass one enforcement # CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-uninitialized .KEEP_STATE: diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4v/vlds/Makefile --- a/usr/src/uts/sun4v/vlds/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4v/vlds/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -64,7 +64,8 @@ # # lint pass one enforcement # -CFLAGS += -v +CFLAGS += $(CCVERBOSE) +CERRWARN += -_gcc=-Wno-parentheses # # Module Dependencies diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4v/vnet/Makefile --- a/usr/src/uts/sun4v/vnet/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4v/vnet/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # uts/sun4v/vnet/Makefile # @@ -86,6 +86,14 @@ LINTTAGS += -erroff=E_STATIC_UNUSED LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-clobbered +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-uninitialized + # # Default build targets. # diff -r 6bef548f1800 -r 58bc6f85b799 usr/src/uts/sun4v/vsw/Makefile --- a/usr/src/uts/sun4v/vsw/Makefile Mon Jun 25 21:03:47 2012 -0400 +++ b/usr/src/uts/sun4v/vsw/Makefile Sun Jul 22 16:03:46 2012 -0400 @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # uts/sun4v/vsw/Makefile # @@ -96,6 +96,13 @@ LINTTAGS += -erroff=E_STATIC_UNUSED LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON +CERRWARN += -_gcc=-Wno-type-limits +CERRWARN += -_gcc=-Wno-clobbered +CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-uninitialized +CERRWARN += -_gcc=-Wno-unused-function +CERRWARN += -_gcc=-Wno-unused-label + # # Default build targets. #