[m-rev.] diff: avoid gcc warnings in trace directory

Julien Fischer juliensf at cs.mu.OZ.AU
Tue Feb 28 15:30:21 AEDT 2006


Estimated hours taken: 0.1
Branches: main

trace/mercury_trace_hold_vars.h:
	Include stdio.h after the Mercury header files in order to avoid
	complaints from gcc about function definitions preceding global
	register declarations.

Julien.

Index: mercury_trace_hold_vars.h
===================================================================
RCS file: /home/mercury1/repository/mercury/trace/mercury_trace_hold_vars.h,v
retrieving revision 1.1
diff -u -r1.1 mercury_trace_hold_vars.h
--- mercury_trace_hold_vars.h	11 Jul 2005 07:30:30 -0000	1.1
+++ mercury_trace_hold_vars.h	28 Feb 2006 04:16:48 -0000
@@ -17,9 +17,10 @@
 #ifndef MERCURY_TRACE_HOLD_VARS_H
 #define MERCURY_TRACE_HOLD_VARS_H

-#include <stdio.h>              /* for FILE         */
 #include "mercury_std.h"        /* for MR_bool      */
 #include "mercury_types.h"      /* for MR_Word etc  */
+
+#include <stdio.h>              /* for FILE         */

 /*
 ** Add a new variable with the given name, type and value to the set

--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list