about summary refs log tree commit diff
path: root/misc/sys
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2016-10-07 17:41:45 +0200
committerFlorian Weimer <fweimer@redhat.com>2016-10-07 17:41:45 +0200
commitbfbd1de1590ae3f1a098d0166631d027f33565e9 (patch)
tree5248e1b989e6f580f3e3b45a3ee9a408aa14337d /misc/sys
parent314ba75e4a26f7147c757a10b07a62ff113409aa (diff)
downloadglibc-bfbd1de1590ae3f1a098d0166631d027f33565e9.tar.gz
glibc-bfbd1de1590ae3f1a098d0166631d027f33565e9.tar.xz
glibc-bfbd1de1590ae3f1a098d0166631d027f33565e9.zip
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.
Diffstat (limited to 'misc/sys')
-rw-r--r--misc/sys/cdefs.h10
1 files changed, 10 insertions, 0 deletions
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 */