From 2ef37dfce646f8607b923efb106eba5bd646b653 Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Tue, 22 Nov 2011 21:32:48 +0000 Subject: NO-JIRA - Fixed the handling of functions with ignored return values. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1205183 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/Daemon.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'cpp/src/qpid/broker/Daemon.cpp') diff --git a/cpp/src/qpid/broker/Daemon.cpp b/cpp/src/qpid/broker/Daemon.cpp index c36538beb7..281345bc95 100644 --- a/cpp/src/qpid/broker/Daemon.cpp +++ b/cpp/src/qpid/broker/Daemon.cpp @@ -93,13 +93,13 @@ void Daemon::fork() catch (const exception& e) { QPID_LOG(critical, "Unexpected error: " << e.what()); uint16_t port = 0; - (void) write(pipeFds[1], &port, sizeof(uint16_t)); + if (write(pipeFds[1], &port, sizeof(uint16_t))) {}; std::string pipeFailureMessage = e.what(); - (void) write ( pipeFds[1], - pipeFailureMessage.c_str(), - strlen(pipeFailureMessage.c_str()) - ); + if (write(pipeFds[1], + pipeFailureMessage.c_str(), + strlen(pipeFailureMessage.c_str()) + )) {}; } } else { // Parent -- cgit v1.2.1