Updated Branches: refs/heads/4.1.x a90c877e8 -> 05252cc5e
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/05252cc5 Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/05252cc5 Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/05252cc5 Branch: refs/heads/4.1.x Commit: 05252cc5ea2e26ca13cc6b876ae309f0cc85315f Parents: a90c877 Author: Leif Hedstrom <[email protected]> Authored: Sun Nov 24 13:39:49 2013 -0700 Committer: Igor GaliÄ <[email protected]> Committed: Mon Nov 25 08:49:24 2013 +0100 ---------------------------------------------------------------------- lib/ts/EventNotify.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/05252cc5/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
