I have a fix for this which I will post to patches - essentially you cast
the pointers to (void *) and the compiler doesn't complain. It would be a
pity to turn off strict aliasing altogether, as it is known to improve
performance in some cases.

Tested on Cygwin/GCC 3.3.1

cheers

andrew


----- Original Message ----- 
From: "Andrew Dunstan" <[EMAIL PROTECTED]>
To: "PostgreSQL Hackers Mailing List" <[EMAIL PROTECTED]>
Sent: Saturday, October 11, 2003 8:58 AM
Subject: Re: [HACKERS] compile warning


>
> ----- Original Message ----- 
> From: "Manfred Spraul" <[EMAIL PROTECTED]>
> >
> > The kernel is still compiled with -fno-strict-aliasing - I'm not sure if
> > there are outstanding problems, or if it's just a safety precaution.
> >
>
> We should probably do likewise, at least until this is cleaned up, if
that's
> what we want to do, again probably from an overabundance of caution.
>
> cheers
>
> andrew
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
>       joining column's datatypes do not match


---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Reply via email to