From: H.J. Lu Date: Wed, 4 Oct 2017 00:41:32 +0000 (-0700) Subject: test-math-iscanonical.cc: Replace bool with int X-Git-Tag: glibc-2.27~755 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cdd4155d6c527c00a89606385859984e35bd2910;p=thirdparty%2Fglibc.git test-math-iscanonical.cc: Replace bool with int Fix GCC 7 compilation error: test-math-iscanonical.cc: In function ‘void check_type()’: test-math-iscanonical.cc:33:11: error: use of an operand of type ‘bool’ in ‘operator++’ is deprecated [-Werror=deprecated] errors++; ^~ * math/test-math-iscanonical.cc (error): Replace bool with int. --- diff --git a/ChangeLog b/ChangeLog index a36e2f6a0df..d411313cc87 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2017-10-03 H.J. Lu + + * math/test-math-iscanonical.cc (error): Replace bool with int. + 2017-10-03 Joseph Myers * sysdeps/ieee754/dbl-64/s_modf.c: Include . diff --git a/math/test-math-iscanonical.cc b/math/test-math-iscanonical.cc index aba68acb4f8..8ced7a73b46 100644 --- a/math/test-math-iscanonical.cc +++ b/math/test-math-iscanonical.cc @@ -20,7 +20,7 @@ #include #include -static bool errors; +static int errors; template static void