Bug #78437 [Opn]: warnings that should be fixed in 7.4-GIT

From: Date: Wed, 21 Aug 2019 14:22:10 +0000
Subject: Bug #78437 [Opn]: warnings that should be fixed in 7.4-GIT
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-222349@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78437&edit=1 ID: 78437 Updated by: nikic@php.net Reported by: phpbugreports at gmail dot com Summary: warnings that should be fixed in 7.4-GIT Status: Open Type: Bug Package: Compile Warning PHP Version: 7.4Git-2019-08-21 (Git) Block user comment: N Private report: N New Comment: Which gcc version do you use? Previous Comments: ------------------------------------------------------------------------ [2019-08-21 14:07:04] phpbugreports at gmail dot com Description: ------------ In file included from php-7.4.0/Zend/zend_types.h:25, from php-7.4.0/Zend/zend.h:27, from php-7.4.0/main/php.h:33, from php-7.4.0/ext/intl/collator/collator_is_numeric.h:21, from php-7.4.0/ext/intl/collator/collator_is_numeric.c:18: php-7.4.0/ext/intl/collator/collator_is_numeric.c: In function 'collator_u_strtod': php-7.4.0/Zend/zend_portability.h:369:10: warning: 'use_heap' may be used uninitialized in this function [-Wmaybe-uninitialized] do { if (UNEXPECTED(use_heap)) efree(p); } while (0) ^ php-7.4.0/ext/intl/collator/collator_is_numeric.c:74:15: note: 'use_heap' was declared here ALLOCA_FLAG(use_heap); ^~~~~~~~ php-7.4.0/Zend/zend_portability.h:361:12: note: in definition of macro 'ALLOCA_FLAG' zend_bool name; ^~~~ In file included from php-7.4.0/Zend/zend.h:30, from php-7.4.0/main/php.h:33, from php-7.4.0/ext/phar/phar_internal.h:25, from php-7.4.0/ext/phar/phar.c:21: php-7.4.0/ext/phar/phar.c: In function 'phar_flush': php-7.4.0/Zend/zend_alloc.h:195:48: warning: 'suser_stub' may be used uninitialized in this function [-Wmaybe-uninitialized] #define pefree(ptr, persistent) ((persistent)?free(ptr):efree(ptr)) ^~~~ php-7.4.0/ext/phar/phar.c:2560:16: note: 'suser_stub' was declared here zend_string *suser_stub; ^~~~~~~~~~ php-7.4.0/ext/sockets/sockets.c: In function 'zm_startup_sockets': php-7.4.0/ext/sockets/sockets.c:853:13: warning: AI_IDN_ALLOW_UNASSIGNED is deprecated REGISTER_LONG_CONSTANT("AI_IDN_ALLOW_UNASSIGNED", AI_IDN_ALLOW_UNASSIGNED, CONST_CS | CONST_PERSISTENT); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ php-7.4.0/ext/sockets/sockets.c:854:13: warning: AI_IDN_USE_STD3_ASCII_RULES is deprecated REGISTER_LONG_CONSTANT("AI_IDN_USE_STD3_ASCII_RULES", AI_IDN_USE_STD3_ASCII_RULES, CONST_CS | CONST_PERSISTENT); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ php-7.4.0/sapi/cli/php_cli.c: In function 'sapi_cli_select': php-7.4.0/sapi/cli/php_cli.c:251:25: warning: passing argument 2 to restrict-qualified parameter aliases with argument 4 [-Wrestrict] ret = php_select(fd+1, &dfd, &wfd, &dfd, &tv); ^~~~ ~~~~ php-7.4.0/sapi/cli/php_cli.c:85:46: note: in definition of macro 'php_select' # define php_select(m, r, w, e, t) select(m, r, w, e, t) ^ Zend/zend_ini_scanner.l: In function 'ini_lex': Zend/zend_ini_scanner.c:520:18: warning: 'yych' may be used uninitialized in this function [-Wmaybe-uninitialized] goto *yytarget[yych]; ~~~~~~~~^~~~~~ Zend/zend_ini_scanner.c:388:10: note: 'yych' was declared here YYCTYPE yych; ^~~~ Zend/zend_language_scanner.l: In function 'lex_scan': Zend/zend_language_scanner.c:1860:18: warning: 'yych' may be used uninitialized in this function [-Wmaybe-uninitialized] goto *yytarget[yych]; ~~~~~~~~^~~~~~ Zend/zend_language_scanner.c:1254:10: note: 'yych' was declared here YYCTYPE yych; ^~~~ ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=78437&edit=1

« previous php.bugs (#222349) next »