]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: fix clang error 20637/head
authorWillem Jan Withagen <wjw@digiware.nl>
Wed, 28 Feb 2018 10:00:54 +0000 (11:00 +0100)
committerWillem Jan Withagen <wjw@digiware.nl>
Thu, 1 Mar 2018 09:11:30 +0000 (10:11 +0100)
The specific specialisations in both .h and .cc does not really fly
with Clang

/home/jenkins/workspace/ceph-master/src/mon/MDSMonitor.cc:79:22: error: template parameter redefines default argument
template <int dblV = 7>
                     ^
/home/jenkins/workspace/ceph-master/src/mon/MDSMonitor.h:76:23: note: previous default template argument defined here
  template<int dblV = 7>
                      ^
1 error generated.

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/mon/MDSMonitor.cc

index 3a52150b3e881ecc0326de72a9bf0f5f3e28de34..387f4706cd4ae3bb6357800adedff8c3f0097ec3 100644 (file)
@@ -76,7 +76,7 @@ template<> bool cmd_getval(CephContext *cct, const cmdmap_t& cmdmap,
 
 // my methods
 
-template <int dblV = 7>
+template <int dblV>
 void MDSMonitor::print_map(FSMap &m)
 {
   dout(dblV) << "print_map\n";