Skip to content

Commit 8efccad

Browse files
committed
[dataframe] suppress windows warnings in dataframe_hist.cxx
Windows complain about unreferenced local variable
1 parent 84f23f0 commit 8efccad

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

tree/dataframe/test/dataframe_hist.cxx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ TEST_P(RDFHist, InvalidNumberOfArguments)
265265
// Cannot use EXPECT_THROW because of template arguments...
266266
dfX.Hist</*BinContentType=*/double, double, double>({axis}, {"x", "x"});
267267
FAIL() << "expected std::invalid_argument";
268-
} catch (const std::invalid_argument &e) {
268+
} catch (const std::invalid_argument &) {
269269
// expected
270270
}
271271

@@ -274,7 +274,7 @@ TEST_P(RDFHist, InvalidNumberOfArguments)
274274
// Cannot use EXPECT_THROW because of template arguments...
275275
dfX.Hist<double, double>(hist, {"x", "x"});
276276
FAIL() << "expected std::invalid_argument";
277-
} catch (const std::invalid_argument &e) {
277+
} catch (const std::invalid_argument &) {
278278
// expected
279279
}
280280

@@ -283,7 +283,7 @@ TEST_P(RDFHist, InvalidNumberOfArguments)
283283
// Cannot use EXPECT_THROW because of template arguments...
284284
dfX.Hist<double, double>(engine, {"x", "x"});
285285
FAIL() << "expected std::invalid_argument";
286-
} catch (const std::invalid_argument &e) {
286+
} catch (const std::invalid_argument &) {
287287
// expected
288288
}
289289
}
@@ -417,7 +417,7 @@ TEST_P(RDFHist, WeightInvalidNumberOfArguments)
417417
// Cannot use EXPECT_THROW because of template arguments...
418418
dfXW.Hist</*BinContentType=*/double, double, double, double>({axis}, {"x", "x"}, "w");
419419
FAIL() << "expected std::invalid_argument";
420-
} catch (const std::invalid_argument &e) {
420+
} catch (const std::invalid_argument &) {
421421
// expected
422422
}
423423

@@ -426,7 +426,7 @@ TEST_P(RDFHist, WeightInvalidNumberOfArguments)
426426
// Cannot use EXPECT_THROW because of template arguments...
427427
dfXW.Hist<double, double, double>(hist, {"x", "x"}, "w");
428428
FAIL() << "expected std::invalid_argument";
429-
} catch (const std::invalid_argument &e) {
429+
} catch (const std::invalid_argument &) {
430430
// expected
431431
}
432432

@@ -435,7 +435,7 @@ TEST_P(RDFHist, WeightInvalidNumberOfArguments)
435435
// Cannot use EXPECT_THROW because of template arguments...
436436
dfXW.Hist<double, double, double>(engine, {"x", "x"}, "w");
437437
FAIL() << "expected std::invalid_argument";
438-
} catch (const std::invalid_argument &e) {
438+
} catch (const std::invalid_argument &) {
439439
// expected
440440
}
441441
}

0 commit comments

Comments
 (0)