summaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t
diff options
context:
space:
mode:
authorBenjamin Kosnik <bkoz@redhat.com>2003-09-23 20:03:30 +0000
committerBenjamin Kosnik <bkoz@gcc.gnu.org>2003-09-23 20:03:30 +0000
commit11f10e6b1f34001a5abd7b0046c28610b058b1ff (patch)
tree743380001d2341c199e3740ca7296f1783cef17c /libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t
parent1593ad2eddcadbfcefe8ff4abecffb724d71aedb (diff)
downloadgcc-11f10e6b1f34001a5abd7b0046c28610b058b1ff.tar.gz
locale_facets.tcc: Tweak to avoid warnings.
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. From-SVN: r71693
Diffstat (limited to 'libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t')
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc14
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc10
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/3.cc5
3 files changed, 6 insertions, 23 deletions
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc
index dca85d24fd2..065b13cf788 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc
@@ -30,7 +30,7 @@ void test01()
typedef time_base::dateorder dateorder;
typedef istreambuf_iterator<wchar_t> iterator_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction and sanity checks.
locale loc_c = locale::classic();
@@ -42,12 +42,6 @@ void test01()
VERIFY( loc_hk != loc_de );
VERIFY( loc_de != loc_fr );
- // cache the __timepunct facets, for quicker gdb inspection
- const __timepunct<wchar_t>& time_c = use_facet<__timepunct<wchar_t> >(loc_c);
- const __timepunct<wchar_t>& time_de = use_facet<__timepunct<wchar_t> >(loc_de);
- const __timepunct<wchar_t>& time_hk = use_facet<__timepunct<wchar_t> >(loc_hk);
- const __timepunct<wchar_t>& time_fr = use_facet<__timepunct<wchar_t> >(loc_fr);
-
const wstring empty;
// create an ostream-derived object, cache the time_get facet
@@ -61,11 +55,7 @@ void test01()
ios_base::iostate errorstate = good;
// create "C" time objects
- const tm time_bday = { 0, 0, 12, 4, 3, 71 };
- const wchar_t* all = L"%a %A %b %B %c %d %H %I %j %m %M %p %s %U "
- L"%w %W %x %X %y %Y %Z %%";
- const wchar_t* date = L"%A, the second of %B";
- const wchar_t* date_ex = L"%Ex";
+ const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
// iter_type
// get_weekday(iter_type, iter_type, ios_base&,
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc
index 1ca267440e7..1bf98971214 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc
@@ -30,7 +30,7 @@ void test02()
typedef time_base::dateorder dateorder;
typedef istreambuf_iterator<wchar_t> iterator_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction and sanity checks.
locale loc_c = locale::classic();
@@ -42,12 +42,6 @@ void test02()
VERIFY( loc_hk != loc_de );
VERIFY( loc_de != loc_fr );
- // cache the __timepunct facets, for quicker gdb inspection
- const __timepunct<wchar_t>& time_c = use_facet<__timepunct<wchar_t> >(loc_c);
- const __timepunct<wchar_t>& time_de = use_facet<__timepunct<wchar_t> >(loc_de);
- const __timepunct<wchar_t>& time_hk = use_facet<__timepunct<wchar_t> >(loc_hk);
- const __timepunct<wchar_t>& time_fr = use_facet<__timepunct<wchar_t> >(loc_fr);
-
const wstring empty;
// create an ostream-derived object, cache the time_get facet
@@ -60,7 +54,7 @@ void test02()
ios_base::iostate errorstate = good;
// create "C" time objects
- const tm time_bday = { 0, 0, 12, 4, 3, 71 };
+ const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
// inspection of named locales, de_DE
iss.imbue(loc_de);
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/3.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/3.cc
index eab0343be37..83b8579f270 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/3.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/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;
wistringstream iss;