Browse Source

[2212-2] added an unnecessary return to silence some compilers

JINMEI Tatuya 12 years ago
parent
commit
aade8ac800
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/bin/auth/datasrc_clients_mgr.h

+ 4 - 0
src/bin/auth/datasrc_clients_mgr.h

@@ -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