[m-dev.] diff: don't pass -Wtraditional to gcc

Fergus Henderson fjh at cs.mu.OZ.AU
Sat Nov 25 14:35:13 AEDT 2000


On 17-Nov-2000, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> Estimated hours taken: 0.25
> 
> scripts/mgnuc.in:
> compiler/mercury_compile.m:
> 	Don't pass `-Wtraditional' to GNU C, since this results in
> 	many warnings with gcc 2.96, e.g. about the use of ANSI C
> 	preprocessor constructors such as string concatenation and
> 	indented `#define'.  We don't care about compatibility with
> 	pre-ANSI C compilers.

Estimated hours taken: 0.1

scripts/mgnuc.in:
	Remove `-Wtraditional'.  In my previous change, I added a
	comment about why it was removed, but forgot to actually
	remove it!

Workspace: /home/pgrad/fjh/ws/hg3
Index: scripts/mgnuc.in
===================================================================
RCS file: /home/mercury1/repository/mercury/scripts/mgnuc.in,v
retrieving revision 1.74
diff -u -d -r1.74 mgnuc.in
--- scripts/mgnuc.in	2000/11/17 03:50:12	1.74
+++ scripts/mgnuc.in	2000/11/25 03:32:11
@@ -33,7 +33,7 @@
     *gcc*)
 	ANSI_OPTS="-ansi"
 	CHECK_OPTS="
-	      -Wall -Wwrite-strings -Wpointer-arith -Wtraditional
+	      -Wall -Wwrite-strings -Wpointer-arith
 	      -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wno-unused"
 
 # Note: we do not enable the following gcc warnings:
-- 
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