[project @ 2003-03-06 13:24:46 by ross]
[ghc-hetmet.git] / ghc / rts / hooks / OutOfHeap.c
index 39be01f..ec02a7f 100644 (file)
@@ -1,17 +1,19 @@
 /* -----------------------------------------------------------------------------
- * $Id: OutOfHeap.c,v 1.2 1998/12/02 13:29:14 simonm Exp $
+ * $Id: OutOfHeap.c,v 1.4 2002/07/17 09:21:51 simonmar Exp $
  *
  * User-overridable RTS hooks.
  *
  * ---------------------------------------------------------------------------*/
 
 #include "Rts.h"
+#include <stdio.h>
 
 void
 OutOfHeapHook (lnat request_size, lnat heap_size) /* both sizes in bytes */
 {
   /*    fprintf(stderr, "Heap exhausted;\nwhile trying to allocate %lu bytes in a %lu-byte heap;\nuse `+RTS -H<size>' to increase the total heap size.\n", */
 
+  (void)request_size;   /* keep gcc -Wall happy */
   fprintf(stderr, "Heap exhausted;\nCurrent maximum heap size is %lu bytes;\nuse `+RTS -M<size>' to increase it.\n",
          heap_size);
 }