about summary refs log tree commit diff
diff options
context:
space:
mode:
authorStan Shebs <stanshebs@google.com>2018-01-23 08:26:39 -0800
committerStan Shebs <stanshebs@google.com>2019-04-29 12:00:35 -0700
commite57ac229dc2489a0390fdc3bee4c45f8cf709941 (patch)
tree43a739cd2f268815ae44f528bef173d869120cec
parent367c8c0e97cc7378aaaa484fc9187bcf1e8d5c85 (diff)
downloadglibc-e57ac229dc2489a0390fdc3bee4c45f8cf709941.tar.gz
glibc-e57ac229dc2489a0390fdc3bee4c45f8cf709941.tar.xz
glibc-e57ac229dc2489a0390fdc3bee4c45f8cf709941.zip
Reduce an error to warning if clang
-rw-r--r--math/test-fe-snans-always-signal.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/math/test-fe-snans-always-signal.c b/math/test-fe-snans-always-signal.c
index 5e5352f4da..8392a9255f 100644
--- a/math/test-fe-snans-always-signal.c
+++ b/math/test-fe-snans-always-signal.c
@@ -20,7 +20,11 @@
 
 #ifdef FE_INVALID
 # ifndef FE_SNANS_ALWAYS_SIGNAL
+#  ifdef __clang__
+#  warning "FE_SNANS_ALWAYS_SIGNAL not defined, fix clang please"
+#  else
 #  error "FE_SNANS_ALWAYS_SIGNAL not defined"
+#  endif
 # endif
 #else
 # ifdef FE_SNANS_ALWAYS_SIGNAL