[SystemInfo] Changes to remove warning
authorLukasz Bardeli <l.bardeli@samsung.com>
Wed, 1 Jul 2015 10:43:55 +0000 (12:43 +0200)
committerLukasz Bardeli <l.bardeli@samsung.com>
Wed, 1 Jul 2015 10:43:55 +0000 (12:43 +0200)
[Verification] Code compiles without error

Change-Id: I809660bd2b5798cba7e0fdfa45c87bd25910ae0b
Signed-off-by: Lukasz Bardeli <l.bardeli@samsung.com>
src/systeminfo/systeminfo-utils.cpp

index 3c3c53eddd0a130ce9245313fa23a7621f1ae4f1..88f74331f12b5747442522665e349073a57436f8 100644 (file)
@@ -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<picojson::object>();