summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2008-09-03 20:46:08 +0000
committerTed Ross <tross@apache.org>2008-09-03 20:46:08 +0000
commitdc40c3bd5df878ec2c1aa1e5a87ed2cc88ed6491 (patch)
tree7b7661eaf88d653907b98ea144bc319d98060a12 /cpp
parent7fbab630a81333385b3bc48c0b20f3e2c06a74b1 (diff)
downloadqpid-python-dc40c3bd5df878ec2c1aa1e5a87ed2cc88ed6491.tar.gz
Added default return values to satisfy a pedantic compiler (Fedora 9)
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@691765 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/qpid/broker/AclModule.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/src/qpid/broker/AclModule.h b/cpp/src/qpid/broker/AclModule.h
index 36a3f0baab..851e43c3f4 100644
--- a/cpp/src/qpid/broker/AclModule.h
+++ b/cpp/src/qpid/broker/AclModule.h
@@ -89,6 +89,7 @@ class AclHelper {
case METHOD: return "method";
default: assert(false); // should never get here
}
+ return "";
}
static inline Action getAction(const std::string& str) {
if (str.compare("consume") == 0) return CONSUME;
@@ -115,6 +116,7 @@ class AclHelper {
case UPDATE: return "update";
default: assert(false); // should never get here
}
+ return "";
}
static inline Property getProperty(const std::string& str) {
if (str.compare("name") == 0) return NAME;
@@ -147,6 +149,7 @@ class AclHelper {
case SCHEMACLASS: return "schemaclass";
default: assert(false); // should never get here
}
+ return "";
}
static inline AclResult getAclResult(const std::string& str) {
if (str.compare("allow") == 0) return ALLOW;
@@ -163,6 +166,7 @@ class AclHelper {
case DENYLOG: return "deny-log";
default: assert(false); // should never get here
}
+ return "";
}
typedef std::set<Property> propSet;