Skip to content

Commit 5ce8ef6

Browse files
alexfhmilot-mirdita
authored andcommitted
Fix a compiler diagnostic with Clang 22
The code contains a call to std::string::size() as a statement on its own. The function doesn't have side effects, thus, the call is a no-op, which also triggers the -Wunused-result Clang diagnostic.
1 parent cf9e9f2 commit 5ce8ef6

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/util/result2flat.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ int result2flat(int argc, const char **argv, const Command &command) {
6262
for(size_t i = 0; i < DbValidator::resultDb.size(); i++){
6363
if(Parameters::isEqualDbtype(dbr_data.getDbtype(), DbValidator::resultDb[i]) ) {
6464
keyLen = (words[1] - words[0]);
65-
dbKeyBuffer.size();
6665
dbKeyBuffer.append(words[0], keyLen);
6766
const unsigned int dbKey = (unsigned int) strtoul(dbKeyBuffer.c_str(), NULL, 10);
6867
target_header_data = targetdb_header.getDataByDBKey(dbKey, 0);

0 commit comments

Comments
 (0)