[project @ 2004-03-01 13:34:54 by simonmar]
authorsimonmar <unknown>
Mon, 1 Mar 2004 13:34:54 +0000 (13:34 +0000)
committersimonmar <unknown>
Mon, 1 Mar 2004 13:34:54 +0000 (13:34 +0000)
Warning police, and omit a useless debugging msg in !RTS_SUPPORTS_THREADS.

ghc/rts/Capability.c

index c99cf05..3ea96fe 100644 (file)
@@ -137,6 +137,9 @@ static Capability *returning_capabilities;
    threaded RTS, clients must use waitFor*Capability()).
    ------------------------------------------------------------------------- */
 
+#if defined(RTS_SUPPORTS_THREADS)
+static
+#endif
 void
 grabCapability( Capability** cap )
 {
@@ -152,7 +155,9 @@ grabCapability( Capability** cap )
   free_capabilities = (*cap)->link;
   rts_n_free_capabilities--;
 #endif
+#if defined(RTS_SUPPORTS_THREADS)
   IF_DEBUG(scheduler, sched_belch("worker: got capability"));
+#endif
 }
 
 /* ----------------------------------------------------------------------------