diff options
author | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-09-23 20:03:30 +0000 |
---|---|---|
committer | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-09-23 20:03:30 +0000 |
commit | f8ef786cfd35341f4c3d1742375e22f829a0876f (patch) | |
tree | 743380001d2341c199e3740ca7296f1783cef17c /libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/char/2.cc | |
parent | 33020648811e6f8f2313712ecb0e7ba99e2653b7 (diff) | |
download | gcc-f8ef786cfd35341f4c3d1742375e22f829a0876f.tar.gz |
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/setbuf/char/2.cc')
-rw-r--r-- | libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/char/2.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/char/2.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/char/2.cc index 0eade15314a..145141e8d67 100644 --- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/char/2.cc +++ b/libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/char/2.cc @@ -27,7 +27,7 @@ void test01() { using namespace std; - bool test = true; + bool test __attribute__((unused)) = true; char buf[512]; const char* strlit = "how to tell a story and other essays: mark twain"; const size_t strlitsize = std::strlen(strlit); @@ -38,7 +38,7 @@ void test01() VERIFY( std::strncmp(strlit, buf, strlitsize) == 0 ); } -main() +int main() { test01(); return 0; |