[m-rev.] diff: avoid a C compiler warning on Windows

Julien Fischer juliensf at csse.unimelb.edu.au
Tue Jan 4 00:52:18 AEDT 2011


Branches: main, 11.01

library/io.m:
 	Avoid a C compiler warning on Windows.

Julien.

Index: library/io.m
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/library/io.m,v
retrieving revision 1.450
diff -u -r1.450 io.m
--- library/io.m	13 Dec 2010 15:38:43 -0000	1.450
+++ library/io.m	3 Jan 2011 13:49:38 -0000
@@ -10336,7 +10336,7 @@
                  NULL))                                                      \\
              {                                                               \\
                  free_err_buf = MR_FALSE;                                    \\
-                err_buf = ""could not retrieve error message"";             \\
+                err_buf = (LPVOID) ""could not retrieve error message"";    \\
              }                                                               \\
              total_len = strlen(msg) + strlen((char *)err_buf);              \\
              MR_incr_hp_atomic_msg(tmp,                                      \\

--------------------------------------------------------------------------
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