test-math-iscanonical.cc: Replace bool with int
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 4 Oct 2017 00:41:32 +0000 (17:41 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 4 Oct 2017 00:41:47 +0000 (17:41 -0700)
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.

ChangeLog
math/test-math-iscanonical.cc

index a36e2f6..d411313 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * math/test-math-iscanonical.cc (error): Replace bool with int.
+
 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
 
        * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
index aba68ac..8ced7a7 100644 (file)
@@ -20,7 +20,7 @@
 #include <math.h>
 #include <stdio.h>
 
-static bool errors;
+static int errors;
 
 template <class T>
 static void