Subject: Re: racoon and gcc 3.3.1
To: Patrick Welche <prlw1@newn.cam.ac.uk>
From: Daniel Carosone <dan@geek.com.au>
List: current-users
Date: 09/27/2003 06:54:05
On Fri, Sep 26, 2003 at 01:34:16PM +0100, Patrick Welche wrote:
> gcc 3.3.1 complains about racoon/crypto_openssl.c's uses of
> "(unsigned char **)&p)" (3 of them). I thought there was a whole thread
> about this earlier...
> 
> warning: dereferencing type-punned pointer will break strict-aliasing rules
> 
> gcc 2.95.3 is happy.
> 
> Thoughts?

You need to stop trying to force it to do -O2 for that file, which
it doesn't by default. Or fix the pointer usage :)

--
Dan.