]> granicus.if.org Git - apache/commitdiff
Add "(const void *)" back to the hack variable assignments to avoid
authorJeff Trawick <trawick@apache.org>
Tue, 12 Dec 2000 15:00:33 +0000 (15:00 +0000)
committerJeff Trawick <trawick@apache.org>
Tue, 12 Dec 2000 15:00:33 +0000 (15:00 +0000)
warnings like this on Tru64 (and perhaps other platforms):

cc: Warning: exports.c, line 349: In the initializer for
ap_hack_apr_dbm_nextkey, the referenced type of the pointer value
"apr_dbm_nextkey" is "function (pointer to struct apr_dbm_t, pointer
to struct declared without a tag) returning int", which is not
compatible with "const void". (ptrmismatch)
const void *ap_hack_apr_dbm_nextkey = apr_dbm_nextkey;
--------------------------------------^

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87301 13f79535-47bb-0310-9956-ffa450edef68

build/buildexports.awk

index 6a12e14b542e7b49d26bb859c22e2530471382ee..78f373065f826ec2b5c8d938f1002ce4d4d8679b 100644 (file)
@@ -1,3 +1,3 @@
 /^APR_/     { print "#if", $1 }
-/^\t*apr?_/ { print "const void *ap_hack_" $1 " = " $1 ";" }
+/^\t*apr?_/ { print "const void *ap_hack_" $1 " = (const void *)" $1 ";" }
 /^\/APR_/   { print "#endif /*", substr($1,2), "*/" }