From 59607f5e9902b2ec51769255c974fe547416480a Mon Sep 17 00:00:00 2001 From: vitaut Date: Wed, 9 Mar 2016 07:47:08 -0800 Subject: [PATCH] Fix warnings on GCC 4.6.3 --- test/printf-test.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/test/printf-test.cc b/test/printf-test.cc index c0e3626e..a3a60276 100644 --- a/test/printf-test.cc +++ b/test/printf-test.cc @@ -337,12 +337,9 @@ void TestLength(const char *length_spec) { TestLength(length_spec, -42); TestLength(length_spec, min); TestLength(length_spec, max); - using fmt::internal::check; - fmt::LongLong long_long_min = std::numeric_limits::min(); - if (check(min >= 0) || check(static_cast(min) > long_long_min)) - TestLength(length_spec, fmt::LongLong(min) - 1); + TestLength(length_spec, fmt::LongLong(min) - 1); fmt::ULongLong long_long_max = std::numeric_limits::max(); - if (check(max < 0 || static_cast(max) < long_long_max)) + if (static_cast(max) < long_long_max) TestLength(length_spec, fmt::LongLong(max) + 1); TestLength(length_spec, std::numeric_limits::min()); TestLength(length_spec, std::numeric_limits::max());