aboutsummaryrefslogtreecommitdiff
path: root/debug/warning-nop.c
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2005-03-28 07:09:47 +0000
committerAndreas Jaeger <aj@suse.de>2005-03-28 07:09:47 +0000
commitf864df7fc7e01cdcb0730a70db1f5effbe66baa6 (patch)
treec66bbb707f031ba121b256f41b9f656a67eff8f4 /debug/warning-nop.c
parenta0dd3094ab1429f2d1a353e34d9db8e137c9e90e (diff)
downloadglibc-f864df7fc7e01cdcb0730a70db1f5effbe66baa6.tar
glibc-f864df7fc7e01cdcb0730a70db1f5effbe66baa6.tar.gz
glibc-f864df7fc7e01cdcb0730a70db1f5effbe66baa6.tar.bz2
glibc-f864df7fc7e01cdcb0730a70db1f5effbe66baa6.zip
(__builtin___memcpy_chk): Define away to
avoid warnings with older compiler. (__builtin___memcpy_chk): Likewise. (__builtin___memmove_chk: Likewise. (__builtin___mempcpy_chk): Likewise. (__builtin___memset_chk): Likewise. (__builtin___stpcpy_chk): Likewise. (__builtin___strcat_chk): Likewise. (__builtin___strcpy_chk): Likewise. (__builtin___strncat_chk): Likewise. (__builtin___strncpy_chk): Likewise. (__builtin_object_size): Likewise.
Diffstat (limited to 'debug/warning-nop.c')
-rw-r--r--debug/warning-nop.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/debug/warning-nop.c b/debug/warning-nop.c
index b4ebbac4dd..8f2f66e16a 100644
--- a/debug/warning-nop.c
+++ b/debug/warning-nop.c
@@ -37,4 +37,17 @@ nop (void)
/* Following here we need an #include for each public header file
that uses __warndecl. */
+/* Define away to avoid warnings with compilers that do not have these
+ builtins. */
+#define __builtin___memcpy_chk(dest, src, len, bos) NULL
+#define __builtin___memmove_chk(dest, src, len, bos) NULL
+#define __builtin___mempcpy_chk(dest, src, len, bos) NULL
+#define __builtin___memset_chk(dest, ch, len, bos) NULL
+#define __builtin___stpcpy_chk(dest, src, bos) NULL
+#define __builtin___strcat_chk(dest, src, bos) NULL
+#define __builtin___strcpy_chk(dest, src, bos) NULL
+#define __builtin___strncat_chk(dest, src, len, bos) NULL
+#define __builtin___strncpy_chk(dest, src, len, bos) NULL
+#define __builtin_object_size(bos, level) 0
+
#include <string.h>