From: David.Mentre@irisa.fr (David Mentré)
To: Xavier Leroy <Xavier.Leroy@inria.fr>
Cc: caml-list@inria.fr
Subject: Re: Calling C from OCaml, GC problems
Date: 21 Feb 2000 17:54:18 +0100 [thread overview]
Message-ID: <wd84sb2339h.fsf@parate.irisa.fr> (raw)
In-Reply-To: <20000218104523.12491@pauillac.inria.fr>
Xavier Leroy <Xavier.Leroy@inria.fr> writes:
> > 2. when compiling, I've tons of warning like this:
> > bdd_interface.c: In function `mlbdd_alloc_manager':
> > bdd_interface.c:136: warning: left-hand operand of comma expression has no effect
> > bdd_interface.c:136: warning: unused variable `caml__dummy_result'
>
> I think those warnings are harmless, and are due to the way the
> CAMLxxx macros are written in 2.04. But only Damien Doligez knows for
> sure...
Yes. Having a deeper look at those macros, I've found that the first
warning as been fixed in ocaml 2.99 (the macros CAMLxparam referenced a
the caml__frame variable without using it).
However, the second warning is still there (even if harmless). The
problem is that the caml__dummy_##name variables are no longer
used. Such variable is only used to make some side-effects using C
'(stmt1, stmt2, ..., stmtN)' notation. I see no way to fix this. C lack
the Caml 'let _ ='. :)
Any way, many thanks for the feedback.
Best regards,
d.
--
David.Mentre@irisa.fr -- http://www.irisa.fr/prive/dmentre/
Opinions expressed here are only mine.
next prev parent reply other threads:[~2000-02-21 17:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-02-16 15:41 David Mentré
2000-02-18 1:26 ` Markus Mottl
2000-02-18 9:45 ` Xavier Leroy
2000-02-21 16:54 ` David Mentré [this message]
2000-02-21 23:41 ` Max Skaller
2000-02-18 10:48 ` Juan J. Quintela
2000-02-21 13:40 ` David Mentré
2000-02-23 19:39 Damien Doligez
2000-02-24 23:36 ` Max Skaller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=wd84sb2339h.fsf@parate.irisa.fr \
--to=david.mentre@irisa.fr \
--cc=Xavier.Leroy@inria.fr \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox