[m-dev.] for review: turn off -Wpointer-arith

Fergus Henderson fjh at cs.mu.OZ.AU
Sun Mar 11 00:12:12 AEDT 2001


Estimated hours taken: 0.25
Branches: release main

scripts/mgnuc.in:
	Don't enable -Wpointer-arith, since for gcc < 3.0 it causes too many
	spurious warnings in system header files.  (This is fixed in gcc 3.0,
	though, so at some point we should re-enable it.)

Workspace: /home/hg/fjh/mercury
Index: scripts/mgnuc.in
===================================================================
RCS file: /home/mercury1/repository/mercury/scripts/mgnuc.in,v
retrieving revision 1.77
diff -u -d -r1.77 mgnuc.in
--- scripts/mgnuc.in	2001/01/28 10:23:11	1.77
+++ scripts/mgnuc.in	2001/03/10 13:09:44
@@ -33,11 +33,14 @@
     *gcc*)
 	ANSI_OPTS="-ansi"
 	CHECK_OPTS="
-	      -Wall -Wwrite-strings -Wpointer-arith
+	      -Wall -Wwrite-strings
 	      -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wno-unused"
 
 # Note: we do not enable the following gcc warnings:
 # -Wredundant-decls	causes too many complaints in system header files
+# -Wpointer-arith	causes too many complaints in system header files
+#			(fixed in gcc 3.0, though, so at some point
+#			we should re-enable this)
 # -Wtraditional		we don't care about compatibility with pre-ANSI C
 # -Wconversion		really only intended to help people using \`unprotoize'
 # -Waggregate-return	not useful, IMHO

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
                                    |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list