i just compiled master, and got these warnings:
CC (cc) [M db_mysql.so] km_db_mysql.o km_db_mysql.c: In function ‘kam_mysql_mod_init’: km_db_mysql.c:93: warning: implicit declaration of function ‘db_mysql_alloc_buffer’
CC (cc) [M rls.so] resource_notify.o resource_notify.c:51:1: warning: "CONT_COPY" redefined In file included from rls.h:37, from resource_notify.c:38: ../presence/hash.h:52:1: warning: this is the location of the previous definition CC (cc) [M xcap_server.so] xcap_server.o xcap_server.c:422: warning: ‘xcaps_str_appsexml’ defined but not used
especially the first one sounds dangerous.
-- juha
Hey,
On 17.08.2011 09:58, Juha Heinanen wrote:
i just compiled master, and got these warnings:
CC (cc) [M db_mysql.so] km_db_mysql.o km_db_mysql.c: In function ‘kam_mysql_mod_init’: km_db_mysql.c:93: warning: implicit declaration of function ‘db_mysql_alloc_buffer’
A declaration was missing in a header file.
CC (cc) [M rls.so] resource_notify.o resource_notify.c:51:1: warning: "CONT_COPY" redefined In file included from rls.h:37, from resource_notify.c:38: ../presence/hash.h:52:1: warning: this is the location of the previous definition
CONT_COPY is already defined in modules_k/presence/hash.h. Interestingly, there's also CONT_COPY_1 in resource_notify.c but neither is used in the rls module. That's why I removed both.
CC (cc) [M xcap_server.so] xcap_server.o xcap_server.c:422: warning: ‘xcaps_str_appsexml’ defined but not used
There are already other variables enclosed in a #if 0/#endif block in xcap_server.c. I moved xcaps_str_appsexml inside that block.
Cheers,
--Timo