From c0bf667912064960df194ea94150976b34f7c267 Mon Sep 17 00:00:00 2001 From: furszy Date: Fri, 8 Sep 2023 10:04:14 -0300 Subject: index: add [nodiscard] attribute to functions writing to the db --- src/index/blockfilterindex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/index/blockfilterindex.cpp') diff --git a/src/index/blockfilterindex.cpp b/src/index/blockfilterindex.cpp index b23d66ac1d..ef3ec10506 100644 --- a/src/index/blockfilterindex.cpp +++ b/src/index/blockfilterindex.cpp @@ -260,7 +260,7 @@ bool BlockFilterIndex::CustomAppend(const interfaces::BlockInfo& block) return true; } -static bool CopyHeightIndexToHashIndex(CDBIterator& db_it, CDBBatch& batch, +[[nodiscard]] static bool CopyHeightIndexToHashIndex(CDBIterator& db_it, CDBBatch& batch, const std::string& index_name, int start_height, int stop_height) { -- cgit v1.2.3