]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc
locale_facets.tcc: Tweak to avoid warnings.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 27_io / basic_filebuf / pbackfail / char / 9761.cc
index 07e1ddad810c8c78efe12b67de47c98328bf34c9..6bf975193015e8b739184289d04b511c85402ed3 100644 (file)
@@ -29,7 +29,7 @@ const char name_01[] = "filebuf_virtuals-1.txt"; // file with data in it
 void test01()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   filebuf fbuf;
   filebuf::int_type r1, r2;
@@ -48,7 +48,7 @@ void test01()
   VERIFY( r2 == filebuf::traits_type::eof() );
 }
 
-main() 
+int main() 
 {
   test01();
   return 0;