diff: fix boehm_gc default int warning

Fergus Henderson fjh at cs.mu.OZ.AU
Mon Nov 9 15:02:18 AEDT 1998


boehm_gc/gc.h:
	Change the code for GC_INIT() on sparc to avoid a warning
	about the use of implicit int.

Index: boehm_gc/gc.h
===================================================================
RCS file: /home/mercury1/repository/mercury/boehm_gc/gc.h,v
retrieving revision 1.23
diff -u -r1.23 gc.h
--- gc.h	1998/08/31 23:05:11	1.23
+++ gc.h	1998/11/04 06:04:25
@@ -682,7 +682,7 @@
  * This circumvents a Solaris 2.X (X<=4) linker bug.
  */
 #if defined(sparc) || defined(__sparc)
-#   define GC_INIT() { extern end, etext; \
+#   define GC_INIT() { extern int end, etext; \
 		       extern void GC_noop(void *, void *); \
 		       GC_noop(&end, &etext); }
 #else

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "Binaries may die
WWW: <http://www.cs.mu.oz.au/~fjh>  |   but source code lives forever"
PGP: finger fjh at 128.250.37.3        |     -- leaked Microsoft memo.



More information about the developers mailing list