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
/^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), "*/" }