Fix and supress some warnings, and turn on -Werror when validating
[ghc-hetmet.git] / rts / Schedule.c
index afd8c28..8bd4241 100644 (file)
@@ -2577,7 +2577,12 @@ initScheduler(void)
 }
 
 void
-exitScheduler( rtsBool wait_foreign )
+exitScheduler(
+    rtsBool wait_foreign
+#if !defined(THREADED_RTS)
+                         __attribute__((unused))
+#endif
+)
                /* see Capability.c, shutdownCapability() */
 {
     Task *task = NULL;