[MLton-commit] r4559

Matthew Fluet MLton@mlton.org
Sun, 21 May 2006 12:15:23 -0700


Revising comment
----------------------------------------------------------------------

U   mlton/branches/on-20050822-x86_64-branch/runtime/Makefile
U   mlton/branches/on-20050822-x86_64-branch/runtime/gc/signals.c

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

Modified: mlton/branches/on-20050822-x86_64-branch/runtime/Makefile
===================================================================
--- mlton/branches/on-20050822-x86_64-branch/runtime/Makefile	2006-05-21 14:32:14 UTC (rev 4558)
+++ mlton/branches/on-20050822-x86_64-branch/runtime/Makefile	2006-05-21 19:15:21 UTC (rev 4559)
@@ -89,7 +89,7 @@
 ifeq ($(findstring $(GCC_MAJOR_VERSION), 4),$(GCC_MAJOR_VERSION))
 WARNCFLAGS += -Wextra
 endif
-# -Wformat=2 implies -Wformat-nonliteral, which causes spurious warnings.
+# -Wformat=2 implies -Wformat-nonliteral, which causes one spurious warning.
 WARNCFLAGS += -Wformat=2
 WARNCFLAGS += -Wno-format-nonliteral
 # WARNCFLAGS += -Wswitch-default -Wswitch-enum

Modified: mlton/branches/on-20050822-x86_64-branch/runtime/gc/signals.c
===================================================================
--- mlton/branches/on-20050822-x86_64-branch/runtime/gc/signals.c	2006-05-21 14:32:14 UTC (rev 4558)
+++ mlton/branches/on-20050822-x86_64-branch/runtime/gc/signals.c	2006-05-21 19:15:21 UTC (rev 4559)
@@ -18,7 +18,7 @@
   size_t ss_size = align (SIGSTKSZ, s->sysvals.pageSize);
   size_t psize = s->sysvals.pageSize;
   void *ss_sp = GC_mmapAnon_safe_protect (NULL, 2 * ss_size, psize, psize);
-  altstack.ss_sp = (typeof(altstack.ss_sp))((pointer)ss_sp + ss_size);
+  altstack.ss_sp = (void*)((pointer)ss_sp + ss_size);
   altstack.ss_size = ss_size;
   altstack.ss_flags = 0;
   sigaltstack (&altstack, NULL);