| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера