- To: Andreas Schwab <schwab@xxxxxxxxxxxxxx>
- Subject: Re: detecting when an option is not available
- From: Ian Lance Taylor <iant@xxxxxxxxxx>
- Date: Tue, 12 Jun 2012 13:43:51 -0700
- Cc: gcc-help@xxxxxxxxxxx
- Comment: DKIM? See http://www.dkim.org
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
- In-reply-to: <m2txyhf1x6.fsf@igel.home> (Andreas Schwab's message of "Tue, 12 Jun 2012 09:02:29 +0200")
- User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)
Andreas Schwab <schwab@xxxxxxxxxxxxxx> writes:
> Ian Lance Taylor <iant@xxxxxxxxxx> writes:
>
>> The trick to find out if a -Wno- option is supported is to force a
>> compiler error. E.g.,
>
> The trick to find out if a -Wno- option is supported is to check if the
> positive form is accepted. See ACX_PROG_CC_WARNING_OPTS.
That does seems simpler. Thanks.
Ian
[Linux C Programming]
[Linux Kernel]
[eCos]
[Fedora Development]
[Fedora Announce]
[Autoconf]
[The DWARVES Debugging Tools]
[Yosemite Campsites]
[Yosemite News]
[Linux GCC]