[m-dev.] diff: add `MGNUCFLAGS-io = --no-ansi' to library/Mmakefile

Fergus Henderson fjh at cs.mu.OZ.AU
Sun Jun 20 16:32:26 AEST 1999


Estimated hours taken: 0.5

library/Mmakefile:
	Define `MGNUCFLAGS-io = --no-ansi', to avoid some compiler warnings.

Workspace: /home/mercury0/fjh/mercury
Index: library/Mmakefile
===================================================================
RCS file: /home/mercury1/repository/mercury/library/Mmakefile,v
retrieving revision 1.39
diff -u -r1.39 Mmakefile
--- Mmakefile	1999/06/01 08:16:04	1.39
+++ Mmakefile	1999/06/20 06:24:22
@@ -97,6 +97,11 @@
 
 endif
 
+# io.m uses library features that are supported by POSIX but which are not
+# part of ANSI C, such as `struct stat', fileno(), and putenv().
+# We need to pass --no-ansi to mgnuc to ensure that these are declared.
+MGNUCFLAGS-io =	--no-ansi
+
 #-----------------------------------------------------------------------------#
 
 # targets

-- 
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.
--------------------------------------------------------------------------
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