]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc
locale_facets.tcc: Tweak to avoid warnings.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 21_strings / basic_string / inserters_extractors / wchar_t / 5.cc
index 6d5c69cc1a34de5a88b9cd11d4a360b71d15a243..9a88091fd8f8bde0e5dd57e6c3d03563c4d3566f 100644 (file)
@@ -32,9 +32,9 @@
 // testing basic_filebuf::xsputn via stress testing with large strings
 // based on a bug report libstdc++ 9
 // mode == out
-void test05(int size)
+void test05(std::size_t size)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char filename[] = "inserters_extractors-1.txt";
   const wchar_t fillc = L'f';
   std::wofstream ofs(filename);
@@ -60,7 +60,7 @@ void test05(int size)
 
   // sanity check on the written file
   std::wifstream ifs(filename);
-  int count = 0;
+  std::size_t count = 0;
   wchar_t c;
   while (count <= (2 * size) + 4)
     {