Opened 5 years ago

Closed 4 years ago

#236 closed defect (fixed)

compilation warnings

Reported by: Timon Owned by: moo
Priority: minor Milestone: 1.3.2
Component: build Version: 1.3.0
Keywords: Cc:
Application: PHP Version: 5.3.1
Other Exts: SAPI: Irrelevant
Probability: Always Blocked By:
Blocking:

Description

I compile xcache and get this gcc warnings:

libtool: compile:  cc -I. -I/home/timon/rpmbuild/BUILD/xcache-1.3.0 -DPHP_ATOM_INC -I/home/timon/rpmbuild/BUILD/xcache-1.3.0/include -I/home/timon/rpmbuild/BUILD/xcache-1.3.0/main -I/home/timon/rpmbuild/BUILD/xcache-1.3.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -O2 -g -c /home/timon/rpmbuild/BUILD/xcache-1.3.0/processor.c  -fPIC -DPIC -o .libs/processor.o
In file included from /home/timon/rpmbuild/BUILD/xcache-1.3.0/processor.c:1:
/home/timon/rpmbuild/BUILD/xcache-1.3.0/processor_real.c: In function 'xc_calc_zend_arg_info':
/home/timon/rpmbuild/BUILD/xcache-1.3.0/processor_real.c:3111: warning: passing argument 3 of 'xc_calc_string_n' discards qualifiers from pointer target type
/home/timon/rpmbuild/BUILD/xcache-1.3.0/processor_real.c:646: note: expected 'zstr' but argument is of type 'const char * const'
/home/timon/rpmbuild/BUILD/xcache-1.3.0/processor_real.c:3234: warning: passing argument 3 of 'xc_calc_string_n' discards qualifiers from pointer target type
/home/timon/rpmbuild/BUILD/xcache-1.3.0/processor_real.c:646: note: expected 'zstr' but argument is of type 'const char * const'
/home/timon/rpmbuild/BUILD/xcache-1.3.0/processor_real.c: In function 'xc_store_zend_arg_info':
/home/timon/rpmbuild/BUILD/xcache-1.3.0/processor_real.c:10856: warning: passing argument 3 of 'xc_store_string_n' discards qualifiers from pointer target type
/home/timon/rpmbuild/BUILD/xcache-1.3.0/processor_real.c:692: note: expected 'zstr' but argument is of type 'const char * const'
/home/timon/rpmbuild/BUILD/xcache-1.3.0/processor_real.c:10985: warning: passing argument 3 of 'xc_store_string_n' discards qualifiers from pointer target type
/home/timon/rpmbuild/BUILD/xcache-1.3.0/processor_real.c:692: note: expected 'zstr' but argument is of type 'const char * const'

is this normal?

gcc-4.4.3-4.fc12.x86_64

Change History (1)

comment:1 Changed 4 years ago by moo

  • Probability set to Always
  • Resolution set to fixed
  • Status changed from new to closed

false alarm. fixed in #770, pending for 1.3.x. the warning for using *add_assoc* is not fixed however. i guess it's a ZendEngine? bug

Note: See TracTickets for help on using tickets.