[HAM] remove build warning 17/70517/1
authorHyunjin Park <hj.na.park@samsung.com>
Thu, 19 May 2016 09:14:30 +0000 (18:14 +0900)
committerHyunjin Park <hj.na.park@samsung.com>
Thu, 19 May 2016 09:16:11 +0000 (18:16 +0900)
humanactivitymonitor_manager.cc:562:9: warning: variable 'ret' set but not used [-Wunused-but-set-variable]

Change-Id: I292f3986556f95a55b33175a8fd9b9d8233befe0

src/humanactivitymonitor/humanactivitymonitor_manager.cc

index 846663b2380479d985aba14b5533950d2c21cf7a..6f145c0f262abe6deb9833fa5262bcff754dbbf3 100755 (executable)
@@ -561,7 +561,11 @@ class HumanActivityMonitorManager::Monitor::GpsMonitor : public HumanActivityMon
 
     int ret = 0;
     ret = system_info_get_platform_bool("http://tizen.org/feature/location.batch", s);
-
+    if (SYSTEM_INFO_ERROR_NONE != ret) {
+      return LogAndCreateResult(ErrorCode::UNKNOWN_ERR,
+                  "Failed to get location.batch feature",
+                  ("system_info_get_platform_bool error: %d (%s)", ret, get_error_message(ret)));
+    }
     return PlatformResult(ErrorCode::NO_ERROR);
   }