Req #76953 [NEW]: gcc warning

From: Date: Sun, 30 Sep 2018 17:46:22 +0000
Subject: Req #76953 [NEW]: gcc warning
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-217321@lists.php.net to get a copy of this message
From: office at vargapeter dot net Operating system: Any PHP version: 7.2.10 Package: Apache2 related Bug Type: Feature/Change Request Bug description:gcc warning 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 bug report at https://bugs.php.net/bug.php?id=76953&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76953&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76953&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76953&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=76953&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=76953&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=76953&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=76953&r=needscript Try newer version: https://bugs.php.net/fix.php?id=76953&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=76953&r=support Expected behavior: https://bugs.php.net/fix.php?id=76953&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=76953&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=76953&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=76953&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76953&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=76953&r=dst IIS Stability: https://bugs.php.net/fix.php?id=76953&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=76953&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=76953&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=76953&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=76953&r=mysqlcfg

« previous php.bugs (#217321) next »