From bfbd1de1590ae3f1a098d0166631d027f33565e9 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Fri, 7 Oct 2016 17:41:45 +0200 Subject: resolv: Deprecate unimplemented flags RES_AAONLY, RES_PRIMARY, RES_NOCHECKNAME, RES_KEEPTSIG result in compile-time warnings. Some of these flags are still used in applications. --- misc/sys/cdefs.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'misc') diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h index 935a94b466..50e00e6711 100644 --- a/misc/sys/cdefs.h +++ b/misc/sys/cdefs.h @@ -472,4 +472,14 @@ # endif #endif +/* __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is + intended for use in preprocessor macros. */ +#if __GNUC_PREREQ (4,8) +# define __glibc_macro_warning1(message) _Pragma (#message) +# define __glibc_macro_warning(message) \ + __glibc_macro_warning1 (GCC warning message) +#else +# define __glibc_macro_warning(msg) +#endif + #endif /* sys/cdefs.h */ -- cgit v1.2.1