From 8003a084f4caee9b6045faf398839354fb30e6f9 Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Tue, 12 Dec 2000 15:00:33 +0000 Subject: [PATCH] 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 --- build/buildexports.awk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/buildexports.awk b/build/buildexports.awk index 6a12e14b542..78f373065f8 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), "*/" } -- 2.47.3