mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-17 11:12:25 +01:00
Suppress warnings about double promotions
This commit is contained in:
parent
afc0b31b10
commit
36cd85acbe
@ -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
|
||||
(
|
||||
|
@ -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 ),
|
||||
|
Loading…
Reference in New Issue
Block a user