[m-rev.] diff: ilc warning fix

Fergus Henderson fjh at traveller.cs.mu.oz.au
Thu Oct 17 05:40:34 AEST 2002


Estimated hours taken: 0.25
Branches: main

library/private_builtin.m:
	Use an underscore prefix for a singleton variable in an
	`MC++' foreign_proc, to avoid compiler warnings.

Workspace: /c/fjh/ws/2/mercury
Index: library/private_builtin.m
===================================================================
RCS file: /home/mercury1/repository/mercury/library/private_builtin.m,v
retrieving revision 1.108
diff -u -d -r1.108 private_builtin.m
--- library/private_builtin.m	9 Aug 2002 05:26:42 -0000	1.108
+++ library/private_builtin.m	16 Oct 2002 19:30:51 -0000
@@ -1058,7 +1058,7 @@
 	SavedHeapPointer = 0;
 ").
 
-:- pragma foreign_proc("MC++", restore_hp(SavedHeapPointer::in),
+:- pragma foreign_proc("MC++", restore_hp(_SavedHeapPointer::in),
 	[will_not_call_mercury, thread_safe],
 "
 	/* We can't do heap reclamation on failure in the .NET back-end. */
--------------------------------------------------------------------------
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