aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/23_containers/list/operators/1.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/testsuite/23_containers/list/operators/1.cc')
-rw-r--r--libstdc++-v3/testsuite/23_containers/list/operators/1.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/libstdc++-v3/testsuite/23_containers/list/operators/1.cc b/libstdc++-v3/testsuite/23_containers/list/operators/1.cc
index a695b28f8bc..663ff1c81c9 100644
--- a/libstdc++-v3/testsuite/23_containers/list/operators/1.cc
+++ b/libstdc++-v3/testsuite/23_containers/list/operators/1.cc
@@ -21,7 +21,7 @@
#include <list>
#include <testsuite_hooks.h>
-bool test = true;
+bool test __attribute__((unused)) = true;
// splice(p, x) + remove + reverse
void
@@ -30,8 +30,8 @@ test01()
const int K = 417;
const int A[] = {1, 2, 3, 4, 5};
const int B[] = {K, K, K, K, K};
- const int N = sizeof(A) / sizeof(int);
- const int M = sizeof(B) / sizeof(int);
+ const std::size_t N = sizeof(A) / sizeof(int);
+ const std::size_t M = sizeof(B) / sizeof(int);
std::list<int> list0101(A, A + N);
std::list<int> list0102(B, B + M);
@@ -66,7 +66,7 @@ test01()
VERIFY(p == list0101.end());
}
-main(int argc, char* argv[])
+int main(void)
{
test01();
return 0;