Re: compile warnings in CVS HEAD?

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: compile warnings in CVS HEAD?
Дата
Msg-id 1063640341.16645.3.camel@tokyo
обсуждение исходный текст
Ответ на Re: compile warnings in CVS HEAD?  (Kurt Roeckx <Q@ping.be>)
Ответы Re: compile warnings in CVS HEAD?  (Peter Eisentraut <peter_e@gmx.net>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: massive quotes?
Следующее
От: Jon Jensen
Дата:
Сообщение: Re: massive quotes?