[Top][All Lists]

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

Re: Disable -Werror when error attribute generates warnings

From: Grégoire Sutre
Subject: Re: Disable -Werror when error attribute generates warnings
Date: Sat, 02 Jan 2010 19:05:08 +0100
User-agent: Mozilla-Thunderbird (X11/20090707)

Colin Watson wrote:

Instead of this, why not only use the attribute if it's available? I
couldn't find an entry about it in GCC's human-readable change
summaries, but support was committed on 2007-09-23 so I think it's
available from GCC 4.3.

I use this GNUC_PREREQ approach in other projects and rather like it. It
could be extended to cover our other uses of attributes quite easily.

Nice trick :-)

I confirm that this patch works with gcc 4.1.3 on NetBSD. And it's definitely better than completely disabling -Werror...



reply via email to

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