Bug #75479 [Com]: warning: passing argument 1 of 'ap_hook_child_init' from incompatible pointer t
| From: | carter_aaron at bah dot com | Date: | Wed, 17 Jan 2018 22:06:09 +0000 |
| Subject: | Bug #75479 [Com]: warning: passing argument 1 of 'ap_hook_child_init' from incompatible pointer t | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-213594@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75479&edit=1
ID: 75479
Comment by: carter_aaron at bah dot com
Reported by: spam2 at rhsoft dot net
Summary: warning: passing argument 1 of 'ap_hook_child_init'
from incompatible pointer t
Status: Open
Type: Bug
Package: Compile Warning
PHP Version: 7.1Git-2017-11-03 (Git)
Block user comment: N
Private report: N
New Comment:
Operating System: Red Hat Enterprise Linux Server 7.4 (Maipo)
Kernel: Linux 3.10.0-693.5.2.el7.x86_64
Previous Comments:
------------------------------------------------------------------------
[2018-01-17 21:48:11] carter_aaron at bah dot com
Same warning when compiling php-7.2.1
------------------------------------------------------------------------
[2017-11-03 12:10:23] spam2 at rhsoft dot net
Description:
------------
/home/builduser/rpmbuild/BUILD/php-7.1.11/sapi/apache2handler/sapi_apache2.c: In function
'php_ap2_register_hook':
/home/builduser/rpmbuild/BUILD/php-7.1.11/sapi/apache2handler/sapi_apache2.c:755:21: warning:
passing argument 1 of 'ap_hook_child_init' from incompatible pointer type
[-Wincompatible-pointer-types]
ap_hook_child_init(zend_signal_init, NULL, NULL, APR_HOOK_MIDDLE);
^~~~~~~~~~~~~~~~
In file included from /usr/include/httpd/ap_hooks.h:40:0,
from /usr/include/httpd/ap_config.h:25,
from
/home/builduser/rpmbuild/BUILD/php-7.1.11/sapi/apache2handler/sapi_apache2.c:41:
/usr/include/httpd/ap_hooks.h:75:35: note: expected 'void (*)(apr_pool_t *, server_rec *) {aka
void (*)(struct apr_pool_t *, struct server_rec *)}' but argument is of type 'void
(*)(void)'
APR_DECLARE_EXTERNAL_HOOK(ap,AP,ret,name,args)
^
/usr/include/apr-1/apr_hooks.h:120:22: note: in definition of macro
'APR_DECLARE_EXTERNAL_HOOK'
link##_DECLARE(void) ns##_hook_##name(ns##_HOOK_##name##_t *pf, \
^~
/usr/include/httpd/http_config.h:1312:1: note: in expansion of macro 'AP_DECLARE_HOOK'
AP_DECLARE_HOOK(void,child_init,(apr_pool_t *pchild, server_rec *s))
^~~~~~~~~~~~~~~
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=75479&edit=1