From: Matt Benjamin Date: Mon, 5 Mar 2018 22:00:44 +0000 (-0500) Subject: clang: define default value for LoglevelV only once (3 templates) X-Git-Tag: v13.0.2~55^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=63fedc61ddaa7d6938f393a439734c49816512b0;p=ceph.git clang: define default value for LoglevelV only once (3 templates) I believe, after some searching, that this is a straightforward application of rule 14.1.12, C++14. Fixes compilation w/clang-5. Signed-off-by: Matt Benjamin --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 71ad7267e644..76f07169ec14 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -9898,7 +9898,7 @@ int BlueStore::_touch(TransContext *txc, return r; } -template +template void BlueStore::_dump_onode(const OnodeRef& o) { if (!cct->_conf->subsys.should_gather()) @@ -9922,7 +9922,7 @@ void BlueStore::_dump_onode(const OnodeRef& o) _dump_extent_map(o->extent_map); } -template +template void BlueStore::_dump_extent_map(ExtentMap &em) { uint64_t pos = 0; @@ -9954,7 +9954,7 @@ void BlueStore::_dump_extent_map(ExtentMap &em) } } -template +template void BlueStore::_dump_transaction(Transaction *t) { dout(LogLevelV) << __func__ << " transaction dump:\n";