apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bo...@apache.org
Subject svn commit: r660373 - /apr/apr/trunk/strings/apr_snprintf.c
Date Tue, 27 May 2008 04:49:06 GMT
Author: bojan
Date: Mon May 26 21:49:03 2008
New Revision: 660373

URL: http://svn.apache.org/viewvc?rev=660373&view=rev
Log:
Silence GCC 4.3 warning (patch by jorton).

Modified:
    apr/apr/trunk/strings/apr_snprintf.c

Modified: apr/apr/trunk/strings/apr_snprintf.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/strings/apr_snprintf.c?rev=660373&r1=660372&r2=660373&view=diff
==============================================================================
--- apr/apr/trunk/strings/apr_snprintf.c (original)
+++ apr/apr/trunk/strings/apr_snprintf.c Mon May 26 21:49:03 2008
@@ -54,7 +54,8 @@
 #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



Mime
View raw message