Details
-
Bug
-
Resolution: Fixed
-
Major
-
1.0
-
None
-
Security Level: Public
-
None
-
Ubuntu
Description
With the latest libcouchbase, make throws the following warnings:
libtool: compile: cc -I. -I/home/jan/src/php-ext-couchbase -DPHP_ATOM_INC -I/home/jan/src/php-ext-couchbase/include -I/home/jan/src/php-ext-couchbase/main -I/home/jan/src/php-ext-couchbase -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/local/include/ -DHAVE_CONFIG_H -g -O2 -c /home/jan/src/php-ext-couchbase/couchbase.c -fPIC -DPIC -o .libs/couchbase.o
/home/jan/src/php-ext-couchbase/couchbase.c: In function 'php_couchbase_get_callback':
/home/jan/src/php-ext-couchbase/couchbase.c:889:13: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'uint64_t' [-Wformat]
/home/jan/src/php-ext-couchbase/couchbase.c:922:17: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'uint64_t' [-Wformat]
/home/jan/src/php-ext-couchbase/couchbase.c:947:17: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'uint64_t' [-Wformat]
/home/jan/src/php-ext-couchbase/couchbase.c: In function 'php_couchbase_storage_callback':
/home/jan/src/php-ext-couchbase/couchbase.c:989:9: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'uint64_t' [-Wformat]
/home/jan/src/php-ext-couchbase/couchbase.c:993:9: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'uint64_t' [-Wformat]
/home/jan/src/php-ext-couchbase/couchbase.c: In function 'php_couchbase_set_option_impl':
/home/jan/src/php-ext-couchbase/couchbase.c:2223:25: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat]
/home/jan/src/php-ext-couchbase/couchbase.c:2247:25: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat]
/home/jan/src/php-ext-couchbase/couchbase.c:2253:13: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat]
/home/jan/src/php-ext-couchbase/couchbase.c: In function 'php_couchbase_get_option_impl':
/home/jan/src/php-ext-couchbase/couchbase.c:2298:13: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat]
In file included from /usr/include/string.h:642:0,
from /usr/include/php5/main/../main/php_config.h:2457,
from /usr/include/php5/Zend/zend_config.h:1,
from /usr/include/php5/Zend/zend.h:51,
from /usr/include/php5/main/php.h:34,
from /home/jan/src/php-ext-couchbase/couchbase.c:27:
In function 'memcpy',
inlined from 'php_couchbase_zval_from_payload' at /home/jan/src/php-ext-couchbase/couchbase.c:661:15:
/usr/include/x86_64-linux-gnu/bits/string3.h:52:3: warning: call to _builtin__memcpy_chk will always overflow destination buffer [enabled by default]
I understand that not all warnings are a sign of trouble, but I believe we should try to keep the build log as clean as possible so we can easily spot that things that are a problem.