[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Ordered keys patch for lua-5.1.4 (+extra junk)
- From: Roberto Ierusalimschy <roberto@...>
- Date: Fri, 8 Jan 2010 11:16:58 -0200
> I see that this is using dlsym which is a Posix function, effectively what
> this piece of code has done is go from well defined to undefined. Any
> conforming Posix implementation is required to make a function pointer the
> same size as a void*, after all dlysm returns a void pointer. To get round
> the pointer cast warning (which is defined) you have used a Union in not the
> way it is intended to be used or even defined to be used.
That is why we never get rid of this warning. Any trick will only make
things worse. This is a Posix function used in the way it is intended to
be used. Too bad that C does not have proper support for it.
-- Roberto