]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2212-2] added an unnecessary return to silence some compilers
authorJINMEI Tatuya <jinmei@isc.org>
Fri, 26 Oct 2012 16:12:29 +0000 (09:12 -0700)
committerJINMEI Tatuya <jinmei@isc.org>
Fri, 26 Oct 2012 16:12:29 +0000 (09:12 -0700)
src/bin/auth/datasrc_clients_mgr.h

index 0628657a22af17f1122f63be429a6b5e047fc495..aaaf89603be65e32dee3f9a9c7b35620d421aa06 100644 (file)
@@ -561,6 +561,10 @@ DataSrcClientsBuilderBase<MutexType, CondVarType>::getZoneWriter(
                   << "/" << rrclass << ": internal failure, in-memory cache "
                   "is somehow disabled");
     }
+
+    // all cases above should either return or throw, but some compilers
+    // still need a return statement
+    return (boost::shared_ptr<datasrc::memory::ZoneWriter>());
 }
 } // namespace datasrc_clientmgr_internal