diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-grad0.c | 2 | ||||
-rw-r--r-- | tests/test-opt.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/test-grad0.c b/tests/test-grad0.c index da4001ce..01467bc1 100644 --- a/tests/test-grad0.c +++ b/tests/test-grad0.c @@ -10,7 +10,9 @@ #pragma warning(disable: 4244 4267) // possible loss of data #endif +#if defined(__GNUC__) #pragma GCC diagnostic ignored "-Wdouble-promotion" +#endif #define MAX_NARGS 3 diff --git a/tests/test-opt.c b/tests/test-opt.c index e928a7df..5531814c 100644 --- a/tests/test-opt.c +++ b/tests/test-opt.c @@ -7,7 +7,9 @@ #define MAX_NARGS 2 +#if defined(__GNUC__) #pragma GCC diagnostic ignored "-Wdouble-promotion" +#endif // // logging |