Suppress warnings about double promotions

This commit is contained in:
Phil Nash 2016-06-10 19:32:33 +01:00
parent afc0b31b10
commit 36cd85acbe
2 changed files with 16 additions and 0 deletions

View File

@ -8,6 +8,15 @@
#include "catch.hpp"
#ifdef __clang__
# ifdef __ICC // icpc defines the __clang__ macro
# else // __ICC
# pragma clang diagnostic ignored "-Wdouble-promotion"
# endif
#endif
///////////////////////////////////////////////////////////////////////////////
TEST_CASE
(

View File

@ -15,6 +15,13 @@
#include <string>
#include <limits>
#ifdef __clang__
# ifdef __ICC // icpc defines the __clang__ macro
# else // __ICC
# pragma clang diagnostic ignored "-Wdouble-promotion"
# endif
#endif
struct TestData {
TestData()
: int_seven( 7 ),