]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc
locale_facets.tcc: Tweak to avoid warnings.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 27_io / basic_istream / extractors_arithmetic / char / 01.cc
index 9c3b3605cb893c9c5352dd88973ff396480300bb..ef4e6ada684b36a4b461057442086dad1b844650 100644 (file)
@@ -46,11 +46,10 @@ std::stringstream ss_01(str_01);
 // minimal sanity check
 bool test01() {
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // Integral Types:
   bool                         b1  = false;
-  bool                         b2  = false;
   short                s1  = 0;
   int                  i1  = 0;
   long                 l1  = 0;
@@ -117,7 +116,7 @@ bool test01() {
 
   ss_01 << po;
   ss_01 >> pi;
-  std::printf ("%x %x\n", pi, po);
+  std::printf ("%p %p\n", pi, po);
   VERIFY( po == pi );
   return test;
 }