From: Mika Laitio Date: Mon, 23 Jul 2012 17:42:43 +0000 (+0300) Subject: removed warning X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6338861b1e05fb620e71a0f61f7a342bc8f7ad28;p=libplpdevicebus.git removed warning Signed-off-by: Mika Laitio --- diff --git a/src_server/DeviceManagerServer.cc b/src_server/DeviceManagerServer.cc index ffa688e..53b5a49 100644 --- a/src_server/DeviceManagerServer.cc +++ b/src_server/DeviceManagerServer.cc @@ -44,7 +44,10 @@ DeviceManagerServer::DeviceManagerServer(list dev_lst_param) { //DeviceConfig::set_base_dir_name(storage_dir_param); //_dev_lst = Factory::get_device_list(); _dev_lst = dev_lst_param; - log_info("device count: %lu\n", _dev_lst.size()); + /* In some toolchains the size is not unsigned int instead of long + unsigned int, and that can cause warnings/errors without typecasting + */ + log_info("device count: %lu\n", (long unsigned int)_dev_lst.size()); _lstnr_thrd = 0; pthread_create(&_lstnr_thrd, NULL,