diff options
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; |