aboutsummaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-10-03 17:41:32 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-10-03 17:41:47 -0700
commitcdd4155d6c527c00a89606385859984e35bd2910 (patch)
tree62bb427dd22c415e623b6030975e578468937789 /math
parentd8f619b393a230497d201398e184e3b384a263d3 (diff)
downloadglibc-cdd4155d6c527c00a89606385859984e35bd2910.tar
glibc-cdd4155d6c527c00a89606385859984e35bd2910.tar.gz
glibc-cdd4155d6c527c00a89606385859984e35bd2910.tar.bz2
glibc-cdd4155d6c527c00a89606385859984e35bd2910.zip
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.
Diffstat (limited to 'math')
-rw-r--r--math/test-math-iscanonical.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/math/test-math-iscanonical.cc b/math/test-math-iscanonical.cc
index aba68acb4f..8ced7a73b4 100644
--- a/math/test-math-iscanonical.cc
+++ b/math/test-math-iscanonical.cc
@@ -20,7 +20,7 @@
#include <math.h>
#include <stdio.h>
-static bool errors;
+static int errors;
template <class T>
static void