--- a/hotspot/make/solaris/makefiles/sparcWorks.make Tue Sep 13 16:58:35 2011 -0700
+++ b/hotspot/make/solaris/makefiles/sparcWorks.make Tue Sep 13 20:28:00 2011 -0700
@@ -148,6 +148,9 @@
# -DDONT_USE_PRECOMPILED_HEADER will exclude all includes in precompiled.hpp.
CFLAGS += -DDONT_USE_PRECOMPILED_HEADER
+# Compiler warnings are treated as errors
+CFLAGS_WARN = -xwe
+
################################################
# Begin current (>=5.9) Forte compiler options #
#################################################