[m-rev.] diff: fix ANSI/ISO C compliance problem in mercury_deep_profiling.h
Peter Ross
peter.ross at miscrit.be
Tue Jun 5 22:44:20 AEST 2001
Hi,
===================================================================
Estimated hours taken: 0.25
Branches: main
runtime/mercury_deep_profiling.h:
Include a dummy member in the MR_ProfilingMetrics_Struct as
ANSI/ISO C doesn't allow empty struct declarations.
Index: mercury_deep_profiling.h
===================================================================
RCS file: /home/mercury1/repository/mercury/runtime/mercury_deep_profiling.h,v
retrieving revision 1.3
diff -u -r1.3 mercury_deep_profiling.h
--- mercury_deep_profiling.h 2001/06/05 04:57:09 1.3
+++ mercury_deep_profiling.h 2001/06/05 12:35:02
@@ -51,6 +51,11 @@
unsigned MR_own_allocs;
unsigned MR_own_words;
#endif
+ /* ANSI/ISO C requires non-empty structs */
+#if !defined(MR_DEEP_PROFILING_PORT_COUNTS) && \
+ !defined(MR_DEEP_PROFILING_TIMING) && !defined(MR_DEEP_PROFILING_MEMORY)
+ unsigned dummy;
+#endif
};
struct MR_CallSiteStatic_Struct {
--------------------------------------------------------------------------
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