BelledonneCommunications / flexisip

Linphone.org mirror for flexisip (git://git.linphone.org/flexisip.git)
http://flexisip.org
GNU Affero General Public License v3.0
144 stars 69 forks source link

Compile error in registrardb-redis-async.cc #82

Open SibertDekimo opened 4 years ago

SibertDekimo commented 4 years ago

I have tried to compile flexisip using the included flex-from-src dockerfile. I am running into the following error: `#9 2.271 /flexisip/src/registrardb-redis-async.cc: In member function 'void flexisip::RegistrarDbRedisAsync::handleFetch(redisReply, flexisip::RegistrarUserData)':

9 2.271 /flexisip/src/registrardb-redis-async.cc:815:8: error: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'size_t' {aka 'unsigned int'} [-Werror=format=]

9 2.271 LOGD("GOT fs:%s [%lu] --> %lu contacts", key, data->token, (reply->elements / 2));

9 2.271 ^~~~~~~~ ~~~~~~~

`

I managed to continue compiling by changing line 815 to LOGD("GOT fs:%s [%lu] --> %lu contacts", key, data->token, (unsigned long)(reply->elements / 2));