Updated Branches: refs/heads/master cc6f863ce -> 7ce6c9d1f
Fix a compiler on new EventNofity code, detected with -Werror Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/7ce6c9d1 Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/7ce6c9d1 Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/7ce6c9d1 Branch: refs/heads/master Commit: 7ce6c9d1f42a594041f50b77af64dcb29b7c21ef Parents: cc6f863 Author: Leif Hedstrom <[email protected]> Authored: Sun Nov 24 13:39:49 2013 -0700 Committer: Leif Hedstrom <[email protected]> Committed: Sun Nov 24 13:39:49 2013 -0700 ---------------------------------------------------------------------- lib/ts/EventNotify.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/7ce6c9d1/lib/ts/EventNotify.cc ---------------------------------------------------------------------- diff --git a/lib/ts/EventNotify.cc b/lib/ts/EventNotify.cc index 9ee0592..c986146 100644 --- a/lib/ts/EventNotify.cc +++ b/lib/ts/EventNotify.cc @@ -29,6 +29,7 @@ #include "EventNotify.h" #include "ink_hrtime.h" +#include "ink_defs.h" #ifdef HAVE_EVENTFD #include <sys/eventfd.h> @@ -76,7 +77,7 @@ EventNotify::signal(void) // to exceed the maximum, write() will fail with the errno EAGAIN, // which is acceptable as the receiver will be notified eventually. // - write(m_event_fd, &value, sizeof(uint64_t)); + ATS_UNUSED_RETURN(write(m_event_fd, &value, sizeof(uint64_t))); #else ink_cond_signal(&m_cond); #endif
