summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow
diff options
context:
space:
mode:
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2003-09-23 20:03:30 +0000
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2003-09-23 20:03:30 +0000
commitf8ef786cfd35341f4c3d1742375e22f829a0876f (patch)
tree743380001d2341c199e3740ca7296f1783cef17c /libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow
parent33020648811e6f8f2313712ecb0e7ba99e2653b7 (diff)
downloadppe42-gcc-f8ef786cfd35341f4c3d1742375e22f829a0876f.tar.gz
ppe42-gcc-f8ef786cfd35341f4c3d1742375e22f829a0876f.zip
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71693 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow')
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow/char/2.cc2
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow/char/3599.cc4
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow/char/9988.cc4
3 files changed, 5 insertions, 5 deletions
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow/char/2.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow/char/2.cc
index 90845d0ad47..38b72b51e6e 100644
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow/char/2.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow/char/2.cc
@@ -60,7 +60,7 @@ template<typename T>
void test03()
{
- bool test = true;
+ bool test __attribute__((unused)) = true;
const std::string control01("11111");
std::string test01;
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow/char/3599.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow/char/3599.cc
index a8e3a287464..ad79cfcac65 100644
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow/char/3599.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow/char/3599.cc
@@ -41,14 +41,14 @@ public:
protected:
int_type
- overflow(int_type c = traits_type::eof())
+ overflow(int_type c __attribute__((unused)) = traits_type::eof())
{ return traits_type::not_eof(0); }
};
void
test07()
{
- bool test = true;
+ bool test __attribute__((unused)) = true;
testbuf ob;
std::ostream out(&ob);
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow/char/9988.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow/char/9988.cc
index abdd4def261..f9646cade91 100644
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow/char/9988.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow/char/9988.cc
@@ -35,7 +35,7 @@ public:
void test15()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
OverBuf sb;
@@ -56,7 +56,7 @@ void test15()
VERIFY( c == stringbuf::traits_type::eof() );
}
-main()
+int main()
{
test15();
return 0;
OpenPOWER on IntegriCloud