OSDN Git Service

configure: Properly check for availability of -Wno-foo warning flags
authorDiego Biurrun <diego@biurrun.de>
Thu, 31 Oct 2013 19:14:37 +0000 (20:14 +0100)
committerDiego Biurrun <diego@biurrun.de>
Fri, 1 Nov 2013 21:05:20 +0000 (22:05 +0100)
commit056fd4fe65e70b4dbca97bcf7faf8b7ce3df993f
treeecbdd68237ec9e475dd7399cba37eb0870d31a83
parent23157d72b565e0228fec97f1eb059d4f8021a260
configure: Properly check for availability of -Wno-foo warning flags

For some weird reason gcc does not check if the -Wno disabling variants
of warning flags match existing warning flags. Instead it swallows them
silently. That is, unless other warning or error messages are generated,
because then - for some even more bizarre reason - a complaint about the
unknown disable warning flag is issued along with the error or warning
message.

Thus to check for the availability of a warning disabling option, one
needs to check for the enabling variant instead and then add the
disabling variant to CFLAGS.
configure