[Pacemaker] [PATCH] Dev: build: avoid GCC 4.6 warnings

Andrew Beekhof andrew at beekhof.net
Thu Jul 14 01:35:17 CET 2011


2011/7/12 Pádraig Brady <P at draigbrady.com>:
> On 12/07/11 13:48, Pádraig Brady wrote:
>> On 12/07/11 13:02, Andrew Beekhof wrote:
>>> 2011/7/12 Pádraig Brady <P at draigbrady.com>:
>>>> So -Wnounused-but-set-variable will disable that particular warning.
>>>
>>> Perfect. Added that to configure.
>>
>> -Wno-unused-but-set-variable even
>>
>> Red Hat 4.5.1-4 had -Wunused-but-set-variable but it's
>> auto enabled with -Wall since GCC 4.6
>>
>> GCC helpfully ignores any -Wno-.... options it doesn't understand.
>
> GCC >= 4.3 helpfully ignores any -Wno-.... options it doesn't understand

We had logic already for conditionally adding flags depending on if
the compiler supports it or not.
I just added it to the list :-)



More information about the Pacemaker mailing list