[m-rev.] trivial diff: avoid warnings when using MSVC

Julien Fischer juliensf at csse.unimelb.edu.au
Wed Jul 30 03:51:45 AEST 2008


Avoid warnings when compiling with MSVC.

trace/Mmakefile:
 	Do not pass -g directly to the C compiler since MSVC doesn't
 	recognise that option.  Instead, invoke mgnuc with --c-debug
 	which causes an appropriate flag to be selected based on the
 	C compiler.

Julien.

Index: Mmakefile
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/trace/Mmakefile,v
retrieving revision 1.56
diff -u -r1.56 Mmakefile
--- Mmakefile	20 Feb 2008 02:59:37 -0000	1.56
+++ Mmakefile	29 Jul 2008 17:46:14 -0000
@@ -170,8 +170,8 @@

  #-----------------------------------------------------------------------------#

-CFLAGS		+= -g $(DLL_CFLAGS)
-MGNUCFLAGS	+= --no-ansi
+CFLAGS		+= $(DLL_CFLAGS)
+MGNUCFLAGS	+= --c-debug --no-ansi

  #-----------------------------------------------------------------------------#

--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list