hotspot/make/solaris/makefiles/gcc.make
changeset 22784 f264891fc7a8
parent 22234 da823d78ad65
child 23185 a2143156a0a0
--- a/hotspot/make/solaris/makefiles/gcc.make	Tue Feb 11 21:32:19 2014 -0800
+++ b/hotspot/make/solaris/makefiles/gcc.make	Wed Feb 12 09:37:18 2014 -0800
@@ -118,7 +118,7 @@
 # Compiler warnings are treated as errors 
 WARNINGS_ARE_ERRORS = -Werror 
 # Enable these warnings. See 'info gcc' about details on these options
-WARNING_FLAGS = -Wpointer-arith -Wconversion -Wsign-compare -Wundef
+WARNING_FLAGS = -Wpointer-arith -Wconversion -Wsign-compare -Wundef -Wformat=2 -Wno-error=format-nonliteral
 CFLAGS_WARN/DEFAULT = $(WARNINGS_ARE_ERRORS) $(WARNING_FLAGS)
 # Special cases 
 CFLAGS_WARN/BYFILE = $(CFLAGS_WARN/$@)$(CFLAGS_WARN/DEFAULT$(CFLAGS_WARN/$@))