Req #76953 [Opn->Dup]: gcc warning
| From: | nikic@php.net | Date: | Sun, 30 Sep 2018 17:51:05 +0000 |
| Subject: | Req #76953 [Opn->Dup]: gcc warning | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-217323@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=76953&edit=1
ID: 76953
Updated by: nikic@php.net
Reported by: office at vargapeter dot net
Summary: gcc warning
-Status: Open
+Status: Duplicate
Type: Feature/Change Request
Package: Apache2 related
Operating System: Any
PHP Version: 7.2.10
Block user comment: N
Private report: N
New Comment:
@rhsoft: Indeed, this is a duplicate of bug #75479.
Previous Comments:
------------------------------------------------------------------------
[2018-09-30 17:49:02] spam2 at rhsoft dot net
exists for years, i reported that long ago, nobody cares
------------------------------------------------------------------------
[2018-09-30 17:46:22] office at vargapeter dot net
Description:
------------
/builds/php-7.2.10/sapi/apache2handler/sapi_apache2.c: In function
âphp_ap2_register_hookâ:
/builds/php-7.2.10/sapi/apache2handler/sapi_apache2.c:745: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/apache2-prefork/ap_hooks.h:40,
from /usr/include/apache2-prefork/ap_config.h:25,
from /builds/php-7.2.10/sapi/apache2handler/sapi_apache2.c:37:
/usr/include/apr-1/apr_hooks.h:120:61: note: expected âvoid (*)(apr_pool_t *, server_rec
*)â {aka âvoid (*)(struct apr_pool_t *, struct server_rec *)â} but argument is of
type âvoid (*)(void)â
link##_DECLARE(void) ns##_hook_##name(ns##_HOOK_##name##_t *pf, \
/usr/include/apache2-prefork/ap_hooks.h:75:9: note: in expansion of macro
âAPR_DECLARE_EXTERNAL_HOOKâ
APR_DECLARE_EXTERNAL_HOOK(ap,AP,ret,name,args)
^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/apache2-prefork/http_config.h:1295:1: note: in expansion of macro
âAP_DECLARE_HOOKâ
AP_DECLARE_HOOK(void,child_init,(apr_pool_t *pchild, server_rec *s))
Expected result:
----------------
No warning
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=76953&edit=1