Re: ecpg compile error on AIX

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: ecpg compile error on AIX
Дата
Msg-id 19502.1010451652@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: ecpg compile error on AIX  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
> Shouldn't the set of warnings at least be the same on all
> platforms (at least those with the same integer size) or does it just warn
> if there would actually be a problem on that platform?

In fact, the GCC manual makes it pretty clear that the check is machine
dependent:

`-Wcast-align'    Warn whenever a pointer is cast such that the required alignment    of the target is increased.  For
example,warn if a `char *' is    cast to an `int *' on machines where integers can only be accessed    at two- or
four-byteboundaries.
 

I suppose this means that we'd better run test compilations on Alphas
(or some other 8-byte-long environment) too, whenever we try to turn
on -Wcast-align.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: ecpg compile error on AIX
Следующее
От: Tom Lane
Дата:
Сообщение: Re: ecpg compile error on AIX