]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/23_containers/list/cons/8.cc
locale_facets.tcc: Tweak to avoid warnings.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 23_containers / list / cons / 8.cc
index 17eb0c48ade8eba4e572dcb5f9b4c1028d491ee7..66b59a00d03cc694494a4fad12a34ce88b4bf9a2 100644 (file)
@@ -21,7 +21,7 @@
 #include <list>
 #include <testsuite_hooks.h>
 
-bool test = true;
+bool test __attribute__((unused)) = true;
 
 
 // A nontrivial type.
@@ -42,9 +42,9 @@ struct C {
 void
 test06D()
 {
-  const int LIST_SIZE = 5;
+  const std::size_t LIST_SIZE = 5;
   const int INIT_VALUE = 7;
-  int count = 0;
+  std::size_t count = 0;
   std::list<C> list0604;
   VERIFY(list0604.size() == 0);