diff: fix const cast warnings
Fergus Henderson
fjh at cs.mu.OZ.AU
Wed Oct 28 18:34:57 AEDT 1998
Peter Ross already fixed this in scripts/mgnuc.in, but he
was probably unaware that compiler/mercury_compile.m
invokes gcc directly rather than via scripts/mgnuc.in,
so it needs to be modified too.
--------------------
Estimated hours taken: 0.25
compiler/mercury_compile.m:
Don't pass `-Wcast-qual' to gcc, since it results in too many
spurious warnings.
Index: compiler/mercury_compile.m
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/mercury_compile.m,v
retrieving revision 1.109
diff -u -r1.109 mercury_compile.m
--- mercury_compile.m 1998/10/28 06:14:58 1.109
+++ mercury_compile.m 1998/10/28 07:31:28
@@ -2276,9 +2276,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 -Wno-uninitialized "
+ WarningOpt = "-Wall -Wwrite-strings -Wpointer-arith -Wtraditional -Wshadow -Wmissing-prototypes -Wno-unused -Wno-uninitialized "
;
- WarningOpt = "-Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wtraditional -Wshadow -Wmissing-prototypes -Wno-unused -Wno-uninitialized -Wstrict-prototypes "
+ WarningOpt = "-Wall -Wwrite-strings -Wpointer-arith -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