Re: new compiler warnings
| От | Tom Lane |
|---|---|
| Тема | Re: new compiler warnings |
| Дата | |
| Msg-id | 17932.1318968796@sss.pgh.pa.us обсуждение |
| Ответ на | Re: new compiler warnings (Peter Eisentraut <peter_e@gmx.net>) |
| Ответы |
Re: new compiler warnings
Re: new compiler warnings |
| Список | pgsql-hackers |
Peter Eisentraut <peter_e@gmx.net> writes:
> On tis, 2011-10-18 at 15:43 -0400, Tom Lane wrote:
>> I don't actually see that warning on my Fedora 15 machine, with
>> gcc version 4.6.1 20110908 (Red Hat 4.6.1-9) (GCC)
> You get the "unused return value" warnings with -D_FORTIFY_SOURCE=2,
> which has been the default on Ubuntu for years, and has been the default
> on Debian for a few weeks (if you have the hardening-wrapper package
> installed or running under dpkg-buildpackage).
Ah-hah. That's also the default on Red Hat platforms, *if* you are
building RPMs, and now that I think of it, I do see this warning when
building RPMs. Seems weird that they'd have set it up that way though
rather than with a -W switch.
regards, tom lane
В списке pgsql-hackers по дате отправления: