[MLton-commit] r4525
Stephen Weeks
MLton@mlton.org
Wed, 10 May 2006 13:39:31 -0700
Switched from -Wformat=2 to -Wformat to remove spurious warning(s)
about "format not a string literal".
----------------------------------------------------------------------
U mlton/branches/on-20050822-x86_64-branch/runtime/Makefile
----------------------------------------------------------------------
Modified: mlton/branches/on-20050822-x86_64-branch/runtime/Makefile
===================================================================
--- mlton/branches/on-20050822-x86_64-branch/runtime/Makefile 2006-05-10 18:12:26 UTC (rev 4524)
+++ mlton/branches/on-20050822-x86_64-branch/runtime/Makefile 2006-05-10 20:39:30 UTC (rev 4525)
@@ -70,7 +70,9 @@
else
WARNCFLAGS += -W
endif
-WARNCFLAGS += -Wformat=2
+# -Wformat=2 implies -Wformat-nonliteral, which causes spurious warnings.
+# WARNCFLAGS += -Wformat=2
+WARNCFLAGS += -Wformat
# WARNCFLAGS += -Wswitch-default -Wswitch-enum
WARNCFLAGS += -Wuninitialized
ifeq ($(findstring $(GCC_VERSION), 4),4)