« Return to Thread: Another strict aliasing warning

Re: Another strict aliasing warning

by Branko Čibej :: Rate this Message:

Reply to Author | View in Thread

Nick Kew wrote:

> On Wed, 18 Jun 2008 11:57:18 +1000
> Bojan Smojver <bojan@...> wrote:
>
>  
>> This time on HP-UX. The attached patch avoids it. Please review.
>>
>>    
>
> Hmmm.  handle->handle appears already void* in arch/unix/apr_arch_dso.h.
>  

Yes but the code takes its address, so it gets a void**. Casts like
these are evil.

-- Brane

 « Return to Thread: Another strict aliasing warning

LightInTheBox - Buy quality products at wholesale price!