aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/25_algorithms/min_max.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/testsuite/25_algorithms/min_max.cc')
-rw-r--r--libstdc++-v3/testsuite/25_algorithms/min_max.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/testsuite/25_algorithms/min_max.cc b/libstdc++-v3/testsuite/25_algorithms/min_max.cc
index ef8acfd249f..bd07009c015 100644
--- a/libstdc++-v3/testsuite/25_algorithms/min_max.cc
+++ b/libstdc++-v3/testsuite/25_algorithms/min_max.cc
@@ -24,7 +24,7 @@
void test01()
{
- bool test = true;
+ bool test __attribute__((unused)) = true;
const int& x = std::max(1, 2);
const int& y = std::max(4, 3);
@@ -74,7 +74,7 @@ template int A<long double>::a;
void test02()
{
- bool test = true;
+ bool test __attribute__((unused)) = true;
VERIFY( 2 == std::min(A<int>::a, 2) );
VERIFY( 3 == std::min(A<int>::a, 4) );