Skip to content

Commit

Permalink
fix: nodiscard (silence warnings)
Browse files Browse the repository at this point in the history
Refs: #390
  • Loading branch information
pflanze committed Apr 22, 2024
1 parent dbcaeb0 commit 69421c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions include/silo/query_engine/actions/fasta.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ class Fasta : public Action {

std::vector<std::string> sequence_names;

[[nodiscard]] void validateOrderByFields(const Database& database) const override;
void validateOrderByFields(const Database& database) const override;

QueryResult execute(const Database& database, std::vector<OperatorResult> bitmap_filter)
const override;
[[nodiscard]] QueryResult execute(
const Database& database,
std::vector<OperatorResult> bitmap_filter
) const override;

void addSequencesToResultsForPartition(
QueryResult& results,
Expand Down
2 changes: 1 addition & 1 deletion include/silo/query_engine/operator_result.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class OperatorResult {
roaring::Roaring* operator->();
const roaring::Roaring* operator->() const;

bool isMutable() const;
[[nodiscard]] bool isMutable() const;
};

} // namespace silo::query_engine

0 comments on commit 69421c1

Please sign in to comment.