Bug #75479 [Opn->Csd]: warning: passing argument 1 of 'ap_hook_child_init' from incompatible pointer t

From: Date: Sun, 30 Sep 2018 18:09:12 +0000
Subject: Bug #75479 [Opn->Csd]: 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-217327@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 Updated by: nikic@php.net Reported by: spam2 at rhsoft dot net Summary: warning: passing argument 1 of 'ap_hook_child_init' from incompatible pointer t -Status: Open +Status: Closed Type: Bug Package: Compile Warning PHP Version: 7.1Git-2017-11-03 (Git) Block user comment: N Private report: N New Comment: Automatic comment on behalf of nikita.ppv@gmail.com Revision: http://git.php.net/?p=php-src.git;a=commit;h=db80e0e2ad016cbff55cc6e1311b7ffe9ad7101e Log: Fixed bug #75479 Previous Comments: ------------------------------------------------------------------------ [2018-09-30 17:51:05] nikic@php.net Related To: Bug #76953 ------------------------------------------------------------------------ [2018-01-17 22:06:08] carter_aaron at bah dot com Operating System: Red Hat Enterprise Linux Server 7.4 (Maipo) Kernel: Linux 3.10.0-693.5.2.el7.x86_64 ------------------------------------------------------------------------ [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

« previous php.bugs (#217327) next »