Skip to content

Commit

Permalink
Address cppcheck suppressions in lmdb
Browse files Browse the repository at this point in the history
  • Loading branch information
eduar-hte committed Apr 28, 2024
1 parent 147a62e commit 68f704f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/collection/backend/lmdb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ MDB_dbi* MDBEnvProvider::GetDBI() {
return &m_dbi;
}

bool MDBEnvProvider::isValid() {
bool MDBEnvProvider::isValid() const {
return valid;
}

Expand Down
2 changes: 1 addition & 1 deletion src/collection/backend/lmdb.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class MDBEnvProvider {
}
MDB_env* GetEnv();
MDB_dbi* GetDBI();
bool isValid();
bool isValid() const;

~MDBEnvProvider();
private:
Expand Down
3 changes: 0 additions & 3 deletions test/cppcheck_suppressions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ unreadVariable:src/rule_with_operator.cc:219
uninitvar:src/operators/verify_cpf.cc:77
uninitvar:src/operators/verify_svnr.cc:67

functionConst:src/collection/backend/lmdb.h:86
unusedLabel:src/collection/backend/lmdb.cc:297

variableScope:src/operators/rx.cc
variableScope:src/operators/rx_global.cc

Expand Down

0 comments on commit 68f704f

Please sign in to comment.