|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r50946 - trunk/boost/asio/detail
From: chris_at_[hidden]
Date: 2009-02-01 07:28:12
Author: chris_kohlhoff
Date: 2009-02-01 07:28:12 EST (Sun, 01 Feb 2009)
New Revision: 50946
URL: http://svn.boost.org/trac/boost/changeset/50946
Log:
Suppress unused result warning. Fixes #2534.
Text files modified:
trunk/boost/asio/detail/eventfd_select_interrupter.hpp | 3 ++-
trunk/boost/asio/detail/pipe_select_interrupter.hpp | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
Modified: trunk/boost/asio/detail/eventfd_select_interrupter.hpp
==============================================================================
--- trunk/boost/asio/detail/eventfd_select_interrupter.hpp (original)
+++ trunk/boost/asio/detail/eventfd_select_interrupter.hpp 2009-02-01 07:28:12 EST (Sun, 01 Feb 2009)
@@ -86,7 +86,8 @@
void interrupt()
{
uint64_t counter(1UL);
- ::write(read_descriptor_, &counter, sizeof(uint64_t));
+ int result = ::write(read_descriptor_, &counter, sizeof(uint64_t));
+ (void)result;
}
// Reset the select interrupt. Returns true if the call was interrupted.
Modified: trunk/boost/asio/detail/pipe_select_interrupter.hpp
==============================================================================
--- trunk/boost/asio/detail/pipe_select_interrupter.hpp (original)
+++ trunk/boost/asio/detail/pipe_select_interrupter.hpp 2009-02-01 07:28:12 EST (Sun, 01 Feb 2009)
@@ -72,7 +72,8 @@
void interrupt()
{
char byte = 0;
- ::write(write_descriptor_, &byte, 1);
+ int result = ::write(write_descriptor_, &byte, 1);
+ (void)result;
}
// Reset the select interrupt. Returns true if the call was interrupted.
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk