aboutsummaryrefslogtreecommitdiff
path: root/misc/sys/cdefs.h
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@sourceware.org>2020-11-05 10:20:32 +0530
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2020-11-05 15:11:42 +0530
commit34aec973e15a81926198f4b71ff99081dff87a92 (patch)
treef324e5a8fcd956d4f74e923952ba861cebf7b68f /misc/sys/cdefs.h
parentdc274b141666766b8ef70992d887e3c0c5e41bed (diff)
downloadglibc-34aec973e15a81926198f4b71ff99081dff87a92.tar
glibc-34aec973e15a81926198f4b71ff99081dff87a92.tar.gz
glibc-34aec973e15a81926198f4b71ff99081dff87a92.tar.bz2
glibc-34aec973e15a81926198f4b71ff99081dff87a92.zip
Remove __warndecl
The macro is not used anymore, so remove it and warning-nop.c. Reviewed-by: Florian Weimer <fweimer@redhat.com>
Diffstat (limited to 'misc/sys/cdefs.h')
-rw-r--r--misc/sys/cdefs.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h
index 86906c2478..e94d09d7dd 100644
--- a/misc/sys/cdefs.h
+++ b/misc/sys/cdefs.h
@@ -128,13 +128,10 @@
#define __bos0(ptr) __builtin_object_size (ptr, 0)
#if __GNUC_PREREQ (4,3)
-# define __warndecl(name, msg) \
- extern void name (void) __attribute__((__warning__ (msg)))
# define __warnattr(msg) __attribute__((__warning__ (msg)))
# define __errordecl(name, msg) \
extern void name (void) __attribute__((__error__ (msg)))
#else
-# define __warndecl(name, msg) extern void name (void)
# define __warnattr(msg)
# define __errordecl(name, msg) extern void name (void)
#endif