libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ltdl.c warnings


From: Gary V. Vaughan
Subject: Re: ltdl.c warnings
Date: Fri, 10 Oct 2003 14:17:29 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20030925 Thunderbird/0.3

Bob Friesenhahn wrote:
With every compiler except for GCC, I am seeing many warnings when
compiling ltdl.c at the default warning level.  This is unfortunate
since ltdl.c is usually the only source file in my project which
produces any warning messages.

Here are a set of warnings from the AIX C compiler.

"/home/bfriesen/GraphicsMagick/ltdl/ltdl.c", line 3725.58: 1506-280 (E) Function 
argument assignment between types "vo
id*" and "int(*)(const char*,void*)" is not allowed.
"/home/bfriesen/GraphicsMagick/ltdl/ltdl.c", line 3731.58: 1506-280 (E) Function 
argument assignment between types "vo
id*" and "int(*)(const char*,void*)" is not allowed.
"/home/bfriesen/GraphicsMagick/ltdl/ltdl.c", line 3735.62: 1506-280 (E) Function 
argument assignment between types "vo
id*" and "int(*)(const char*,void*)" is not allowed.
"/home/bfriesen/GraphicsMagick/ltdl/ltdl.c", line 3742.62: 1506-280 (E) Function 
argument assignment between types "vo
id*" and "int(*)(const char*,void*)" is not allowed.
"/home/bfriesen/GraphicsMagick/ltdl/ltdl.c", line 3749.62: 1506-280 (E) Function 
argument assignment between types "vo
id*" and "int(*)(const char*,void*)" is not allowed.

The HPUX and IRIX compilers produce similar warning messages.

Yes, I'm aware of these. Unfortunately fixing them requires a rewrite of some of the internal APIs, which is quite an involved task. I've learned my lesson now though... function pointers and void* don't mix :-(

Cheers,
        Gary.
--
  ())_.  Gary V. Vaughan    gary@(lilith.warpmail.net|gnu.org)
  ( '/   Research Scientist http://www.oranda.demon.co.uk       ,_())____
  / )=   GNU Hacker         http://www.gnu.org/software/libtool  \'      `&
`(_~)_   Tech' Author       http://sources.redhat.com/autobook   =`---d__/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]