[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: inline -Werror=missing-declarations warnings

From: Paul Eggert
Subject: Re: inline -Werror=missing-declarations warnings
Date: Mon, 17 Dec 2012 19:16:09 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0

On 12/17/12 17:35, Pádraig Brady wrote:
> Should the check in extern-inline.m4 be expanded to all __GNUC_?
> 39cedf6f said the issue was only with gcc 4.8, but
> GCC 4.5.3 (on cygwin at least), seems to have the issue too.

If I understand things correctly, 39cedf6f relies on
_Pragma ("GCC diagnostic push"), which requires GCC 4.6
or later, and so we can't apply its idea to GCC 4.5.3.

The typical solution for older GCCs right now is to
ignore the bogus warnings that they generate, which
implies that with these older compilers one should either
avoid -Werror, or avoid -Wmissing-prototypes and
-Wmissing-declarations and -Wsuggest-attributes=const.
Z. Majeed wrote that he had to fiddle with --disable-gcc-warnings
(I assume he meant --enable-gcc-warnings?) and perhaps
--enable-gcc-warnings should be tweaked to disable these
problematic warnings with older compilers.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]