Skip to content

Commit

Permalink
fix random warnings (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
andiwand authored Nov 25, 2023
1 parent b076861 commit 0ec7907
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/odr/internal/csv/csv_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ void csv::check_csv_file(std::istream &in) {
auto parser = ::csv::parse(util::stream::read(in), format);

// this will actually check `variable_columns`
for (auto &&_ : parser) {
for ([[maybe_unused]] auto &&_ : parser) {
}

if (parser.get_col_names().size() <= 1) {
Expand Down
2 changes: 1 addition & 1 deletion src/odr/internal/json/json_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace odr::internal {

void json::check_json_file(std::istream &in) {
// TODO limit check size
nlohmann::json::parse(in);
(void)nlohmann::json::parse(in);
// TODO check if that even works
}

Expand Down

0 comments on commit 0ec7907

Please sign in to comment.