From: Jeff Trawick Date: Tue, 12 Dec 2000 15:00:33 +0000 (+0000) Subject: Add "(const void *)" back to the hack variable assignments to avoid X-Git-Tag: APACHE_2_0_ALPHA_9~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8158a6c50442a0ef75a632cf03a4d96bfffa2351;p=apache Add "(const void *)" back to the hack variable assignments to avoid 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 --- diff --git a/build/buildexports.awk b/build/buildexports.awk index 6a12e14b54..78f373065f 100644 --- a/build/buildexports.awk +++ b/build/buildexports.awk @@ -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), "*/" }