Browse thread
[Caml-list] Question about warning message.
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | David Brown <caml-list@d...> |
| Subject: | Re: [Caml-list] Question about warning message. |
On Wed, May 05, 2004 at 05:16:06PM +0200, Claudio Trento wrote: > Hi, > my g++ compiler show me this warning: > > << warning: unused variable `int caml__dummy_n' >> It is part of the construct the headers use to implement the CAMLparam... macros. Strictly it isn't necessary in C++, since you can have declarations in the middle of a block, but then there would be different constructs for C and C++. BTW, what about having a (void) caml__dummy_##x; at the end of the CAMLxparam... macros? This does shut up the warning, at least on gcc. Dave ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners