Fix VS2015 warning issue

This commit is contained in:
Martin Hořeňovský 2019-02-20 10:14:46 +01:00
parent 269303d9d9
commit 7012a31a39
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A
1 changed files with 2 additions and 0 deletions

View File

@ -152,9 +152,11 @@ TEST_CASE("Random generator", "[generators][.][approvals]") {
SECTION("Infer int from integral arguments") {
auto val = GENERATE(take(4, random(0, 1)));
STATIC_REQUIRE(std::is_same<decltype(val), int>::value);
static_cast<void>(val); // Silence VS 2015 unused variable warning
}
SECTION("Infer double from double arguments") {
auto val = GENERATE(take(4, random(0., 1.)));
STATIC_REQUIRE(std::is_same<decltype(val), double>::value);
static_cast<void>(val); // Silence VS 2015 unused variable warning
}
}