summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2009-11-11 15:13:06 +0000
committerGordon Sim <gsim@apache.org>2009-11-11 15:13:06 +0000
commitfe2b5f5849574d7281c16b6ba066ced2d25184e2 (patch)
tree74d6dde87b61b3098c5264f2042ec29ed99daf10 /cpp
parentd237891b9227f9663f677c18f946843ff1c2fdcd (diff)
downloadqpid-python-fe2b5f5849574d7281c16b6ba066ced2d25184e2.tar.gz
Fix compilation error on some platforms
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@834899 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/qpid/client/amqp0_10/AddressResolution.cpp2
-rw-r--r--cpp/src/tests/MessagingSessionTests.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/qpid/client/amqp0_10/AddressResolution.cpp b/cpp/src/qpid/client/amqp0_10/AddressResolution.cpp
index 14b5448a34..fca9b61fdb 100644
--- a/cpp/src/qpid/client/amqp0_10/AddressResolution.cpp
+++ b/cpp/src/qpid/client/amqp0_10/AddressResolution.cpp
@@ -736,7 +736,7 @@ void Exchange::configure(const Address& address)
bool Node::enabled(const Variant& policy, CheckMode mode)
{
- bool result;
+ bool result = false;
switch (mode) {
case FOR_RECEIVER:
result = in(policy, RECEIVER_MODES);
diff --git a/cpp/src/tests/MessagingSessionTests.cpp b/cpp/src/tests/MessagingSessionTests.cpp
index fc39557a0e..ce29099ef9 100644
--- a/cpp/src/tests/MessagingSessionTests.cpp
+++ b/cpp/src/tests/MessagingSessionTests.cpp
@@ -611,6 +611,7 @@ struct DeletePolicyFixture : public MessagingFixture
case NEVER:
return "{delete:never}";
}
+ return "";
}
void testAll()