Mercurial > hg > truffle
diff make/solaris/makefiles/gcc.make @ 14368:b6ab2c9abfc5
8030350: Enable additional compiler warnings for GCC
Reviewed-by: dholmes, coleenp, erikj, tbell, ihse
author | mduigou |
---|---|
date | Wed, 12 Feb 2014 09:37:18 -0800 |
parents | de6a9e811145 |
children | d72cee0607a3 4ca6dc0799b6 |
line wrap: on
line diff
--- a/make/solaris/makefiles/gcc.make Tue Feb 11 21:32:19 2014 -0800 +++ b/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/$@))