]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/27_io/basic_ostringstream/3.cc
locale_facets.tcc: Tweak to avoid warnings.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 27_io / basic_ostringstream / 3.cc
index f7e96885ea3f8b495d9a952c2d98d0ec00dace42..8593d6e6f6034ea2862efd13b91435787d815a55 100644 (file)
@@ -59,7 +59,7 @@ struct gnu_char_traits
   typedef gnu_char_type        char_type;
   typedef long                 int_type;
   typedef long                 pos_type;
-  typedef unsigned long        off_type;
+  typedef long         off_type;
   typedef long                 state_type;
   
   static void 
@@ -117,7 +117,7 @@ struct gnu_char_traits
 
 void test07()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::basic_ostringstream<gnu_char_type, gnu_char_traits> gnu_osstr;
 
   try