From e09a88a1de92487cecbffb0cca8acb959610d18b Mon Sep 17 00:00:00 2001 From: Lukasz Bardeli Date: Wed, 1 Jul 2015 12:43:55 +0200 Subject: [PATCH] [SystemInfo] Changes to remove warning [Verification] Code compiles without error Change-Id: I809660bd2b5798cba7e0fdfa45c87bd25910ae0b Signed-off-by: Lukasz Bardeli --- src/systeminfo/systeminfo-utils.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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(); -- 2.34.1