bug-gnulib
[Top][All Lists]
Advanced

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

Re: Using gnulib with -pedantic, I get many warnings about #include_next


From: Paolo Bonzini
Subject: Re: Using gnulib with -pedantic, I get many warnings about #include_next
Date: Mon, 25 Aug 2008 09:44:56 +0200
User-agent: Thunderbird 2.0.0.16 (Macintosh/20080707)

> Reuben has chosen to set CPP_PEDANTIC to true, so in order to get rid of the
> warning, he needs to make  dir->origin == EXTENSION  evaluate to false.
> This means, specify the directory containing the built gnulib header files
> with '-isystem' instead of '-I'.

You can put "#pragma GCC system_header" in the gnulib files.  However, I
don't know offhand if it applies to *all* warnings in the file, or only
those after the pragma.  If it is the former, I think it would be better
to have a separate macro to set it, rather than set it by default.

Paolo




reply via email to

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