diff options
Diffstat (limited to 'libstdc++-v3/testsuite/27_io/basic_istream/putback/char/1.cc')
-rw-r--r-- | libstdc++-v3/testsuite/27_io/basic_istream/putback/char/1.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/putback/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_istream/putback/char/1.cc index 0213e3dfac0..47fcd0136f2 100644 --- a/libstdc++-v3/testsuite/27_io/basic_istream/putback/char/1.cc +++ b/libstdc++-v3/testsuite/27_io/basic_istream/putback/char/1.cc @@ -32,7 +32,7 @@ test01() { typedef std::ios::traits_type traits_type; - bool test = true; + bool test __attribute__((unused)) = true; const std::string str_01; const std::string str_02("soul eyes: john coltrane quartet"); std::string strtmp; @@ -48,8 +48,6 @@ test01() statefail = std::ios_base::failbit; stateeof = std::ios_base::eofbit; - char carray[60] = ""; - // istream& putback(char c) is_04.ignore(30); is_04.clear(); @@ -72,7 +70,7 @@ test01() // int sync() is_00.ignore(10); int count1 = is_00.gcount(); - int i = is_00.sync(); + is_00.sync(); int count2 = is_00.gcount(); VERIFY (count1 == count2 ); // DR 60 } |