[m-rev.] diff: Fix a compilation warning in the runtime code for deep profiling.

Paul Bone pbone at csse.unimelb.edu.au
Wed Jan 5 14:16:22 AEDT 2011


Fix an error in the initialisation of MR_main_grandparent_call_site_dynamic.
The value did not correctly correspond to the type.

Thanks to Julien for spotting/diagnosing this.

runtime/mercury_deep_profiling.c:
    As above.

Index: runtime/mercury_deep_profiling.c
===================================================================
RCS file: /home/mercury1/repository/mercury/runtime/mercury_deep_profiling.c,v
retrieving revision 1.36
diff -u -p -b -r1.36 mercury_deep_profiling.c
--- runtime/mercury_deep_profiling.c	11 Oct 2010 00:49:27 -0000	1.36
+++ runtime/mercury_deep_profiling.c	5 Jan 2011 03:01:56 -0000
@@ -94,10 +94,7 @@ MR_CallSiteDynamic  MR_main_grandparent_
     0,
 #endif
 #ifdef MR_DEEP_PROFILING_MEMORY
-    0, 0,
-#endif
-#ifdef MR_DEEP_PROFILING_COVERAGE_DYNAMIC
-    NULL
+    0, 0
 #endif
     },
     0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 489 bytes
Desc: Digital signature
URL: <http://lists.mercurylang.org/archives/reviews/attachments/20110105/1719b9b3/attachment.sig>


More information about the reviews mailing list