]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/22_locale/num_put/put/char/4.cc
locale_facets.tcc: Tweak to avoid warnings.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 22_locale / num_put / put / char / 4.cc
index 7ce358311fef6ee8f8508189d1ea26e2363fcd70..e7b139b0270fe197c95faa01c963684bba9a0f85 100644 (file)
 void test04()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // Check num_put works with other iterators besides streambuf
   // output iterators. (As long as output_iterator requirements are met.)
   typedef string::iterator iter_type;
   typedef char_traits<char> traits;
   typedef num_put<char, iter_type> num_put_type;
-  const ios_base::iostate goodbit = ios_base::goodbit;
-  const ios_base::iostate eofbit = ios_base::eofbit;
   const locale loc_c = locale::classic();
   const string str("1798 Lady Elgin");
   const string str2("0 true 0xbffff74c Mary Nisbet");