From dc40c3bd5df878ec2c1aa1e5a87ed2cc88ed6491 Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Wed, 3 Sep 2008 20:46:08 +0000 Subject: 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 --- cpp/src/qpid/broker/AclModule.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cpp') 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 propSet; -- cgit v1.2.1