summaryrefslogtreecommitdiff
path: root/lib/cbrt.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2020-08-15 10:27:30 +0200
committerBruno Haible <bruno@clisp.org>2020-08-15 10:28:36 +0200
commite6edf5094bd304779b3dc6a7948c56e002c4286c (patch)
tree259d4f673a3369892c8f170d5a5e17172f61ba03 /lib/cbrt.c
parent81c4ab90dea6cabf43e48d4fa6987a091884b062 (diff)
downloadgnulib-e6edf5094bd304779b3dc6a7948c56e002c4286c.tar.gz
Fix "unknown pragma ignored" warnings with clang on native Windows.
* lib/cbrt.c: Don't use '#pragma fenv_access (off)' with clang. * lib/cbrtf.c: Likewise. * lib/ceil.c: Likewise. * lib/floor.c: Likewise. * lib/fma.c: Likewise. * lib/fmod.c: Likewise. * lib/rint.c: Likewise. * lib/round.c: Likewise. * lib/trunc.c: Likewise. * tests/test-ceil2.c: Likewise. * tests/test-ceilf2.c: Likewise. * tests/test-floor2.c: Likewise. * tests/test-floorf2.c: Likewise. * tests/test-trunc2.c: Likewise. * tests/test-truncf2.c: Likewise. * m4/round.m4 (gl_FUNC_ROUND): Likewise. * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
Diffstat (limited to 'lib/cbrt.c')
-rw-r--r--lib/cbrt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cbrt.c b/lib/cbrt.c
index 812af61316..c6834ed6e4 100644
--- a/lib/cbrt.c
+++ b/lib/cbrt.c
@@ -24,7 +24,7 @@
/* MSVC with option -fp:strict refuses to compile constant initializers that
contain floating-point operations. Pacify this compiler. */
-#ifdef _MSC_VER
+#if defined _MSC_VER && !defined __clang__
# pragma fenv_access (off)
#endif