[m-dev.] just another warning in generated C file
Fergus Henderson
fjh at cs.mu.OZ.AU
Thu Oct 21 23:46:02 AEST 1999
On 21-Oct-1999, Gustavo A. Ospina <gos at info.fundp.ac.be> wrote:
>
> This warning appears when compiling the "hello world" in the last rotd (in
> the october's rotd, being precise). My machine runs WinNT [...]
...
> \e\usr\local\mercury-latest\lib\mercury\inc\gc.h:759: warning: function
> declaration isn't a prototype
Thanks for the bug report. The patch below should fix that.
I have committed that change, so it will be included in next rotd
release.
> I guess you're improving the mechanisms of garbage collection. How do
> you're going about that?
Actually Hans Boehm or one of his contributors is responsible for that.
We have just updated the version of the Boehm collector that we include
with the Mercury distribution. (I have forwarded the patch below to
Hans Boehm for inclusion in the his distribution of the Boehm collector.)
> (BTW, in this cygwin version the 'strip' works).
Thanks for the information.
Does `gcc -s' (i.e. `ld -s') work? I remember from previous versions
of cygwin that the stand-alone `strip' program worked, but running
`ld -s' did not work, at least not when linking the Mercury compiler
itself. It may work for small programs but not for large ones.
Actually don't worry about going to any effort to answer that one.
Sometime soon, before the next release, I will need to test Mercury
on Windows again, and when I do so I will see whether `gcc -s' works.
If so, I'll make stripping the default on Windows like it is on our
other platforms.
----------
Estimated hours taken: 0.25
boehm_gc/gc.h:
Fix a warning from `gcc -Wstrict-prototypes'.
Index: gc.h
===================================================================
RCS file: /home/mercury1/repository/mercury/boehm_gc/gc.h,v
retrieving revision 1.26
diff -u -d -u -r1.26 gc.h
--- gc.h 1999/10/07 11:23:08 1.26
+++ gc.h 1999/10/21 13:30:21
@@ -756,7 +756,7 @@
|| defined(_WIN32)
/* win32S may not free all resources on process exit. */
/* This explicitly deallocates the heap. */
- GC_API void GC_win32_free_heap ();
+ GC_API void GC_win32_free_heap GC_PROTO((void));
#endif
#ifdef __cplusplus
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh> | of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3 | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to: mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions: mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------
More information about the developers
mailing list