Fix some warnings reported by msvc
1) warning C4390: ';': empty controlled statement found; is this the intent? 2) warning C4305: 'argument': truncation from 'double' to 'float'pull/681/head
parent
04c187d776
commit
1ca9db3212
|
@ -28,7 +28,7 @@
|
|||
#define LOG_LEVEL_DEBUG 4
|
||||
|
||||
#if !defined(_DEBUG) && !defined(DEBUG)
|
||||
#define DPRINTF(level, format, ...)
|
||||
#define DPRINTF(level, format, ...) static_cast<void>(level);
|
||||
#else
|
||||
extern int debugVerbosity;
|
||||
template <typename... T>
|
||||
|
|
|
@ -37,9 +37,9 @@ TEST_CASE("AssociativeArray", "[AssociativeArray]")
|
|||
|
||||
Color c;
|
||||
h.getColor("color", c);
|
||||
REQUIRE(c.red() == Approx(C(.23)));
|
||||
REQUIRE(c.green() == Approx(C(.34)));
|
||||
REQUIRE(c.blue() == Approx(C(.45)));
|
||||
REQUIRE(c.red() == Approx(C(.23f)));
|
||||
REQUIRE(c.green() == Approx(C(.34f)));
|
||||
REQUIRE(c.blue() == Approx(C(.45f)));
|
||||
REQUIRE(c.alpha() == Approx(1.0));
|
||||
}
|
||||
|
||||
|
@ -66,10 +66,10 @@ TEST_CASE("AssociativeArray", "[AssociativeArray]")
|
|||
|
||||
Color c;
|
||||
h.getColor("color", c);
|
||||
REQUIRE(c.red() == Approx(C(.23)));
|
||||
REQUIRE(c.green() == Approx(C(.34)));
|
||||
REQUIRE(c.blue() == Approx(C(.45)));
|
||||
REQUIRE(c.alpha() == Approx(C(.56)));
|
||||
REQUIRE(c.red() == Approx(C(.23f)));
|
||||
REQUIRE(c.green() == Approx(C(.34f)));
|
||||
REQUIRE(c.blue() == Approx(C(.45f)));
|
||||
REQUIRE(c.alpha() == Approx(C(.56f)));
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue