diff options
author | Benjamin Kosnik <bkoz@redhat.com> | 2003-09-23 20:03:30 +0000 |
---|---|---|
committer | Benjamin Kosnik <bkoz@gcc.gnu.org> | 2003-09-23 20:03:30 +0000 |
commit | 11f10e6b1f34001a5abd7b0046c28610b058b1ff (patch) | |
tree | 743380001d2341c199e3740ca7296f1783cef17c /libstdc++-v3/testsuite/27_io/basic_stringbuf/seekpos | |
parent | 1593ad2eddcadbfcefe8ff4abecffb724d71aedb (diff) | |
download | gcc-11f10e6b1f34001a5abd7b0046c28610b058b1ff.zip gcc-11f10e6b1f34001a5abd7b0046c28610b058b1ff.tar.gz gcc-11f10e6b1f34001a5abd7b0046c28610b058b1ff.tar.bz2 |
locale_facets.tcc: Tweak to avoid warnings.
2003-09-23 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/locale_facets.tcc: Tweak to avoid warnings.
* testsuite/testsuite_hooks.h: Same.
* testsuite/*/*.cc: Same.
From-SVN: r71693
Diffstat (limited to 'libstdc++-v3/testsuite/27_io/basic_stringbuf/seekpos')
3 files changed, 3 insertions, 7 deletions
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/seekpos/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/seekpos/char/1.cc index 12143c5..9ed89f9 100644 --- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/seekpos/char/1.cc +++ b/libstdc++-v3/testsuite/27_io/basic_stringbuf/seekpos/char/1.cc @@ -32,11 +32,9 @@ std::stringbuf strb_03(str_03, std::ios_base::out); // test overloaded virtual functions void test04() { - bool test = true; + bool test __attribute__((unused)) = true; std::string str_tmp; std::stringbuf strb_tmp; - std::streamsize strmsz_1, strmsz_2; - std::streamoff strmof_1(-1), strmof_2; typedef std::stringbuf::int_type int_type; typedef std::stringbuf::traits_type traits_type; typedef std::stringbuf::pos_type pos_type; @@ -45,8 +43,6 @@ void test04() int_type c1 = strb_01.sbumpc(); int_type c2 = strb_02.sbumpc(); int_type c3 = strb_01.sbumpc(); - int_type c4 = strb_02.sbumpc(); - int_type c5 = strb_03.sbumpc(); pos_type pt_1(off_type(-1)); pos_type pt_2(off_type(0)); diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/seekpos/char/2.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/seekpos/char/2.cc index c3c6a8a..7a8389a 100644 --- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/seekpos/char/2.cc +++ b/libstdc++-v3/testsuite/27_io/basic_stringbuf/seekpos/char/2.cc @@ -25,7 +25,7 @@ void test02(std::stringbuf& in, bool pass) { - bool test = true; + bool test __attribute__((unused)) = true; using namespace std; typedef streambuf::pos_type pos_type; typedef streambuf::off_type off_type; diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/seekpos/char/3.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/seekpos/char/3.cc index 46cbced..0e952d7 100644 --- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/seekpos/char/3.cc +++ b/libstdc++-v3/testsuite/27_io/basic_stringbuf/seekpos/char/3.cc @@ -23,7 +23,7 @@ void test01() { - bool test = true; + bool test __attribute__((unused)) = true; using namespace std; typedef stringbuf::pos_type pos_type; typedef stringbuf::off_type off_type; |