summaryrefslogtreecommitdiff
path: root/usr/src/uts/sun4u
diff options
context:
space:
mode:
authorRichard Lowe <richlowe@richlowe.net>2012-07-22 16:03:46 -0400
committerRichard Lowe <richlowe@richlowe.net>2012-09-22 19:47:23 -0400
commit7014882c6a3672fd0e5d60200af8643ae53c5928 (patch)
tree2c46b144ad1c8047ab5b22280d7f3920fa47c453 /usr/src/uts/sun4u
parent1a5ea5323390ffdf86f171d238b41e381d2292b9 (diff)
downloadillumos-joyent-7014882c6a3672fd0e5d60200af8643ae53c5928.tar.gz
2933 compiler warning gags need better granularity
Reviewed by: Eric Schrock <eric.schrock@delphix.com> Approved by: Garrett D'Amore <garrett@damore.org>
Diffstat (limited to 'usr/src/uts/sun4u')
-rw-r--r--usr/src/uts/sun4u/arcfour/Makefile2
-rw-r--r--usr/src/uts/sun4u/bignum/Makefile1
-rw-r--r--usr/src/uts/sun4u/blade/bscv/Makefile3
-rw-r--r--usr/src/uts/sun4u/bootdev/Makefile3
-rw-r--r--usr/src/uts/sun4u/cheetah/Makefile4
-rw-r--r--usr/src/uts/sun4u/cheetahplus/Makefile5
-rw-r--r--usr/src/uts/sun4u/cherrystone/platmod/Makefile3
-rw-r--r--usr/src/uts/sun4u/chicago/fpc/Makefile2
-rw-r--r--usr/src/uts/sun4u/chicago/platmod/Makefile3
-rw-r--r--usr/src/uts/sun4u/cpr/Makefile6
-rw-r--r--usr/src/uts/sun4u/daktari/hpc3130/Makefile3
-rw-r--r--usr/src/uts/sun4u/daktari/platmod/Makefile3
-rw-r--r--usr/src/uts/sun4u/db21554/Makefile6
-rw-r--r--usr/src/uts/sun4u/des/Makefile5
-rw-r--r--usr/src/uts/sun4u/ebus/Makefile5
-rw-r--r--usr/src/uts/sun4u/excalibur/xcalppm/Makefile5
-rw-r--r--usr/src/uts/sun4u/fd/Makefile6
-rw-r--r--usr/src/uts/sun4u/genunix/Makefile11
-rw-r--r--usr/src/uts/sun4u/gpio_87317/Makefile5
-rw-r--r--usr/src/uts/sun4u/gptwo_cpu/Makefile7
-rw-r--r--usr/src/uts/sun4u/hummingbird/Makefile2
-rw-r--r--usr/src/uts/sun4u/isadma/Makefile4
-rw-r--r--usr/src/uts/sun4u/jalapeno/Makefile4
-rw-r--r--usr/src/uts/sun4u/javelin/envctrltwo/Makefile4
-rw-r--r--usr/src/uts/sun4u/kb/Makefile6
-rw-r--r--usr/src/uts/sun4u/lw8/ntwdt/Makefile3
-rw-r--r--usr/src/uts/sun4u/lw8/platmod/Makefile4
-rw-r--r--usr/src/uts/sun4u/lw8/sgenv/Makefile4
-rw-r--r--usr/src/uts/sun4u/max1617/Makefile7
-rw-r--r--usr/src/uts/sun4u/mc-us3/Makefile4
-rw-r--r--usr/src/uts/sun4u/mc-us3i/Makefile6
-rw-r--r--usr/src/uts/sun4u/mem_cache/Makefile5
-rw-r--r--usr/src/uts/sun4u/montecarlo/acebus/Makefile3
-rw-r--r--usr/src/uts/sun4u/montecarlo/pcf8574_nct/Makefile3
-rw-r--r--usr/src/uts/sun4u/montecarlo/scsb/Makefile7
-rw-r--r--usr/src/uts/sun4u/mpxu/tsalarm/Makefile3
-rw-r--r--usr/src/uts/sun4u/nxge/Makefile13
-rw-r--r--usr/src/uts/sun4u/opl/dr/Makefile4
-rw-r--r--usr/src/uts/sun4u/opl/drmach/Makefile5
-rw-r--r--usr/src/uts/sun4u/opl/mc-opl/Makefile5
-rw-r--r--usr/src/uts/sun4u/opl/olympus_c/Makefile1
-rw-r--r--usr/src/uts/sun4u/opl/oplmsu/Makefile5
-rw-r--r--usr/src/uts/sun4u/opl/oplpanel/Makefile3
-rw-r--r--usr/src/uts/sun4u/opl/pcicmu/Makefile6
-rw-r--r--usr/src/uts/sun4u/opl/unix/Makefile14
-rw-r--r--usr/src/uts/sun4u/opl_cfg/Makefile6
-rw-r--r--usr/src/uts/sun4u/opl_pcbe/Makefile4
-rw-r--r--usr/src/uts/sun4u/pca9556/Makefile4
-rw-r--r--usr/src/uts/sun4u/pcie/Makefile5
-rw-r--r--usr/src/uts/sun4u/pcipsy/Makefile6
-rw-r--r--usr/src/uts/sun4u/pcisch/Makefile7
-rw-r--r--usr/src/uts/sun4u/pic16f747/Makefile7
-rw-r--r--usr/src/uts/sun4u/pmubus/Makefile4
-rw-r--r--usr/src/uts/sun4u/ppm/Makefile6
-rw-r--r--usr/src/uts/sun4u/px/Makefile7
-rw-r--r--usr/src/uts/sun4u/rmclomv/Makefile4
-rw-r--r--usr/src/uts/sun4u/rootnex/Makefile7
-rw-r--r--usr/src/uts/sun4u/sbbc/Makefile4
-rw-r--r--usr/src/uts/sun4u/sbd/Makefile5
-rw-r--r--usr/src/uts/sun4u/sbus/Makefile5
-rw-r--r--usr/src/uts/sun4u/sbusmem/Makefile6
-rw-r--r--usr/src/uts/sun4u/seeprom/Makefile5
-rw-r--r--usr/src/uts/sun4u/serengeti/cheetah/Makefile5
-rw-r--r--usr/src/uts/sun4u/serengeti/cheetahplus/Makefile6
-rw-r--r--usr/src/uts/sun4u/serengeti/platmod/Makefile4
-rw-r--r--usr/src/uts/sun4u/serengeti/sbdp/Makefile7
-rw-r--r--usr/src/uts/sun4u/serengeti/sgcn/Makefile5
-rw-r--r--usr/src/uts/sun4u/serengeti/sghsc/Makefile4
-rw-r--r--usr/src/uts/sun4u/serengeti/sgsbbc/Makefile7
-rw-r--r--usr/src/uts/sun4u/serengeti/ssm/Makefile4
-rw-r--r--usr/src/uts/sun4u/serengeti/unix/Makefile14
-rw-r--r--usr/src/uts/sun4u/serrano/Makefile4
-rw-r--r--usr/src/uts/sun4u/sf/Makefile4
-rw-r--r--usr/src/uts/sun4u/sha1/Makefile2
-rw-r--r--usr/src/uts/sun4u/simba/Makefile5
-rw-r--r--usr/src/uts/sun4u/spitfire/Makefile2
-rw-r--r--usr/src/uts/sun4u/starcat/cheetah/Makefile5
-rw-r--r--usr/src/uts/sun4u/starcat/cheetahplus/Makefile6
-rw-r--r--usr/src/uts/sun4u/starcat/dman/Makefile7
-rw-r--r--usr/src/uts/sun4u/starcat/dr/Makefile4
-rw-r--r--usr/src/uts/sun4u/starcat/drmach/Makefile6
-rw-r--r--usr/src/uts/sun4u/starcat/fcgp2/Makefile3
-rw-r--r--usr/src/uts/sun4u/starcat/iosram/Makefile3
-rw-r--r--usr/src/uts/sun4u/starcat/platmod/Makefile3
-rw-r--r--usr/src/uts/sun4u/starcat/sc_gptwocfg/Makefile3
-rw-r--r--usr/src/uts/sun4u/starcat/scosmb/Makefile4
-rw-r--r--usr/src/uts/sun4u/starcat/unix/Makefile12
-rw-r--r--usr/src/uts/sun4u/starfire/cvc/Makefile4
-rw-r--r--usr/src/uts/sun4u/starfire/idn/Makefile6
-rw-r--r--usr/src/uts/sun4u/starfire/ngdr/Makefile4
-rw-r--r--usr/src/uts/sun4u/starfire/ngdrmach/Makefile1
-rw-r--r--usr/src/uts/sun4u/starfire/pcipsy/Makefile5
-rw-r--r--usr/src/uts/sun4u/starfire/rootnex/Makefile6
-rw-r--r--usr/src/uts/sun4u/starfire/sbus/Makefile4
-rw-r--r--usr/src/uts/sun4u/starfire/spitfire/Makefile1
-rw-r--r--usr/src/uts/sun4u/starfire/unix/Makefile12
-rw-r--r--usr/src/uts/sun4u/su/Makefile5
-rw-r--r--usr/src/uts/sun4u/sunfire/ac/Makefile1
-rw-r--r--usr/src/uts/sun4u/sunfire/sysctrl/Makefile2
-rw-r--r--usr/src/uts/sun4u/tazmo/envctrl/Makefile5
-rw-r--r--usr/src/uts/sun4u/tod/Makefile5
-rw-r--r--usr/src/uts/sun4u/todds1287/Makefile4
-rw-r--r--usr/src/uts/sun4u/unix/Makefile12
-rw-r--r--usr/src/uts/sun4u/upa64s/Makefile6
-rw-r--r--usr/src/uts/sun4u/us/Makefile5
-rw-r--r--usr/src/uts/sun4u/us234_pcbe/Makefile4
-rw-r--r--usr/src/uts/sun4u/vis/Makefile2
-rw-r--r--usr/src/uts/sun4u/zs/Makefile5
-rw-r--r--usr/src/uts/sun4u/zsh/Makefile2
-rw-r--r--usr/src/uts/sun4u/zuluvm/Makefile3
110 files changed, 428 insertions, 110 deletions
diff --git a/usr/src/uts/sun4u/arcfour/Makefile b/usr/src/uts/sun4u/arcfour/Makefile
index d0bdcf1258..4eca278804 100644
--- a/usr/src/uts/sun4u/arcfour/Makefile
+++ b/usr/src/uts/sun4u/arcfour/Makefile
@@ -64,6 +64,8 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
CFLAGS += $(CCVERBOSE) -I$(COM_DIR)
LINTFLAGS += -I$(COM_DIR)
+CERRWARN += -_gcc=-Wno-parentheses
+
#
# Turn on doubleword alignment for 64 bit registers
#
diff --git a/usr/src/uts/sun4u/bignum/Makefile b/usr/src/uts/sun4u/bignum/Makefile
index 68bec2efe5..407a7bc3f0 100644
--- a/usr/src/uts/sun4u/bignum/Makefile
+++ b/usr/src/uts/sun4u/bignum/Makefile
@@ -63,6 +63,7 @@ LDFLAGS += -dy -Nmisc/kcf
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 --git a/usr/src/uts/sun4u/blade/bscv/Makefile b/usr/src/uts/sun4u/blade/bscv/Makefile
index 6c95f9e137..ca20d5a1e8 100644
--- a/usr/src/uts/sun4u/blade/bscv/Makefile
+++ b/usr/src/uts/sun4u/blade/bscv/Makefile
@@ -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 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
+CERRWARN += -_gcc=-Wno-uninitialized
#
# Default build targets.
diff --git a/usr/src/uts/sun4u/bootdev/Makefile b/usr/src/uts/sun4u/bootdev/Makefile
index a4be2fff1f..c430b580b2 100644
--- a/usr/src/uts/sun4u/bootdev/Makefile
+++ b/usr/src/uts/sun4u/bootdev/Makefile
@@ -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 @@ CFLAGS += $(CCVERBOSE)
#
LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
+CERRWARN += -_gcc=-Wno-uninitialized
+
#
# Default build targets.
#
diff --git a/usr/src/uts/sun4u/cheetah/Makefile b/usr/src/uts/sun4u/cheetah/Makefile
index eab8f9aa2d..974ea75d75 100644
--- a/usr/src/uts/sun4u/cheetah/Makefile
+++ b/usr/src/uts/sun4u/cheetah/Makefile
@@ -123,3 +123,7 @@ LINTTAGS += -erroff=E_STATIC_UNUSED
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 --git a/usr/src/uts/sun4u/cheetahplus/Makefile b/usr/src/uts/sun4u/cheetahplus/Makefile
index c828a05938..7d68335ee4 100644
--- a/usr/src/uts/sun4u/cheetahplus/Makefile
+++ b/usr/src/uts/sun4u/cheetahplus/Makefile
@@ -129,3 +129,8 @@ LINTTAGS += -erroff=E_STATIC_UNUSED
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 --git a/usr/src/uts/sun4u/cherrystone/platmod/Makefile b/usr/src/uts/sun4u/cherrystone/platmod/Makefile
index 6f84821528..0ed52a75dd 100644
--- a/usr/src/uts/sun4u/cherrystone/platmod/Makefile
+++ b/usr/src/uts/sun4u/cherrystone/platmod/Makefile
@@ -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 @@ $(NOT_RELEASE_BUILD)DEF_BUILDS = debug64
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
+CERRWARN += -_gcc=-Wno-unused-function
#
# Default build targets.
diff --git a/usr/src/uts/sun4u/chicago/fpc/Makefile b/usr/src/uts/sun4u/chicago/fpc/Makefile
index 0173e7af37..bc5c45d7ed 100644
--- a/usr/src/uts/sun4u/chicago/fpc/Makefile
+++ b/usr/src/uts/sun4u/chicago/fpc/Makefile
@@ -103,6 +103,8 @@ CFLAGS += -dalign
#
LINTTAGS += -erroff=E_STATIC_UNUSED
+CERRWARN += -_gcc=-Wno-unused-variable
+
#
# Default build targets.
#
diff --git a/usr/src/uts/sun4u/chicago/platmod/Makefile b/usr/src/uts/sun4u/chicago/platmod/Makefile
index c4188efaf8..4d151c7075 100644
--- a/usr/src/uts/sun4u/chicago/platmod/Makefile
+++ b/usr/src/uts/sun4u/chicago/platmod/Makefile
@@ -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 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
+CERRWARN += -_gcc=-Wno-unused-variable
#
# Default build targets.
diff --git a/usr/src/uts/sun4u/cpr/Makefile b/usr/src/uts/sun4u/cpr/Makefile
index 89f17571e7..5d5b047b47 100644
--- a/usr/src/uts/sun4u/cpr/Makefile
+++ b/usr/src/uts/sun4u/cpr/Makefile
@@ -89,6 +89,12 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
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 --git a/usr/src/uts/sun4u/daktari/hpc3130/Makefile b/usr/src/uts/sun4u/daktari/hpc3130/Makefile
index 6cb51f0a59..abd8689d12 100644
--- a/usr/src/uts/sun4u/daktari/hpc3130/Makefile
+++ b/usr/src/uts/sun4u/daktari/hpc3130/Makefile
@@ -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 @@ CLEANLINTFILES += $(LINT32_FILES)
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
+CERRWARN += -_gcc=-Wno-char-subscripts
#
# Turn on doubleword alignment for 64 bit registers
diff --git a/usr/src/uts/sun4u/daktari/platmod/Makefile b/usr/src/uts/sun4u/daktari/platmod/Makefile
index 764f701dd2..32a7654012 100644
--- a/usr/src/uts/sun4u/daktari/platmod/Makefile
+++ b/usr/src/uts/sun4u/daktari/platmod/Makefile
@@ -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 @@ CLEANLINTFILES += $(LINT32_FILES)
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
+CERRWARN += -_gcc=-Wno-unused-function
#
# Default build targets.
diff --git a/usr/src/uts/sun4u/db21554/Makefile b/usr/src/uts/sun4u/db21554/Makefile
index 54e59b3716..860ed675f7 100644
--- a/usr/src/uts/sun4u/db21554/Makefile
+++ b/usr/src/uts/sun4u/db21554/Makefile
@@ -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 @@ LDFLAGS += -dy -Nmisc/pcihp
#
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 --git a/usr/src/uts/sun4u/des/Makefile b/usr/src/uts/sun4u/des/Makefile
index 62d0157e57..50ce1ffb01 100644
--- a/usr/src/uts/sun4u/des/Makefile
+++ b/usr/src/uts/sun4u/des/Makefile
@@ -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_STATIC_UNUSED
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 --git a/usr/src/uts/sun4u/ebus/Makefile b/usr/src/uts/sun4u/ebus/Makefile
index f6d10c58b6..aa391f1ccd 100644
--- a/usr/src/uts/sun4u/ebus/Makefile
+++ b/usr/src/uts/sun4u/ebus/Makefile
@@ -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 @@ CFLAGS += -dalign
#
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
+CERRWARN += -_gcc=-Wno-switch
+CERRWARN += -_gcc=-Wno-uninitialized
+
#
# Default build targets.
#
diff --git a/usr/src/uts/sun4u/excalibur/xcalppm/Makefile b/usr/src/uts/sun4u/excalibur/xcalppm/Makefile
index 4c3e661c7e..76c4b45f68 100644
--- a/usr/src/uts/sun4u/excalibur/xcalppm/Makefile
+++ b/usr/src/uts/sun4u/excalibur/xcalppm/Makefile
@@ -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 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
# 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 --git a/usr/src/uts/sun4u/fd/Makefile b/usr/src/uts/sun4u/fd/Makefile
index cf023057d9..9d7036feb7 100644
--- a/usr/src/uts/sun4u/fd/Makefile
+++ b/usr/src/uts/sun4u/fd/Makefile
@@ -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_BAD_PTR_CAST_ALIGN
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 --git a/usr/src/uts/sun4u/genunix/Makefile b/usr/src/uts/sun4u/genunix/Makefile
index 1a77e4c916..0f6a33b52d 100644
--- a/usr/src/uts/sun4u/genunix/Makefile
+++ b/usr/src/uts/sun4u/genunix/Makefile
@@ -110,6 +110,17 @@ LINTTAGS += -erroff=E_STATIC_UNUSED
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 --git a/usr/src/uts/sun4u/gpio_87317/Makefile b/usr/src/uts/sun4u/gpio_87317/Makefile
index 203dc22cd0..86374e2b13 100644
--- a/usr/src/uts/sun4u/gpio_87317/Makefile
+++ b/usr/src/uts/sun4u/gpio_87317/Makefile
@@ -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 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
#
# lint pass one enforcement
#
-CFLAGS += $(CCVERBOSE)
+CFLAGS += $(CCVERBOSE)
+CERRWARN += -_gcc=-Wno-parentheses
#
# Default build targets.
diff --git a/usr/src/uts/sun4u/gptwo_cpu/Makefile b/usr/src/uts/sun4u/gptwo_cpu/Makefile
index 06bb109a42..d1a6c1c16e 100644
--- a/usr/src/uts/sun4u/gptwo_cpu/Makefile
+++ b/usr/src/uts/sun4u/gptwo_cpu/Makefile
@@ -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 @@ LDFLAGS += -dy -Nmisc/gptwocfg
#
LINTTAGS += -erroff=E_STATIC_UNUSED
+CERRWARN += -_gcc=-Wno-parentheses
+CERRWARN += -_gcc=-Wno-unused-function
+
#
# Default build targets.
#
diff --git a/usr/src/uts/sun4u/hummingbird/Makefile b/usr/src/uts/sun4u/hummingbird/Makefile
index 836d9192e0..d6eca49e54 100644
--- a/usr/src/uts/sun4u/hummingbird/Makefile
+++ b/usr/src/uts/sun4u/hummingbird/Makefile
@@ -120,3 +120,5 @@ include $(UTSBASE)/sun4u/Makefile.targ
LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
LINTTAGS += -erroff=E_BAD_FORMAT_STR2
+
+CERRWARN += -_gcc=-Wno-uninitialized
diff --git a/usr/src/uts/sun4u/isadma/Makefile b/usr/src/uts/sun4u/isadma/Makefile
index 2956a854ed..6e92243d9a 100644
--- a/usr/src/uts/sun4u/isadma/Makefile
+++ b/usr/src/uts/sun4u/isadma/Makefile
@@ -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 @@ CPPFLAGS += -I$(UTSBASE)/sun4u
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
+CERRWARN += -_gcc=-Wno-switch
+
#
# Default build targets.
#
diff --git a/usr/src/uts/sun4u/jalapeno/Makefile b/usr/src/uts/sun4u/jalapeno/Makefile
index fdd2a22502..a3c45ab0c6 100644
--- a/usr/src/uts/sun4u/jalapeno/Makefile
+++ b/usr/src/uts/sun4u/jalapeno/Makefile
@@ -128,3 +128,7 @@ LINTTAGS += -erroff=E_STATIC_UNUSED
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 --git a/usr/src/uts/sun4u/javelin/envctrltwo/Makefile b/usr/src/uts/sun4u/javelin/envctrltwo/Makefile
index c9989dc8fd..11efab8ed6 100644
--- a/usr/src/uts/sun4u/javelin/envctrltwo/Makefile
+++ b/usr/src/uts/sun4u/javelin/envctrltwo/Makefile
@@ -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 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
+CERRWARN += -_gcc=-Wno-parentheses
+CERRWARN += -_gcc=-Wno-uninitialized
#
# Turn on doubleword alignment for 64 bit registers
diff --git a/usr/src/uts/sun4u/kb/Makefile b/usr/src/uts/sun4u/kb/Makefile
index 1784e6390c..c037619041 100644
--- a/usr/src/uts/sun4u/kb/Makefile
+++ b/usr/src/uts/sun4u/kb/Makefile
@@ -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 @@ CFLAGS += $(CCVERBOSE)
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
+CERRWARN += -_gcc=-Wno-uninitialized
+
#
# Default build targets.
#
diff --git a/usr/src/uts/sun4u/lw8/ntwdt/Makefile b/usr/src/uts/sun4u/lw8/ntwdt/Makefile
index 36d5107c71..004558ea7a 100644
--- a/usr/src/uts/sun4u/lw8/ntwdt/Makefile
+++ b/usr/src/uts/sun4u/lw8/ntwdt/Makefile
@@ -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 @@ CLEANLINTFILES += $(LINT32_FILES)
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
+CERRWARN += -_gcc=-Wno-uninitialized
LDFLAGS += -dy -Ndrv/sgsbbc
diff --git a/usr/src/uts/sun4u/lw8/platmod/Makefile b/usr/src/uts/sun4u/lw8/platmod/Makefile
index df89591cf1..3fd0e01760 100644
--- a/usr/src/uts/sun4u/lw8/platmod/Makefile
+++ b/usr/src/uts/sun4u/lw8/platmod/Makefile
@@ -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 @@ CLEANLINTFILES += $(LINT32_FILES)
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
+CERRWARN += -_gcc=-Wno-unused-variable
+CERRWARN += -_gcc=-Wno-uninitialized
#
# Default build targets.
diff --git a/usr/src/uts/sun4u/lw8/sgenv/Makefile b/usr/src/uts/sun4u/lw8/sgenv/Makefile
index 66f488a6b1..e35528e081 100644
--- a/usr/src/uts/sun4u/lw8/sgenv/Makefile
+++ b/usr/src/uts/sun4u/lw8/sgenv/Makefile
@@ -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 @@ CLEANLINTFILES += $(LINT32_FILES)
CFLAGS += $(CCVERBOSE)
LDFLAGS += -dy -Ndrv/sgsbbc
+CERRWARN += -_gcc=-Wno-type-limits
+
#
# Default build targets.
#
diff --git a/usr/src/uts/sun4u/max1617/Makefile b/usr/src/uts/sun4u/max1617/Makefile
index c3ed52a724..fa8367fd6b 100644
--- a/usr/src/uts/sun4u/max1617/Makefile
+++ b/usr/src/uts/sun4u/max1617/Makefile
@@ -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 @@ include $(UTSBASE)/sun4u/Makefile.sun4u
#
# lint pass one enforcement
#
-CFLAGS += $(CCVERBOSE)
+CFLAGS += $(CCVERBOSE)
+
+CERRWARN += -_gcc=-Wno-unused-label
LDFLAGS += -dy -N misc/i2c_svc
diff --git a/usr/src/uts/sun4u/mc-us3/Makefile b/usr/src/uts/sun4u/mc-us3/Makefile
index 1e0b81b6fc..02f46fc300 100644
--- a/usr/src/uts/sun4u/mc-us3/Makefile
+++ b/usr/src/uts/sun4u/mc-us3/Makefile
@@ -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 @@ CFLAGS += -dalign
#
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
+CERRWARN += -_gcc=-Wno-parentheses
+
#
#Default build targets.
#
diff --git a/usr/src/uts/sun4u/mc-us3i/Makefile b/usr/src/uts/sun4u/mc-us3i/Makefile
index 456c4c80ae..3a233a7361 100644
--- a/usr/src/uts/sun4u/mc-us3i/Makefile
+++ b/usr/src/uts/sun4u/mc-us3i/Makefile
@@ -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 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
+CERRWARN += -_gcc=-Wno-parentheses
+CERRWARN += -_gcc=-Wno-uninitialized
#
# Turn on doubleword alignment for 64 bit registers
diff --git a/usr/src/uts/sun4u/mem_cache/Makefile b/usr/src/uts/sun4u/mem_cache/Makefile
index 123c3f968a..d71809bf31 100644
--- a/usr/src/uts/sun4u/mem_cache/Makefile
+++ b/usr/src/uts/sun4u/mem_cache/Makefile
@@ -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 @@ DSF_DIR = $(UTSBASE)/$(PLATFORM)/mem_cache/genassym
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
+CERRWARN += -_gcc=-Wno-parentheses
ASFLAGS += -DCHEETAH_PLUS
AS_INC_PATH += -I$(DSF_DIR)/$(OBJS_DIR)
diff --git a/usr/src/uts/sun4u/montecarlo/acebus/Makefile b/usr/src/uts/sun4u/montecarlo/acebus/Makefile
index d62a6ee9ec..90d0438d14 100644
--- a/usr/src/uts/sun4u/montecarlo/acebus/Makefile
+++ b/usr/src/uts/sun4u/montecarlo/acebus/Makefile
@@ -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 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE) -DNORDICA_CP1500 -DACEBUS_HOTPLUG
+CERRWARN += -_gcc=-Wno-switch
#
# Turn on doubleword alignment for 64 bit registers
diff --git a/usr/src/uts/sun4u/montecarlo/pcf8574_nct/Makefile b/usr/src/uts/sun4u/montecarlo/pcf8574_nct/Makefile
index 0c30d29d28..7d0d5667c8 100644
--- a/usr/src/uts/sun4u/montecarlo/pcf8574_nct/Makefile
+++ b/usr/src/uts/sun4u/montecarlo/pcf8574_nct/Makefile
@@ -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 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE) -DNORDICA_CP1500
+CERRWARN += -_gcc=-Wno-uninitialized
#
# Turn on doubleword alignment for 64 bit registers
diff --git a/usr/src/uts/sun4u/montecarlo/scsb/Makefile b/usr/src/uts/sun4u/montecarlo/scsb/Makefile
index 0561a8efc6..3076c9dbb6 100644
--- a/usr/src/uts/sun4u/montecarlo/scsb/Makefile
+++ b/usr/src/uts/sun4u/montecarlo/scsb/Makefile
@@ -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 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
# 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 --git a/usr/src/uts/sun4u/mpxu/tsalarm/Makefile b/usr/src/uts/sun4u/mpxu/tsalarm/Makefile
index cca3c7d8d2..db9ad320f0 100644
--- a/usr/src/uts/sun4u/mpxu/tsalarm/Makefile
+++ b/usr/src/uts/sun4u/mpxu/tsalarm/Makefile
@@ -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 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
+CERRWARN += -_gcc=-Wno-parentheses
#
# Turn on doubleword alignment for 64 bit registers
diff --git a/usr/src/uts/sun4u/nxge/Makefile b/usr/src/uts/sun4u/nxge/Makefile
index b16c145e25..b6ff905531 100644
--- a/usr/src/uts/sun4u/nxge/Makefile
+++ b/usr/src/uts/sun4u/nxge/Makefile
@@ -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 @@ LINTFLAGS += -DSOLARIS
#
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 --git a/usr/src/uts/sun4u/opl/dr/Makefile b/usr/src/uts/sun4u/opl/dr/Makefile
index 31d5a8388a..81edee1e96 100644
--- a/usr/src/uts/sun4u/opl/dr/Makefile
+++ b/usr/src/uts/sun4u/opl/dr/Makefile
@@ -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 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
+CERRWARN += -_gcc=-Wno-uninitialized
+CERRWARN += -_gcc=-Wno-parentheses
#
# module dependencies
diff --git a/usr/src/uts/sun4u/opl/drmach/Makefile b/usr/src/uts/sun4u/opl/drmach/Makefile
index 804c421146..e96c6defc4 100644
--- a/usr/src/uts/sun4u/opl/drmach/Makefile
+++ b/usr/src/uts/sun4u/opl/drmach/Makefile
@@ -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 @@ CLEANFILES += $(DRMACH_OFFSETS_H) $(DRMACH_OFFSETS_OUT)
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
+CERRWARN += -_gcc=-Wno-parentheses
+CERRWARN += -_gcc=-Wno-unused-function
+CERRWARN += -_gcc=-Wno-uninitialized
#
# module dependencies
diff --git a/usr/src/uts/sun4u/opl/mc-opl/Makefile b/usr/src/uts/sun4u/opl/mc-opl/Makefile
index 9ac4f46f10..7fd191f904 100644
--- a/usr/src/uts/sun4u/opl/mc-opl/Makefile
+++ b/usr/src/uts/sun4u/opl/mc-opl/Makefile
@@ -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 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
# 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 --git a/usr/src/uts/sun4u/opl/olympus_c/Makefile b/usr/src/uts/sun4u/opl/olympus_c/Makefile
index ba566c0d57..764bad7594 100644
--- a/usr/src/uts/sun4u/opl/olympus_c/Makefile
+++ b/usr/src/uts/sun4u/opl/olympus_c/Makefile
@@ -75,6 +75,7 @@ CLEANLINTFILES += $(LINT32_FILES)
#
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 --git a/usr/src/uts/sun4u/opl/oplmsu/Makefile b/usr/src/uts/sun4u/opl/oplmsu/Makefile
index 851e374f41..8506680c14 100644
--- a/usr/src/uts/sun4u/opl/oplmsu/Makefile
+++ b/usr/src/uts/sun4u/opl/oplmsu/Makefile
@@ -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 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
CFLAGS += $(CCVERBOSE) -I../sys
LDFLAGS += -dy -Ndrv/su
+CERRWARN += -_gcc=-Wno-parentheses
+CERRWARN += -_gcc=-Wno-uninitialized
+
#
# Default build targets.
#
diff --git a/usr/src/uts/sun4u/opl/oplpanel/Makefile b/usr/src/uts/sun4u/opl/oplpanel/Makefile
index 5d2f757b40..aa264cdb3b 100644
--- a/usr/src/uts/sun4u/opl/oplpanel/Makefile
+++ b/usr/src/uts/sun4u/opl/oplpanel/Makefile
@@ -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 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE) -I../sys
+CERRWARN += -_gcc=-Wno-unused-function
#
# Default build targets.
diff --git a/usr/src/uts/sun4u/opl/pcicmu/Makefile b/usr/src/uts/sun4u/opl/pcicmu/Makefile
index f610c04f77..00b9a4213f 100644
--- a/usr/src/uts/sun4u/opl/pcicmu/Makefile
+++ b/usr/src/uts/sun4u/opl/pcicmu/Makefile
@@ -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 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
# 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 --git a/usr/src/uts/sun4u/opl/unix/Makefile b/usr/src/uts/sun4u/opl/unix/Makefile
index f5285d1bd2..916c2f8fe5 100644
--- a/usr/src/uts/sun4u/opl/unix/Makefile
+++ b/usr/src/uts/sun4u/opl/unix/Makefile
@@ -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 @@ CLEANLINTFILES += $(LINT_LIB)
#
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 --git a/usr/src/uts/sun4u/opl_cfg/Makefile b/usr/src/uts/sun4u/opl_cfg/Makefile
index 35bc368ed5..ae72d82246 100644
--- a/usr/src/uts/sun4u/opl_cfg/Makefile
+++ b/usr/src/uts/sun4u/opl_cfg/Makefile
@@ -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 @@ CFLAGS += -dalign
#
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
+CERRWARN += -_gcc=-Wno-uninitialized
+
#
# Default build targets.
#
diff --git a/usr/src/uts/sun4u/opl_pcbe/Makefile b/usr/src/uts/sun4u/opl_pcbe/Makefile
index 3e4a45260d..d47304b06b 100644
--- a/usr/src/uts/sun4u/opl_pcbe/Makefile
+++ b/usr/src/uts/sun4u/opl_pcbe/Makefile
@@ -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 @@ CFLAGS += $(CCVERBOSE)
LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
+CERRWARN += -_gcc=-Wno-type-limits
+
#
# Default build targets.
#
diff --git a/usr/src/uts/sun4u/pca9556/Makefile b/usr/src/uts/sun4u/pca9556/Makefile
index 0ff092bc61..89fe7e08ba 100644
--- a/usr/src/uts/sun4u/pca9556/Makefile
+++ b/usr/src/uts/sun4u/pca9556/Makefile
@@ -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 @@ LDFLAGS += -dy -N misc/i2c_svc
#
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
+CERRWARN += -_gcc=-Wno-uninitialized
+
#
# Define targets
#
diff --git a/usr/src/uts/sun4u/pcie/Makefile b/usr/src/uts/sun4u/pcie/Makefile
index ba42c6770a..d10cf86c92 100644
--- a/usr/src/uts/sun4u/pcie/Makefile
+++ b/usr/src/uts/sun4u/pcie/Makefile
@@ -63,6 +63,11 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
#
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 --git a/usr/src/uts/sun4u/pcipsy/Makefile b/usr/src/uts/sun4u/pcipsy/Makefile
index be05d27de8..0db91a93d1 100644
--- a/usr/src/uts/sun4u/pcipsy/Makefile
+++ b/usr/src/uts/sun4u/pcipsy/Makefile
@@ -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_BAD_PTR_CAST_ALIGN
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 --git a/usr/src/uts/sun4u/pcisch/Makefile b/usr/src/uts/sun4u/pcisch/Makefile
index 862e63e574..d246548ee9 100644
--- a/usr/src/uts/sun4u/pcisch/Makefile
+++ b/usr/src/uts/sun4u/pcisch/Makefile
@@ -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_SUSPICIOUS_COMPARISON
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 --git a/usr/src/uts/sun4u/pic16f747/Makefile b/usr/src/uts/sun4u/pic16f747/Makefile
index 1842b3e79d..530a5790a8 100644
--- a/usr/src/uts/sun4u/pic16f747/Makefile
+++ b/usr/src/uts/sun4u/pic16f747/Makefile
@@ -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 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
#
# lint pass one enforcement
#
-CFLAGS += $(CCVERBOSE)
+CFLAGS += $(CCVERBOSE)
+CERRWARN += -_gcc=-Wno-parentheses
#
# Default build targets.
diff --git a/usr/src/uts/sun4u/pmubus/Makefile b/usr/src/uts/sun4u/pmubus/Makefile
index d7e87189ce..89c6d07fe3 100644
--- a/usr/src/uts/sun4u/pmubus/Makefile
+++ b/usr/src/uts/sun4u/pmubus/Makefile
@@ -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 @@ CPPFLAGS += -I$(UTSBASE)/sun4u
#
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
+CERRWARN += -_gcc=-Wno-switch
+CERRWARN += -_gcc=-Wno-uninitialized
+
#
# Default build targets.
#
diff --git a/usr/src/uts/sun4u/ppm/Makefile b/usr/src/uts/sun4u/ppm/Makefile
index c91f55391f..e13a4da1a8 100644
--- a/usr/src/uts/sun4u/ppm/Makefile
+++ b/usr/src/uts/sun4u/ppm/Makefile
@@ -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_STATIC_UNUSED
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 --git a/usr/src/uts/sun4u/px/Makefile b/usr/src/uts/sun4u/px/Makefile
index c14d4a2f29..0e4a0ad309 100644
--- a/usr/src/uts/sun4u/px/Makefile
+++ b/usr/src/uts/sun4u/px/Makefile
@@ -82,6 +82,13 @@ LINTTAGS += -erroff=E_STATIC_UNUSED
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 --git a/usr/src/uts/sun4u/rmclomv/Makefile b/usr/src/uts/sun4u/rmclomv/Makefile
index 01171c55b5..9d77985ad2 100644
--- a/usr/src/uts/sun4u/rmclomv/Makefile
+++ b/usr/src/uts/sun4u/rmclomv/Makefile
@@ -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 @@ CFLAGS += -dalign
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
+CERRWARN += -_gcc=-Wno-parentheses
+
#
# Default build targets.
#
diff --git a/usr/src/uts/sun4u/rootnex/Makefile b/usr/src/uts/sun4u/rootnex/Makefile
index 0efe6b6ed3..3c31ff2e8f 100644
--- a/usr/src/uts/sun4u/rootnex/Makefile
+++ b/usr/src/uts/sun4u/rootnex/Makefile
@@ -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_BAD_PTR_CAST_ALIGN
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 --git a/usr/src/uts/sun4u/sbbc/Makefile b/usr/src/uts/sun4u/sbbc/Makefile
index 9ef2316b7c..fab5fa1d4b 100644
--- a/usr/src/uts/sun4u/sbbc/Makefile
+++ b/usr/src/uts/sun4u/sbbc/Makefile
@@ -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 @@ CFLAGS += -dalign
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
+CERRWARN += -_gcc=-Wno-switch
+
#
# Default build targets.
#
diff --git a/usr/src/uts/sun4u/sbd/Makefile b/usr/src/uts/sun4u/sbd/Makefile
index 411ef645c0..bab52e56bb 100644
--- a/usr/src/uts/sun4u/sbd/Makefile
+++ b/usr/src/uts/sun4u/sbd/Makefile
@@ -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 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
+CERRWARN += -_gcc=-Wno-parentheses
+CERRWARN += -_gcc=-Wno-uninitialized
+CERRWARN += -_gcc=-Wno-unused-label
#
# Default build targets.
diff --git a/usr/src/uts/sun4u/sbus/Makefile b/usr/src/uts/sun4u/sbus/Makefile
index 25efe4e672..8fee184761 100644
--- a/usr/src/uts/sun4u/sbus/Makefile
+++ b/usr/src/uts/sun4u/sbus/Makefile
@@ -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_BAD_PTR_CAST_ALIGN
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
+CERRWARN += -_gcc=-Wno-type-limits
+CERRWARN += -_gcc=-Wno-uninitialized
+
#
# Default build targets.
#
diff --git a/usr/src/uts/sun4u/sbusmem/Makefile b/usr/src/uts/sun4u/sbusmem/Makefile
index 49d3970650..6fe27c961c 100644
--- a/usr/src/uts/sun4u/sbusmem/Makefile
+++ b/usr/src/uts/sun4u/sbusmem/Makefile
@@ -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 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
#
# lint pass one enforcement
#
-CFLAGS += $(CCVERBOSE)
+CFLAGS += $(CCVERBOSE)
+CERRWARN += -_gcc=-Wno-switch
+CERRWARN += -_gcc=-Wno-unused-variable
#
# Default build targets.
diff --git a/usr/src/uts/sun4u/seeprom/Makefile b/usr/src/uts/sun4u/seeprom/Makefile
index 29a523fb45..df05378e64 100644
--- a/usr/src/uts/sun4u/seeprom/Makefile
+++ b/usr/src/uts/sun4u/seeprom/Makefile
@@ -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 @@ LDFLAGS += -dy -N misc/i2c_svc
#
LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
+CERRWARN += -_gcc=-Wno-uninitialized
+
#
# Define targets
#
diff --git a/usr/src/uts/sun4u/serengeti/cheetah/Makefile b/usr/src/uts/sun4u/serengeti/cheetah/Makefile
index 27a8c3e7c1..48e8935947 100644
--- a/usr/src/uts/sun4u/serengeti/cheetah/Makefile
+++ b/usr/src/uts/sun4u/serengeti/cheetah/Makefile
@@ -77,6 +77,11 @@ CLEANLINTFILES += $(LINT32_FILES)
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 --git a/usr/src/uts/sun4u/serengeti/cheetahplus/Makefile b/usr/src/uts/sun4u/serengeti/cheetahplus/Makefile
index da06097e3e..aa9be6d905 100644
--- a/usr/src/uts/sun4u/serengeti/cheetahplus/Makefile
+++ b/usr/src/uts/sun4u/serengeti/cheetahplus/Makefile
@@ -80,6 +80,12 @@ CFLAGS += $(CCVERBOSE) -DCHEETAH -DCHEETAH_PLUS -DCPU_IMP_L1_CACHE_PARITY \
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 --git a/usr/src/uts/sun4u/serengeti/platmod/Makefile b/usr/src/uts/sun4u/serengeti/platmod/Makefile
index 895376edcb..d4187406bb 100644
--- a/usr/src/uts/sun4u/serengeti/platmod/Makefile
+++ b/usr/src/uts/sun4u/serengeti/platmod/Makefile
@@ -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 @@ CLEANLINTFILES += $(LINT32_FILES)
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
+CERRWARN += -_gcc=-Wno-unused-variable
+CERRWARN += -_gcc=-Wno-uninitialized
#
# Default build targets.
diff --git a/usr/src/uts/sun4u/serengeti/sbdp/Makefile b/usr/src/uts/sun4u/serengeti/sbdp/Makefile
index 196110b742..c1a49ef2ef 100644
--- a/usr/src/uts/sun4u/serengeti/sbdp/Makefile
+++ b/usr/src/uts/sun4u/serengeti/sbdp/Makefile
@@ -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 @@ MACHINE_DEFS += -DCHEETAH_PLUS
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 --git a/usr/src/uts/sun4u/serengeti/sgcn/Makefile b/usr/src/uts/sun4u/serengeti/sgcn/Makefile
index 579fa5be2d..ae115fae1f 100644
--- a/usr/src/uts/sun4u/serengeti/sgcn/Makefile
+++ b/usr/src/uts/sun4u/serengeti/sgcn/Makefile
@@ -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 @@ CLEANLINTFILES += $(LINT32_FILES)
CFLAGS += $(CCVERBOSE)
LDFLAGS += -dy -Ndrv/sgsbbc
+CERRWARN += -_gcc=-Wno-parentheses
+CERRWARN += -_gcc=-Wno-uninitialized
+
#
# Default build targets.
#
diff --git a/usr/src/uts/sun4u/serengeti/sghsc/Makefile b/usr/src/uts/sun4u/serengeti/sghsc/Makefile
index a0410766f2..684a7ec7ec 100644
--- a/usr/src/uts/sun4u/serengeti/sghsc/Makefile
+++ b/usr/src/uts/sun4u/serengeti/sghsc/Makefile
@@ -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 @@ CLEANLINTFILES += $(LINT32_FILES)
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
+CERRWARN += -_gcc=-Wno-type-limits
+CERRWARN += -_gcc=-Wno-uninitialized
#
# Turn on doubleword alignment for 64 bit registers
diff --git a/usr/src/uts/sun4u/serengeti/sgsbbc/Makefile b/usr/src/uts/sun4u/serengeti/sgsbbc/Makefile
index 700ef8843f..70abd98d29 100644
--- a/usr/src/uts/sun4u/serengeti/sgsbbc/Makefile
+++ b/usr/src/uts/sun4u/serengeti/sgsbbc/Makefile
@@ -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 @@ CLEANLINTFILES += $(LINT32_FILES)
# 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 --git a/usr/src/uts/sun4u/serengeti/ssm/Makefile b/usr/src/uts/sun4u/serengeti/ssm/Makefile
index 9665219169..863d4c9669 100644
--- a/usr/src/uts/sun4u/serengeti/ssm/Makefile
+++ b/usr/src/uts/sun4u/serengeti/ssm/Makefile
@@ -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 @@ CLEANLINTFILES += $(LINT32_FILES)
CFLAGS += $(CCVERBOSE)
LDFLAGS += -dy -Ndrv/sgsbbc
+CERRWARN += -_gcc=-Wno-type-limits
+
#
# Turn on doubleword alignment for 64 bit registers
#
diff --git a/usr/src/uts/sun4u/serengeti/unix/Makefile b/usr/src/uts/sun4u/serengeti/unix/Makefile
index e57033ffeb..7e17ce6332 100644
--- a/usr/src/uts/sun4u/serengeti/unix/Makefile
+++ b/usr/src/uts/sun4u/serengeti/unix/Makefile
@@ -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 @@ CLEANLINTFILES += $(LINT_LIB)
#
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 --git a/usr/src/uts/sun4u/serrano/Makefile b/usr/src/uts/sun4u/serrano/Makefile
index acd6b33fb3..89be816d89 100644
--- a/usr/src/uts/sun4u/serrano/Makefile
+++ b/usr/src/uts/sun4u/serrano/Makefile
@@ -128,3 +128,7 @@ LINTTAGS += -erroff=E_STATIC_UNUSED
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 --git a/usr/src/uts/sun4u/sf/Makefile b/usr/src/uts/sun4u/sf/Makefile
index 0fa186b7fa..23c34d8bb9 100644
--- a/usr/src/uts/sun4u/sf/Makefile
+++ b/usr/src/uts/sun4u/sf/Makefile
@@ -76,6 +76,10 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
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 --git a/usr/src/uts/sun4u/sha1/Makefile b/usr/src/uts/sun4u/sha1/Makefile
index 5c920ed06f..4c78018602 100644
--- a/usr/src/uts/sun4u/sha1/Makefile
+++ b/usr/src/uts/sun4u/sha1/Makefile
@@ -67,6 +67,8 @@ CFLAGS += $(CCVERBOSE) -I$(COM_DIR)
CFLAGS += -DVIS_SHA1
LINTFLAGS += -I$(COM_DIR)
+CERRWARN += -_gcc=-Wno-uninitialized
+
#
# Default build targets.
#
diff --git a/usr/src/uts/sun4u/simba/Makefile b/usr/src/uts/sun4u/simba/Makefile
index 6502dee116..42031404d8 100644
--- a/usr/src/uts/sun4u/simba/Makefile
+++ b/usr/src/uts/sun4u/simba/Makefile
@@ -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 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
#
# lint pass one enforcement
#
-CFLAGS += $(CCVERBOSE)
+CFLAGS += $(CCVERBOSE)
+CERRWARN += -_gcc=-Wno-switch
#
# Turn on doubleword alignment for 64 bit registers
diff --git a/usr/src/uts/sun4u/spitfire/Makefile b/usr/src/uts/sun4u/spitfire/Makefile
index 799f79e7bc..b586ea1002 100644
--- a/usr/src/uts/sun4u/spitfire/Makefile
+++ b/usr/src/uts/sun4u/spitfire/Makefile
@@ -86,6 +86,8 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
LINTTAGS += -erroff=E_BAD_FORMAT_STR2
+CERRWARN += -_gcc=-Wno-uninitialized
+
#
# Default build targets.
#
diff --git a/usr/src/uts/sun4u/starcat/cheetah/Makefile b/usr/src/uts/sun4u/starcat/cheetah/Makefile
index 0588e4d986..1cc9fbd598 100644
--- a/usr/src/uts/sun4u/starcat/cheetah/Makefile
+++ b/usr/src/uts/sun4u/starcat/cheetah/Makefile
@@ -75,6 +75,11 @@ CLEANLINTFILES += $(LINT32_FILES)
#
CFLAGS += $(CCVERBOSE)
+CERRWARN += -_gcc=-Wno-parentheses
+CERRWARN += -_gcc=-Wno-uninitialized
+CERRWARN += -_gcc=-Wno-type-limits
+CERRWARN += -_gcc=-Wno-clobbered
+
#
# cpu-module-specific flags
#
diff --git a/usr/src/uts/sun4u/starcat/cheetahplus/Makefile b/usr/src/uts/sun4u/starcat/cheetahplus/Makefile
index d058c8858b..4137226115 100644
--- a/usr/src/uts/sun4u/starcat/cheetahplus/Makefile
+++ b/usr/src/uts/sun4u/starcat/cheetahplus/Makefile
@@ -79,6 +79,12 @@ CFLAGS += $(CCVERBOSE) -DCHEETAH -DCHEETAH_PLUS -DCPU_IMP_L1_CACHE_PARITY \
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 --git a/usr/src/uts/sun4u/starcat/dman/Makefile b/usr/src/uts/sun4u/starcat/dman/Makefile
index 729d38747b..8978ae20bf 100644
--- a/usr/src/uts/sun4u/starcat/dman/Makefile
+++ b/usr/src/uts/sun4u/starcat/dman/Makefile
@@ -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 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
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 --git a/usr/src/uts/sun4u/starcat/dr/Makefile b/usr/src/uts/sun4u/starcat/dr/Makefile
index 459ced7aea..3a7409fc70 100644
--- a/usr/src/uts/sun4u/starcat/dr/Makefile
+++ b/usr/src/uts/sun4u/starcat/dr/Makefile
@@ -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 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE) -I../sys
+CERRWARN += -_gcc=-Wno-parentheses
+CERRWARN += -_gcc=-Wno-uninitialized
#
# module dependencies
diff --git a/usr/src/uts/sun4u/starcat/drmach/Makefile b/usr/src/uts/sun4u/starcat/drmach/Makefile
index 8bca56721f..2cc0ef1aa9 100644
--- a/usr/src/uts/sun4u/starcat/drmach/Makefile
+++ b/usr/src/uts/sun4u/starcat/drmach/Makefile
@@ -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 @@ MACHINE_DEFS += -DCHEETAH_PLUS
# 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 --git a/usr/src/uts/sun4u/starcat/fcgp2/Makefile b/usr/src/uts/sun4u/starcat/fcgp2/Makefile
index 2860fb7a2b..83e576953e 100644
--- a/usr/src/uts/sun4u/starcat/fcgp2/Makefile
+++ b/usr/src/uts/sun4u/starcat/fcgp2/Makefile
@@ -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 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
+CERRWARN += -_gcc=-Wno-uninitialized
#
# module dependencies
diff --git a/usr/src/uts/sun4u/starcat/iosram/Makefile b/usr/src/uts/sun4u/starcat/iosram/Makefile
index a2768515bd..7337535f08 100644
--- a/usr/src/uts/sun4u/starcat/iosram/Makefile
+++ b/usr/src/uts/sun4u/starcat/iosram/Makefile
@@ -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 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
+CERRWARN += -_gcc=-Wno-uninitialized
#
# module dependencies
diff --git a/usr/src/uts/sun4u/starcat/platmod/Makefile b/usr/src/uts/sun4u/starcat/platmod/Makefile
index 09d22b8627..39272993dd 100644
--- a/usr/src/uts/sun4u/starcat/platmod/Makefile
+++ b/usr/src/uts/sun4u/starcat/platmod/Makefile
@@ -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 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
+CERRWARN += -_gcc=-Wno-unused-variable
#
# Default build targets.
diff --git a/usr/src/uts/sun4u/starcat/sc_gptwocfg/Makefile b/usr/src/uts/sun4u/starcat/sc_gptwocfg/Makefile
index 0b1551ce31..f43cf2136a 100644
--- a/usr/src/uts/sun4u/starcat/sc_gptwocfg/Makefile
+++ b/usr/src/uts/sun4u/starcat/sc_gptwocfg/Makefile
@@ -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 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE) -I../sys -I$(UTSBASE)/sun4u/starcat/sys
+CERRWARN += -_gcc=-Wno-uninitialized
#
# module dependencies
diff --git a/usr/src/uts/sun4u/starcat/scosmb/Makefile b/usr/src/uts/sun4u/starcat/scosmb/Makefile
index 7f043a5d83..56fb23fa46 100644
--- a/usr/src/uts/sun4u/starcat/scosmb/Makefile
+++ b/usr/src/uts/sun4u/starcat/scosmb/Makefile
@@ -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 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
+CERRWARN += -_gcc=-Wno-unused-variable
+CERRWARN += -_gcc=-Wno-uninitialized
#
# module dependencies
diff --git a/usr/src/uts/sun4u/starcat/unix/Makefile b/usr/src/uts/sun4u/starcat/unix/Makefile
index 2d9e683d9e..7881e5b2c4 100644
--- a/usr/src/uts/sun4u/starcat/unix/Makefile
+++ b/usr/src/uts/sun4u/starcat/unix/Makefile
@@ -113,6 +113,18 @@ CLEANLINTFILES += $(LINT_LIB)
#
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 --git a/usr/src/uts/sun4u/starfire/cvc/Makefile b/usr/src/uts/sun4u/starfire/cvc/Makefile
index a310f9bc6d..f450a72f3b 100644
--- a/usr/src/uts/sun4u/starfire/cvc/Makefile
+++ b/usr/src/uts/sun4u/starfire/cvc/Makefile
@@ -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 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
+CERRWARN += -_gcc=-Wno-unused-function
+CERRWARN += -_gcc=-Wno-uninitialized
#
# Default build targets.
diff --git a/usr/src/uts/sun4u/starfire/idn/Makefile b/usr/src/uts/sun4u/starfire/idn/Makefile
index 8e9296ffa5..3d7de4962e 100644
--- a/usr/src/uts/sun4u/starfire/idn/Makefile
+++ b/usr/src/uts/sun4u/starfire/idn/Makefile
@@ -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 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
# 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 --git a/usr/src/uts/sun4u/starfire/ngdr/Makefile b/usr/src/uts/sun4u/starfire/ngdr/Makefile
index 3deee7ded0..7d68bff634 100644
--- a/usr/src/uts/sun4u/starfire/ngdr/Makefile
+++ b/usr/src/uts/sun4u/starfire/ngdr/Makefile
@@ -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 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
+CERRWARN += -_gcc=-Wno-parentheses
+CERRWARN += -_gcc=-Wno-uninitialized
#
# module dependencies
diff --git a/usr/src/uts/sun4u/starfire/ngdrmach/Makefile b/usr/src/uts/sun4u/starfire/ngdrmach/Makefile
index 8ad6a1b342..181e6cf8a6 100644
--- a/usr/src/uts/sun4u/starfire/ngdrmach/Makefile
+++ b/usr/src/uts/sun4u/starfire/ngdrmach/Makefile
@@ -58,6 +58,7 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
+CERRWARN += -_gcc=-Wno-uninitialized
#
# Define dependency on cvc
diff --git a/usr/src/uts/sun4u/starfire/pcipsy/Makefile b/usr/src/uts/sun4u/starfire/pcipsy/Makefile
index 5bdcbe25fe..97bb94d9a6 100644
--- a/usr/src/uts/sun4u/starfire/pcipsy/Makefile
+++ b/usr/src/uts/sun4u/starfire/pcipsy/Makefile
@@ -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 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
# 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 --git a/usr/src/uts/sun4u/starfire/rootnex/Makefile b/usr/src/uts/sun4u/starfire/rootnex/Makefile
index 46bf067f49..191a61016c 100644
--- a/usr/src/uts/sun4u/starfire/rootnex/Makefile
+++ b/usr/src/uts/sun4u/starfire/rootnex/Makefile
@@ -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 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
# 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 --git a/usr/src/uts/sun4u/starfire/sbus/Makefile b/usr/src/uts/sun4u/starfire/sbus/Makefile
index dddbc0b45d..03c6d28bf4 100644
--- a/usr/src/uts/sun4u/starfire/sbus/Makefile
+++ b/usr/src/uts/sun4u/starfire/sbus/Makefile
@@ -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 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
+CERRWARN += -_gcc=-Wno-type-limits
+CERRWARN += -_gcc=-Wno-uninitialized
#
# Turn on doubleword alignment for 64 bit registers
diff --git a/usr/src/uts/sun4u/starfire/spitfire/Makefile b/usr/src/uts/sun4u/starfire/spitfire/Makefile
index 0dae0c68c3..9db750b1cd 100644
--- a/usr/src/uts/sun4u/starfire/spitfire/Makefile
+++ b/usr/src/uts/sun4u/starfire/spitfire/Makefile
@@ -67,6 +67,7 @@ INSTALL_TARGET = def $(BINARY) $(ROOTMODULE)
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
+CERRWARN += -_gcc=-Wno-uninitialized
CPPFLAGS += -DCPU_MODULE -DSPITFIRE
AS_CPPFLAGS += -DCPU_MODULE -DSPITFIRE
diff --git a/usr/src/uts/sun4u/starfire/unix/Makefile b/usr/src/uts/sun4u/starfire/unix/Makefile
index 03e8ae5afc..e474a9fe90 100644
--- a/usr/src/uts/sun4u/starfire/unix/Makefile
+++ b/usr/src/uts/sun4u/starfire/unix/Makefile
@@ -106,6 +106,18 @@ CLEANLINTFILES += $(LINT_LIB)
#
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 --git a/usr/src/uts/sun4u/su/Makefile b/usr/src/uts/sun4u/su/Makefile
index 1e3943e44e..25dc6f0f8f 100644
--- a/usr/src/uts/sun4u/su/Makefile
+++ b/usr/src/uts/sun4u/su/Makefile
@@ -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_BAD_PTR_CAST_ALIGN
LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
+CERRWARN += -_gcc=-Wno-parentheses
+CERRWARN += -_gcc=-Wno-uninitialized
+
#
# Default build targets.
#
diff --git a/usr/src/uts/sun4u/sunfire/ac/Makefile b/usr/src/uts/sun4u/sunfire/ac/Makefile
index ca2e2cb4d6..f73e528bab 100644
--- a/usr/src/uts/sun4u/sunfire/ac/Makefile
+++ b/usr/src/uts/sun4u/sunfire/ac/Makefile
@@ -58,6 +58,7 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
+CERRWARN += -_gcc=-Wno-uninitialized
#
# Turn on doubleword alignment for 64 bit registers
diff --git a/usr/src/uts/sun4u/sunfire/sysctrl/Makefile b/usr/src/uts/sun4u/sunfire/sysctrl/Makefile
index e89213b440..c17f77d6a2 100644
--- a/usr/src/uts/sun4u/sunfire/sysctrl/Makefile
+++ b/usr/src/uts/sun4u/sunfire/sysctrl/Makefile
@@ -59,6 +59,8 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
+CERRWARN += -_gcc=-Wno-parentheses
+CERRWARN += -_gcc=-Wno-uninitialized
#
# Turn on doubleword alignment for 64 bit registers
diff --git a/usr/src/uts/sun4u/tazmo/envctrl/Makefile b/usr/src/uts/sun4u/tazmo/envctrl/Makefile
index 3343de2a6c..3562da1dca 100644
--- a/usr/src/uts/sun4u/tazmo/envctrl/Makefile
+++ b/usr/src/uts/sun4u/tazmo/envctrl/Makefile
@@ -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 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
# 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 --git a/usr/src/uts/sun4u/tod/Makefile b/usr/src/uts/sun4u/tod/Makefile
index 9a1f00696c..ad7e1028ad 100644
--- a/usr/src/uts/sun4u/tod/Makefile
+++ b/usr/src/uts/sun4u/tod/Makefile
@@ -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 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
#
# lint pass one enforcement
#
-CFLAGS += $(CCVERBOSE)
+CFLAGS += $(CCVERBOSE)
+CERRWARN += -_gcc=-Wno-parentheses
#
# Default build targets.
diff --git a/usr/src/uts/sun4u/todds1287/Makefile b/usr/src/uts/sun4u/todds1287/Makefile
index cdc4984e1d..9ffd0c2526 100644
--- a/usr/src/uts/sun4u/todds1287/Makefile
+++ b/usr/src/uts/sun4u/todds1287/Makefile
@@ -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 @@ CFLAGS += $(CCVERBOSE)
#
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
+CERRWARN += -_gcc=-Wno-uninitialized
+
#
# Default build targets.
#
diff --git a/usr/src/uts/sun4u/unix/Makefile b/usr/src/uts/sun4u/unix/Makefile
index 7e99518eb5..8ff31a51ff 100644
--- a/usr/src/uts/sun4u/unix/Makefile
+++ b/usr/src/uts/sun4u/unix/Makefile
@@ -120,6 +120,18 @@ LINTTAGS += -erroff=E_STATIC_UNUSED
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 --git a/usr/src/uts/sun4u/upa64s/Makefile b/usr/src/uts/sun4u/upa64s/Makefile
index 4899a386f7..48c7021920 100644
--- a/usr/src/uts/sun4u/upa64s/Makefile
+++ b/usr/src/uts/sun4u/upa64s/Makefile
@@ -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 @@ CFLAGS += $(CCVERBOSE)
#
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
+CERRWARN += -_gcc=-Wno-parentheses
+CERRWARN += -_gcc=-Wno-switch
+CERRWARN += -_gcc=-Wno-uninitialized
+
#
# Default build targets.
#
diff --git a/usr/src/uts/sun4u/us/Makefile b/usr/src/uts/sun4u/us/Makefile
index c3456b360b..5b28ca8b2a 100644
--- a/usr/src/uts/sun4u/us/Makefile
+++ b/usr/src/uts/sun4u/us/Makefile
@@ -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 @@ CFLAGS += -dalign
LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
+CERRWARN += -_gcc=-Wno-parentheses
+CERRWARN += -_gcc=-Wno-uninitialized
+
#
# Default build targets.
#
diff --git a/usr/src/uts/sun4u/us234_pcbe/Makefile b/usr/src/uts/sun4u/us234_pcbe/Makefile
index 295ca7c733..f6c68c324e 100644
--- a/usr/src/uts/sun4u/us234_pcbe/Makefile
+++ b/usr/src/uts/sun4u/us234_pcbe/Makefile
@@ -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 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK)
LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
+CERRWARN += -_gcc=-Wno-type-limits
+
#
# Default build targets.
#
diff --git a/usr/src/uts/sun4u/vis/Makefile b/usr/src/uts/sun4u/vis/Makefile
index 1777c820d4..530f21d1d9 100644
--- a/usr/src/uts/sun4u/vis/Makefile
+++ b/usr/src/uts/sun4u/vis/Makefile
@@ -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 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
+CERRWARN += -_gcc=-Wno-uninitialized
.KEEP_STATE:
diff --git a/usr/src/uts/sun4u/zs/Makefile b/usr/src/uts/sun4u/zs/Makefile
index 092f3585d7..927f12d442 100644
--- a/usr/src/uts/sun4u/zs/Makefile
+++ b/usr/src/uts/sun4u/zs/Makefile
@@ -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_BAD_PTR_CAST_ALIGN
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
+CERRWARN += -_gcc=-Wno-parentheses
+CERRWARN += -_gcc=-Wno-uninitialized
+
#
# Default build targets.
#
diff --git a/usr/src/uts/sun4u/zsh/Makefile b/usr/src/uts/sun4u/zsh/Makefile
index d48b7080ba..dfefb38063 100644
--- a/usr/src/uts/sun4u/zsh/Makefile
+++ b/usr/src/uts/sun4u/zsh/Makefile
@@ -74,6 +74,8 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
+CERRWARN += -_gcc=-Wno-parentheses
+
#
# Default build targets.
#
diff --git a/usr/src/uts/sun4u/zuluvm/Makefile b/usr/src/uts/sun4u/zuluvm/Makefile
index 2349802f61..719558aa46 100644
--- a/usr/src/uts/sun4u/zuluvm/Makefile
+++ b/usr/src/uts/sun4u/zuluvm/Makefile
@@ -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 @@ LINTFLAGS += -I$(OBJS_DIR)
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
+CERRWARN += -_gcc=-Wno-uninitialized
+
#
# Default build targets.
#