Skip to content

Commit 0cd2f45

Browse files
committed
Address cppcheck suppressions in lmdb
1 parent 94b68b2 commit 0cd2f45

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

src/collection/backend/lmdb.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ MDB_dbi* MDBEnvProvider::GetDBI() {
659659
return &m_dbi;
660660
}
661661

662-
bool MDBEnvProvider::isValid() {
662+
bool MDBEnvProvider::isValid() const {
663663
return valid;
664664
}
665665

src/collection/backend/lmdb.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class MDBEnvProvider {
8383
}
8484
MDB_env* GetEnv();
8585
MDB_dbi* GetDBI();
86-
bool isValid();
86+
bool isValid() const;
8787

8888
~MDBEnvProvider();
8989
private:

test/cppcheck_suppressions.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@ unreadVariable:src/rule_with_operator.cc:219
5959
uninitvar:src/operators/verify_cpf.cc:77
6060
uninitvar:src/operators/verify_svnr.cc:67
6161

62-
functionConst:src/collection/backend/lmdb.h:86
63-
unusedLabel:src/collection/backend/lmdb.cc:297
64-
6562
variableScope:src/operators/rx.cc
6663
variableScope:src/operators/rx_global.cc
6764

0 commit comments

Comments
 (0)