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

Pádraig Brady P at draigBrady.com
Tue Jul 12 08:56:00 EDT 2011


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

cheers,
Pádraig.




More information about the Pacemaker mailing list