diff options
author | Roger Sayle <roger@eyesopen.com> | 2006-01-04 21:22:34 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2006-01-04 21:22:34 +0000 |
commit | 7a6d30ce0d067ddd40c6d1f000c9d7de27ea4d09 (patch) | |
tree | df0b0e12adaf7647471e57a684e11de8f7fc8ffc | |
parent | 1916e588f3ac75c1de2b8a1b6a5cbacc79b5bb20 (diff) | |
download | gcc-7a6d30ce0d067ddd40c6d1f000c9d7de27ea4d09.zip gcc-7a6d30ce0d067ddd40c6d1f000c9d7de27ea4d09.tar.gz gcc-7a6d30ce0d067ddd40c6d1f000c9d7de27ea4d09.tar.bz2 |
decNumber.c (__NO_STRING_INLINES): Define to prevent glibc macro definition of strcpy from generating compilation...
* decNumber.c (__NO_STRING_INLINES): Define to prevent glibc macro
definition of strcpy from generating compilation warnings.
Co-Authored-By: Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
From-SVN: r109351
-rw-r--r-- | libdecnumber/ChangeLog | 6 | ||||
-rw-r--r-- | libdecnumber/decNumber.c | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/libdecnumber/ChangeLog b/libdecnumber/ChangeLog index e509a62..d5fdc35 100644 --- a/libdecnumber/ChangeLog +++ b/libdecnumber/ChangeLog @@ -1,3 +1,9 @@ +2006-01-03 Roger Sayle <roger@eyesopen.com> + Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + + * decNumber.c (__NO_STRING_INLINES): Define to prevent glibc macro + definition of strcpy from generating compilation warnings. + 2006-01-02 Paolo Bonzini <bonzini@gnu.org> PR target/25259 diff --git a/libdecnumber/decNumber.c b/libdecnumber/decNumber.c index bc11ace..3f5cc9f 100644 --- a/libdecnumber/decNumber.c +++ b/libdecnumber/decNumber.c @@ -149,6 +149,10 @@ /* -ve -- negative */ /* ------------------------------------------------------------------ */ +/* Some of glibc's string inlines cause warnings. Plus we'd rather + rely on (and therefore test) GCC's string builtins. */ +#define __NO_STRING_INLINES + #include <stdlib.h> /* for malloc, free, etc. */ #include <stdio.h> /* for printf [if needed] */ #include <string.h> /* for strcpy */ |