Red Hat Bugzilla – Bug 146000
4 * dead code
Last modified: 2007-11-30 17:10:59 EST
Description of problem:
I just tried to compile package php-5.0.3-1 from
Redhat Fedora development tree.
The compiler said
/usr/src/redhat/BUILD/php-5.0.3/ext/gmp/gmp.c(467): remark #177:
function "_gmp_unary_opl" was declared but never referenced
/usr/src/redhat/BUILD/php-5.0.3/Zend/zend_compile.c(867): remark #177:
"zend_lowercase_znode_if_const" was declared but never referenced
/usr/src/redhat/BUILD/php-5.0.3/Zend/zend_ini.c(329): remark #177:
function "zend_ini_displayer_cb" was declared but never referenced
#177: function "array_num_elements" was declared but never referenced
I've had a look at the source code, and I agree with the compiler.
Suggest delete dead code.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
These are harmless warnings and there are thousands more in PHP just
from gcc -Wall; dumping these bit by bit through the Red Hat bugzilla
database doesn't help.
Bugs filed on warnings which reveal *actual code misbehaviour* are
appreciated; but not this.