]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/27_io/basic_filebuf/setbuf/char/3.cc
locale_facets.tcc: Tweak to avoid warnings.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 27_io / basic_filebuf / setbuf / char / 3.cc
index f7a65870df4bfc66c0d17f8c5addb831d5790f63..b5512d765347ecd79783f362b72a4432bd095de0 100644 (file)
@@ -27,7 +27,7 @@ void test02()
 {
   using namespace std;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   char buf[512];
   const char* strlit = "how to tell a story and other essays: mark twain";
   const size_t strlitsize = std::strlen(strlit);
@@ -41,7 +41,7 @@ void test02()
   VERIFY( std::strncmp(strlit, buf, strlitsize) == 0 );
 }
 
-main() 
+int main() 
 {
   test02();
   return 0;