From 6338861b1e05fb620e71a0f61f7a342bc8f7ad28 Mon Sep 17 00:00:00 2001 From: Mika Laitio Date: Mon, 23 Jul 2012 20:42:43 +0300 Subject: [PATCH] removed warning Signed-off-by: Mika Laitio --- src_server/DeviceManagerServer.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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, -- 2.41.1