From: Bruno Haible Date: Thu, 17 Aug 2017 20:15:10 +0000 (+0200) Subject: hypot tests: Fix test failure on FreeBSD 11.0/x86. X-Git-Tag: v1.0~5989 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=5408b0e0cd0396ea49aa20907c63568ee9b38688;p=gnulib.git hypot tests: Fix test failure on FreeBSD 11.0/x86. * tests/test-hypot.h (test_function): Declare z as 'volatile'. --- diff --git a/ChangeLog b/ChangeLog index 0d43557cc8..916d63b481 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2017-08-17 Bruno Haible + + hypot tests: Fix test failure on FreeBSD 11.0/x86. + * tests/test-hypot.h (test_function): Declare z as 'volatile'. + 2017-08-17 Bruno Haible float: Fix LDBL_MIN value on FreeBSD/x86. 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;