diff options
author | bojan <bojan@13f79535-47bb-0310-9956-ffa450edef68> | 2008-05-27 04:49:54 +0000 |
---|---|---|
committer | bojan <bojan@13f79535-47bb-0310-9956-ffa450edef68> | 2008-05-27 04:49:54 +0000 |
commit | eb6833ac217083b7b4e24665300fb84bef6329b3 (patch) | |
tree | 04e9bb23ed8366cfd3922552dbf90198fdc5355c /strings | |
parent | 7cc67d19930c78da337f3e5785c6b9264ff4acae (diff) | |
download | libapr-eb6833ac217083b7b4e24665300fb84bef6329b3.tar.gz |
Backport r660373 from the trunk.
Silence GCC 4.3 warning (patch by jorton).
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.3.x@660374 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'strings')
-rw-r--r-- | strings/apr_snprintf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/strings/apr_snprintf.c b/strings/apr_snprintf.c index bf3f58537..013100799 100644 --- a/strings/apr_snprintf.c +++ b/strings/apr_snprintf.c @@ -54,7 +54,8 @@ typedef enum { #endif #define NUL '\0' -#define S_NULL "(null)" +static const char null_string[] = "(null)"; +#define S_NULL ((char *)null_string) #define S_NULL_LEN 6 #define FLOAT_DIGITS 6 |