compiler warning

2005-12-08 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I. -DLTDLOPEN=libltdl -DLT_CONFIG_H=config.h -DLTDL -I. -I. -Ilibltdl -I./libltdl - -I./libltdl/libltdl -g2 -Wall -Werror -MT libltdl/libltdl_libltdl_la-ltdl.lo -MD -MP -MF

Re: compiler warning

2005-12-08 Thread Ralf Wildenhues
Hi Eric, * Eric Blake wrote on Thu, Dec 08, 2005 at 02:49:19PM CET: libltdl/ltdl.c:2042: warning: passing arg 1 of `free' discards qualifiers from pointer target type So, should we change libltdl/libtldl/lt__alloc.h to have the FREE(mem) macro cast away const by calling free ((void *)

Re: compiler warning

2005-12-08 Thread Eric Blake
Hi Eric, Hi Ralf, So, should we change libltdl/libtldl/lt__alloc.h to have the FREE(mem) macro cast away const by calling free ((void *) mem), Yes, I've applied this to HEAD. Except you forgot to bump the copyright year in lt__alloc.h. -- Eric Blake

Re: compiler warning

2005-12-08 Thread Bob Friesenhahn
On Thu, 8 Dec 2005, Eric Blake wrote: Except you forgot to bump the copyright year in lt__alloc.h. A single line cast is not a sufficiently large change to warrant an update to the copyright year. Bob == Bob Friesenhahn [EMAIL PROTECTED],