diff: mercury_compile.m: -Wno-uninitialized

Fergus Henderson fjh at hydra.cs.mu.oz.au
Mon Jun 2 17:07:19 AEST 1997


compiler/mercury_compile.m:
	Suppress some spurious warnings on x86s: when compiling to object
	files, pass `-Wno-uninitialized' to gcc.
	On x86s, the use of `stack_pointer' in the ASM_JUMP macro
	defined in runtime/goto.h causes lots of warnings about
	using possibly uninitialized variables.  There's no easy way
	to supress them except by disabling the warning.  The warning
	will still be enabled if you are using Mmake (rather than
	invoking mc directly) on a non-x86 host.

Index: mercury_compile.m
===================================================================
RCS file: /home/staff/zs/imp/mercury/compiler/mercury_compile.m,v
retrieving revision 1.39
diff -u -r1.39 mercury_compile.m
--- mercury_compile.m	1997/05/27 03:06:33	1.39
+++ mercury_compile.m	1997/06/02 06:49:30
@@ -1676,9 +1676,9 @@
 		% if --inline-alloc is enabled, don't enable missing-prototype
 		% warnings, since gc_inline.h is missing lots of prototypes
 		( InlineAlloc = yes ->
-			WarningOpt = "-Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wtraditional -Wshadow -Wmissing-prototypes -Wno-unused "
+			WarningOpt = "-Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wtraditional -Wshadow -Wmissing-prototypes -Wno-unused -Wno-uninitialized"
 		;
-			WarningOpt = "-Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wtraditional -Wshadow -Wmissing-prototypes -Wno-unused -Wstrict-prototypes "
+			WarningOpt = "-Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wtraditional -Wshadow -Wmissing-prototypes -Wno-unused -Wno-uninitialized -Wstrict-prototypes "
 		)
 	; CompilerType = lcc ->
 		WarningOpt = "-w "

-- 
Fergus Henderson <fjh at cs.mu.oz.au>   |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>   |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3         |     -- the last words of T. S. Garp.



More information about the developers mailing list