summaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/22_locale/time_get/get_year/wchar_t/3.cc
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/22_locale/time_get/get_year/wchar_t/3.cc
parent33020648811e6f8f2313712ecb0e7ba99e2653b7 (diff)
downloadgcc-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/22_locale/time_get/get_year/wchar_t/3.cc')
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_year/wchar_t/3.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_year/wchar_t/3.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_year/wchar_t/3.cc
index 0f61392df09..8377b463f2d 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_year/wchar_t/3.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_year/wchar_t/3.cc
@@ -27,19 +27,18 @@
void test03()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// Check time_get works with other iterators besides streambuf
// input iterators.
typedef wstring::const_iterator iter_type;
typedef time_get<wchar_t, iter_type> time_get_type;
const ios_base::iostate goodbit = ios_base::goodbit;
- const ios_base::iostate eofbit = ios_base::eofbit;
ios_base::iostate err = goodbit;
const locale loc_c = locale::classic();
// Create "C" time objects
- const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2 };
+ const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2, 0, 0 };
tm tm1;
istringstream iss;