mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-17 17:55:28 +03:00
Bug fix/clang tidy warnings part2 (#296)
* core.StackAddressEscape * cplusplus.VirtualCall * clang-analyzer-deadcode.DeadStores * clang-analyzer-core.NullDereference * clang-analyzer-core.NonNullParamChecker * change to nolint --------- Co-authored-by: gtsoul-tech <gtsoulkanakis@gmail.com>
This commit is contained in:
@@ -56,7 +56,7 @@ sqlite3 *initDB(const string &filename) {
|
||||
ostringstream oss;
|
||||
oss << "Unable to open database '" << filename
|
||||
<< "': " << sqlite3_errmsg(db);
|
||||
status = sqlite3_close(db);
|
||||
status = sqlite3_close(db); //NOLINT (clang-analyzer-deadcode.DeadStores)
|
||||
assert(status == SQLITE_OK);
|
||||
throw SqlFailure(oss.str());
|
||||
}
|
||||
@@ -115,7 +115,7 @@ sqlite3 *initDB(const string &filename) {
|
||||
fail:
|
||||
ostringstream oss;
|
||||
oss << "Unable to create tables: " << sqlite3_errmsg(db);
|
||||
status = sqlite3_close(db);
|
||||
status = sqlite3_close(db); //NOLINT (clang-analyzer-deadcode.DeadStores)
|
||||
assert(status == SQLITE_OK);
|
||||
throw SqlFailure(oss.str());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user