From: Lukasz Bardeli Date: Wed, 1 Jul 2015 10:43:55 +0000 (+0200) Subject: [SystemInfo] Changes to remove warning X-Git-Tag: submit/tizen_tv/20150720.124123^2^2~31^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e09a88a1de92487cecbffb0cca8acb959610d18b;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [SystemInfo] Changes to remove warning [Verification] Code compiles without error Change-Id: I809660bd2b5798cba7e0fdfa45c87bd25910ae0b Signed-off-by: Lukasz Bardeli --- diff --git a/src/systeminfo/systeminfo-utils.cpp b/src/systeminfo/systeminfo-utils.cpp index 3c3c53ed..88f74331 100644 --- a/src/systeminfo/systeminfo-utils.cpp +++ b/src/systeminfo/systeminfo-utils.cpp @@ -1140,7 +1140,6 @@ PlatformResult SystemInfoListeners::UnregisterCameraFlashListener() { if (nullptr != m_camera_flash_listener) { PlatformResult ret = PlatformResult(ErrorCode::NO_ERROR); - int value = 0; if (DEVICE_ERROR_NONE != device_remove_callback(DEVICE_CALLBACK_FLASH_BRIGHTNESS, OnBrightnessChangedCb)) { return PlatformResult(ErrorCode::UNKNOWN_ERR); @@ -1741,7 +1740,7 @@ PlatformResult SysteminfoUtils::GetPropertyValue(const std::string& property, bo return ret; } - for (int i = 0; i < property_count; i++) { + for (size_t i = 0; i < property_count; i++) { picojson::value result = picojson::value(picojson::object()); picojson::object& result_obj = result.get();