[MLton-commit] r6237

Matthew Fluet fluet at mlton.org
Sun Dec 2 07:07:48 PST 2007


-Wswitch flags not on all gcc 3.x versions
----------------------------------------------------------------------

U   mlton/trunk/runtime/Makefile

----------------------------------------------------------------------

Modified: mlton/trunk/runtime/Makefile
===================================================================
--- mlton/trunk/runtime/Makefile	2007-12-02 01:14:43 UTC (rev 6236)
+++ mlton/trunk/runtime/Makefile	2007-12-02 15:07:47 UTC (rev 6237)
@@ -117,7 +117,9 @@
 # -Wformat=2 implies -Wformat-nonliteral, which causes one spurious warning.
 WARNCFLAGS += -Wformat=2
 WARNCFLAGS += -Wno-format-nonliteral
+ifeq ($(findstring $(GCC_MAJOR_VERSION), 4),$(GCC_MAJOR_VERSION))
 WARNCFLAGS += -Wswitch-default -Wswitch-enum
+endif
 WARNCFLAGS += -Wuninitialized
 ifeq ($(findstring $(GCC_MAJOR_VERSION), 4),$(GCC_MAJOR_VERSION))
 WARNCFLAGS += -Winit-self




More information about the MLton-commit mailing list