From: Borislav Stanimirov Date: Tue, 11 Jul 2023 18:10:40 +0000 (+0300) Subject: tests : ifdef for #pragma GCC (#370) X-Git-Tag: upstream/0.0.1642~1332 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=0c55da244eac277a37be94561594aa60137f4a36;p=pkg%2Fggml%2Fsources%2Fggml tests : ifdef for #pragma GCC (#370) --- 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