From 5171c04857af6b256619004e9219a0660f89ae4d 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@691765 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/qpid/broker/AclModule.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'qpid/cpp/src') diff --git a/qpid/cpp/src/qpid/broker/AclModule.h b/qpid/cpp/src/qpid/broker/AclModule.h index 36a3f0baab..851e43c3f4 100644 --- a/qpid/cpp/src/qpid/broker/AclModule.h +++ b/qpid/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