Skip to content

Commit 0ec7907

Browse files
authored
fix random warnings (#331)
1 parent b076861 commit 0ec7907

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/odr/internal/csv/csv_util.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ void csv::check_csv_file(std::istream &in) {
1818
auto parser = ::csv::parse(util::stream::read(in), format);
1919

2020
// this will actually check `variable_columns`
21-
for (auto &&_ : parser) {
21+
for ([[maybe_unused]] auto &&_ : parser) {
2222
}
2323

2424
if (parser.get_col_names().size() <= 1) {

src/odr/internal/json/json_util.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace odr::internal {
66

77
void json::check_json_file(std::istream &in) {
88
// TODO limit check size
9-
nlohmann::json::parse(in);
9+
(void)nlohmann::json::parse(in);
1010
// TODO check if that even works
1111
}
1212

0 commit comments

Comments
 (0)