Issue #185 - remove approx() and use #pragma to kill warnings

This commit is contained in:
Trevor Welsby committed 2016-01-23 17:45:30 +10:00
1 parent 9de14a4861
commit 3a1403409f
3 files changed
+35 -24

No files matched your search

+5
View File
@@ -25,6 +25,11 @@
#include "json.hpp"
using nlohmann::json;
// disable float-equal warnings on GCC/clang
#if defined(__clang__) || defined(__GNUC__) || defined(__GNUG__)
#pragma GCC diagnostic ignored "-Wfloat-equal"
#endif
TEST_CASE("constructors")
{
SECTION("create an empty value with a given type")