aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSIGSEGV <21287366+akr2002@users.noreply.github.com>2023-07-12 19:18:43 +0530
committerGitHub <noreply@github.com>2023-07-12 19:18:43 +0530
commit2516af4cd61f509c995b4f78fdf123cba33f3509 (patch)
treede7324f01b9454fb30e4d827b8300d02fd982ed3 /tests
parentff34a7d385fc47c4d432fd8c19306d5aca814d05 (diff)
parent4e7464ef88885cb3532738b03cac890f4077fa20 (diff)
Merge branch 'ggerganov:master' into master
Diffstat (limited to 'tests')
-rw-r--r--tests/test-grad0.c2
-rw-r--r--tests/test-opt.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/test-grad0.c b/tests/test-grad0.c
index da4001c..01467bc 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 e928a7d..5531814 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