[sr-dev] compilation warnings

Timo Reimann timo.reimann at 1und1.de
Wed Aug 17 18:51:46 CEST 2011


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



More information about the sr-dev mailing list