From: kibak.yoon Date: Wed, 5 Apr 2017 01:19:13 +0000 (+0900) Subject: sensord: remove build warnings in ipc-utils X-Git-Tag: accepted/tizen/unified/20170414.164053^2~58 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F75%2F123175%2F1;p=platform%2Fcore%2Fsystem%2Fsensord.git sensord: remove build warnings in ipc-utils - warning: control reaches end of non-void function [-Wreturn-type] - warning: ignoring return value [-Wunused-result] Change-Id: Id172b9e32bfe45543b16dc9a0726bc1cc0c11441 Signed-off-by: kibak.yoon --- diff --git a/src/shared/event_loop.cpp b/src/shared/event_loop.cpp index 9bd596a..73854b5 100644 --- a/src/shared/event_loop.cpp +++ b/src/shared/event_loop.cpp @@ -230,6 +230,8 @@ bool event_loop::run(int timeout) _I("Started"); g_main_loop_run(m_mainloop); + + return true; } void event_loop::stop(void) @@ -237,8 +239,11 @@ void event_loop::stop(void) ret_if(!is_running() || m_terminating.load()); uint64_t term = 1; + ssize_t size; m_terminating.store(true); - write(m_term_fd, &term, sizeof(uint64_t)); + size = write(m_term_fd, &term, sizeof(uint64_t)); + + retm_if(size != sizeof(ssize_t), "Failed to write[%d]", m_term_fd); } void event_loop::terminate(void)