summaryrefslogtreecommitdiff
path: root/tests/test-hypot.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2017-08-17 22:15:10 +0200
committerBruno Haible <bruno@clisp.org>2017-08-17 22:15:10 +0200
commit5408b0e0cd0396ea49aa20907c63568ee9b38688 (patch)
tree14dccd444e019b69cf585146d7316528b3c65bb8 /tests/test-hypot.h
parent02a6dd29a629e83e768aea92993027049b2299e0 (diff)
downloadgnulib-5408b0e0cd0396ea49aa20907c63568ee9b38688.tar.gz
hypot tests: Fix test failure on FreeBSD 11.0/x86.
* tests/test-hypot.h (test_function): Declare z as 'volatile'.
Diffstat (limited to 'tests/test-hypot.h')
-rw-r--r--tests/test-hypot.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-hypot.h b/tests/test-hypot.h
index cfd0aecc7d..1ee790fcfc 100644
--- a/tests/test-hypot.h
+++ b/tests/test-hypot.h
@@ -32,7 +32,7 @@ test_function (void)
{
volatile DOUBLE x;
volatile DOUBLE y;
- DOUBLE z;
+ volatile DOUBLE z;
/* Overflow. */
x = MAX;