[Mesa-dev] testing for certain compiler options does not work

Ian Romanick idr at freedesktop.org
Wed Dec 6 20:21:53 UTC 2017


On 11/29/2017 08:16 AM, Marc Dietrich wrote:
> Hi,
> 
> just found that my gcc 'gcc (SUSE Linux) 7.2.1 20171020 [gcc-7-branch revision 
> 253932]' does not warn when using the negative form of unsupported warning 
> options. So all the configure tests for such options erroneously succeed, e.g:
> 
> gcc -Wno-bob test.c # works fine
> 
> gcc -Walice test.c # warns for unsupported compiler option
> 
> Maybe gcc bug or intended behaviour, maybe only unique to my version?

At least 6.4.1 does not have this problem, but our checks must be broken
in a different way.  I see piles of

cc1: warning: unrecognized command line option ‘-Wno-initializer-overrides’

This probably explains why I see piles of

cc1: warning: unrecognized command line option ‘-Wno-initializer-overrides’

in my builds.

> Marc
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20171206/0adb30dd/attachment-0001.sig>


More information about the mesa-dev mailing list