[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -Winline generates warnings against gnulib code

From: Paul Eggert
Subject: Re: -Winline generates warnings against gnulib code
Date: Sun, 08 Jul 2012 17:40:07 -0700
User-agent: Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120615 Thunderbird/13.0.1

On 07/08/2012 05:32 PM, Reuben Thomas wrote:
> I'm not (intentionally) assuming that I'm using gcc; can I do
> this more portably?

Here's what Emacs does for a similar situation:
at configure-time it sees whether it's using GCC and is being
asked to compile with diagnostics turned on, and if so it
arranges to use -isystem rather than -I.  This appears
to be portable enough.  It's not quite same situation,
since the headers in question are from random 3rd-party
libraries rather than being from gnulib, but the same
idea should work with gnulib.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]