summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/testsuite/27_io/basic_stringstream
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_stringstream
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_stringstream')
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringstream/3.cc4
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringstream/4.cc2
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringstream/rdbuf/char/2832.cc3
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/1.cc2
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/2.cc3
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/3.cc2
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/4.cc2
7 files changed, 8 insertions, 10 deletions
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringstream/3.cc b/libstdc++-v3/testsuite/27_io/basic_stringstream/3.cc
index 036d7e59bdb..896c35c6104 100644
--- a/libstdc++-v3/testsuite/27_io/basic_stringstream/3.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_stringstream/3.cc
@@ -59,7 +59,7 @@ struct gnu_char_traits
typedef gnu_char_type char_type;
typedef long int_type;
typedef long pos_type;
- typedef unsigned long off_type;
+ typedef long off_type;
typedef long state_type;
static void
@@ -117,7 +117,7 @@ struct gnu_char_traits
void test07()
{
- bool test = true;
+ bool test __attribute__((unused)) = true;
typedef std::basic_stringstream<gnu_char_type, gnu_char_traits> gnu_sstr;
try
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringstream/4.cc b/libstdc++-v3/testsuite/27_io/basic_stringstream/4.cc
index dcd5dc3dc64..6189c267784 100644
--- a/libstdc++-v3/testsuite/27_io/basic_stringstream/4.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_stringstream/4.cc
@@ -29,7 +29,7 @@ void test01()
typedef std::stringstream test_type;
typedef std::iostream base_type;
const test_type& obj = test_type();
- const base_type* base = &obj;
+ const base_type* base __attribute__((unused)) = &obj;
}
int main()
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringstream/rdbuf/char/2832.cc b/libstdc++-v3/testsuite/27_io/basic_stringstream/rdbuf/char/2832.cc
index 5e4fe022e75..9a0b6685560 100644
--- a/libstdc++-v3/testsuite/27_io/basic_stringstream/rdbuf/char/2832.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_stringstream/rdbuf/char/2832.cc
@@ -34,9 +34,8 @@ active_buffer(std::ios& stream)
// libstdc++/2832
void test02()
{
- bool test = true;
+ bool test __attribute__((unused)) = true;
const char* strlit01 = "fuck war";
- const char* strlit02 = "two less cars abstract riot crew, critical mass/SF";
const std::string str00;
const std::string str01(strlit01);
std::string str02;
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/1.cc
index 79b1e9cb35e..45c78cdafac 100644
--- a/libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/1.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/1.cc
@@ -25,7 +25,7 @@
void test01()
{
- bool test = true;
+ bool test __attribute__((unused)) = true;
std::stringstream is01;
const std::string str00;
const std::string str01 = "123";
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/2.cc b/libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/2.cc
index 04f2746bcde..397de5f1b86 100644
--- a/libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/2.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/2.cc
@@ -34,9 +34,8 @@ active_buffer(std::ios& stream)
// libstdc++/2832
void test02()
{
- bool test = true;
+ bool test __attribute__((unused)) = true;
const char* strlit01 = "fuck war";
- const char* strlit02 = "two less cars abstract riot crew, critical mass/SF";
const std::string str00;
const std::string str01(strlit01);
std::string str02;
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/3.cc b/libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/3.cc
index 47901a6e498..2d24f6b7922 100644
--- a/libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/3.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/3.cc
@@ -26,7 +26,7 @@
void
test03()
{
- bool test = true;
+ bool test __attribute__((unused)) = true;
//
// 1: Automatic formatting of a compound string
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/4.cc b/libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/4.cc
index 7d77fc2c63c..8dfe9b5d53b 100644
--- a/libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/4.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/4.cc
@@ -26,7 +26,7 @@
// libstdc++/8466
void test04()
{
- bool test = true;
+ bool test __attribute__((unused)) = true;
const char* strlit00 = "orvieto";
const std::string str00 = strlit00;
OpenPOWER on IntegriCloud