bug-gnulib
[Top][All Lists]
Advanced

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

Re: Trivial patches to silence -Wundef


From: Paul Eggert
Subject: Re: Trivial patches to silence -Wundef
Date: Wed, 5 Apr 2017 14:08:21 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

On 04/05/2017 10:56 AM, Tim Rühsen wrote:
while i can (and do) give the gnulib files their own CFLAGS, I can't and won't
leave out -Wundef on my own C files.

You can use something like this in your source files:

  #pragma GCC diagnostic push
  #pragma GCC diagnostic ignored "-Wundef"
  #include <some-gnulib-file.h>
  #pragma GCC diagnostic pop



reply via email to

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