From 6a5fc0fb8ba2c5d6d8773a3e49fc59f6316e49a0 Mon Sep 17 00:00:00 2001 From: "Stephen D. Huston" Date: Mon, 27 Oct 2008 23:52:53 +0000 Subject: Fix minor compile warnings noticed on Windows git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@708387 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/qpid/client/Connection.h | 2 +- qpid/cpp/src/qpid/client/ConnectionHandler.cpp | 5 ++--- qpid/cpp/src/qpid/client/FailoverConnection.h | 2 +- qpid/cpp/src/qpid/client/FailoverListener.cpp | 2 +- qpid/cpp/src/qpid/client/Results.cpp | 2 +- 5 files changed, 6 insertions(+), 7 deletions(-) (limited to 'qpid/cpp/src') diff --git a/qpid/cpp/src/qpid/client/Connection.h b/qpid/cpp/src/qpid/client/Connection.h index 999a09490f..6d33f0af22 100644 --- a/qpid/cpp/src/qpid/client/Connection.h +++ b/qpid/cpp/src/qpid/client/Connection.h @@ -27,7 +27,7 @@ namespace qpid { -class Url; +struct Url; namespace client { diff --git a/qpid/cpp/src/qpid/client/ConnectionHandler.cpp b/qpid/cpp/src/qpid/client/ConnectionHandler.cpp index 34bf8708cb..c957ac0fc5 100644 --- a/qpid/cpp/src/qpid/client/ConnectionHandler.cpp +++ b/qpid/cpp/src/qpid/client/ConnectionHandler.cpp @@ -30,7 +30,6 @@ using namespace qpid::client; using namespace qpid::framing; -using namespace boost; namespace { const std::string OK("OK"); @@ -43,7 +42,7 @@ const std::string INVALID_STATE_OPEN_OK("open-ok received in invalid state"); const std::string INVALID_STATE_CLOSE_OK("close-ok received in invalid state"); } -ConnectionHandler::ConnectionHandler(const ConnectionSettings& s, framing::ProtocolVersion& v) +ConnectionHandler::ConnectionHandler(const ConnectionSettings& s, ProtocolVersion& v) : StateManager(NOT_STARTED), ConnectionSettings(s), outHandler(*this), proxy(outHandler), errorCode(200), version(v) { insist = true; @@ -158,7 +157,7 @@ void ConnectionHandler::tune(uint16_t maxChannelsProposed, uint16_t maxFrameSize proxy.open(virtualhost, capabilities, insist); } -void ConnectionHandler::openOk ( const framing::Array& knownBrokers ) +void ConnectionHandler::openOk ( const Array& knownBrokers ) { checkState(OPENING, INVALID_STATE_OPEN_OK); knownBrokersUrls.clear(); diff --git a/qpid/cpp/src/qpid/client/FailoverConnection.h b/qpid/cpp/src/qpid/client/FailoverConnection.h index a84f0c2189..4a8780afa2 100644 --- a/qpid/cpp/src/qpid/client/FailoverConnection.h +++ b/qpid/cpp/src/qpid/client/FailoverConnection.h @@ -35,7 +35,7 @@ namespace qpid { namespace client { -class ConnectionSettings; +struct ConnectionSettings; class FailoverConnection diff --git a/qpid/cpp/src/qpid/client/FailoverListener.cpp b/qpid/cpp/src/qpid/client/FailoverListener.cpp index 8311e713a4..772d9a4197 100644 --- a/qpid/cpp/src/qpid/client/FailoverListener.cpp +++ b/qpid/cpp/src/qpid/client/FailoverListener.cpp @@ -66,7 +66,7 @@ FailoverListener::FailoverListener(const boost::shared_ptr& c, c FailoverListener::~FailoverListener() { try { stop(); } - catch (const std::exception& e) {} + catch (const std::exception& /*e*/) {} } void FailoverListener::stop() { diff --git a/qpid/cpp/src/qpid/client/Results.cpp b/qpid/cpp/src/qpid/client/Results.cpp index 7a2d0b6f71..1b98d6c98a 100644 --- a/qpid/cpp/src/qpid/client/Results.cpp +++ b/qpid/cpp/src/qpid/client/Results.cpp @@ -32,7 +32,7 @@ namespace client { Results::Results() {} Results::~Results() { - try { close(); } catch (const std::exception& e) { assert(0); } + try { close(); } catch (const std::exception& /*e*/) { assert(0); } } void Results::close() -- cgit v1.2.1