Re: compile warnings in CVS HEAD? - Mailing list pgsql-hackers

From Neil Conway
Subject Re: compile warnings in CVS HEAD?
Date
Msg-id 1063640341.16645.3.camel@tokyo
Whole thread Raw
In response to Re: compile warnings in CVS HEAD?  (Kurt Roeckx <Q@ping.be>)
Responses Re: compile warnings in CVS HEAD?
List pgsql-hackers
On Thu, 2003-09-04 at 13:14, Kurt Roeckx wrote:
> > > tablecmds.c: In function `validateForeignKeyConstraint':
> > > tablecmds.c:3546: warning: dereferencing type-punned pointer will break
> > > strict-aliasing rules

So, what should we do with this?

> The recommended way to deal with is to put them into a union.

Yuck...

Other ways to deal with the problem include using -fno-strict-aliasing
or -Wno-strict-aliasing (to disable the optimization itself and to
disable the warnings about it, respectively).

-Neil




pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: massive quotes?
Next
From: Jon Jensen
Date:
Subject: Re: massive quotes?