summaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/22_locale/time_get
diff options
context:
space:
mode:
authorPaolo Carlini <paolo.carlini@oracle.com>2010-01-25 18:02:41 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2010-01-25 18:02:41 +0000
commit315a716efba48aad7ae39e437084c03036c0377c (patch)
tree24568c6a5cd794b7f6694a13667e7dc1d3cbc3e4 /libstdc++-v3/testsuite/22_locale/time_get
parentad1e51700e69517f0bb8b14d3f7a23d2e33550b7 (diff)
downloadgcc-315a716efba48aad7ae39e437084c03036c0377c.tar.gz
6.cc: Use an int as loop variable, to avoid -Wall warnings.
2010-01-25 Paolo Carlini <paolo.carlini@oracle.com> * testsuite/22_locale/time_get/get_monthname/char/6.cc: Use an int as loop variable, to avoid -Wall warnings. * testsuite/22_locale/time_get/get_monthname/wchar_t/6.cc: Likewise. * testsuite/22_locale/time_get/get_weekday/char/6.cc: Likewise. * testsuite/22_locale/time_get/get_weekday/wchar_t/6.cc: Likewise. * testsuite/22_locale/time_get/get_weekday/char/38081-2.cc: Likewise. * testsuite/20_util/reference_wrapper/24803.cc: Remove unused vars. * testsuite/20_util/reference_wrapper/invoke.cc: Likewise. From-SVN: r156219
Diffstat (limited to 'libstdc++-v3/testsuite/22_locale/time_get')
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/6.cc4
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/6.cc4
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/38081-2.cc4
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/6.cc4
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/6.cc4
5 files changed, 10 insertions, 10 deletions
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/6.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/6.cc
index 7a79887b6fd..2083db61712 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/6.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/6.cc
@@ -53,7 +53,7 @@ void test01()
const char* amname[12] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun",
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec" };
- for (unsigned i = 0; i < 12; ++i)
+ for (int i = 0; i < 12; ++i)
{
iss.str(amname[i]);
iterator_type is_it01(iss);
@@ -69,7 +69,7 @@ void test01()
"May", "June", "July", "August",
"September", "October", "November", "December" };
- for (unsigned i = 0; i < 12; ++i)
+ for (int i = 0; i < 12; ++i)
{
iss.str(mname[i]);
iterator_type is_it01(iss);
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/6.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/6.cc
index 41742cd8fc3..7f9f47fb8cd 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/6.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/6.cc
@@ -55,7 +55,7 @@ void test01()
L"May", L"Jun", L"Jul", L"Aug",
L"Sep", L"Oct", L"Nov", L"Dec" };
- for (unsigned i = 0; i < 12; ++i)
+ for (int i = 0; i < 12; ++i)
{
iss.str(amname[i]);
iterator_type is_it01(iss);
@@ -72,7 +72,7 @@ void test01()
L"July", L"August", L"September",
L"October", L"November", L"December" };
- for (unsigned i = 0; i < 12; ++i)
+ for (int i = 0; i < 12; ++i)
{
iss.str(mname[i]);
iterator_type is_it01(iss);
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/38081-2.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/38081-2.cc
index decec58b8a1..cda8df142f3 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/38081-2.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/38081-2.cc
@@ -58,7 +58,7 @@ void test01()
"\u041F\u0442\u043D",
"\u0421\u0431\u0442" };
- for (unsigned i = 0; i < 7; ++i)
+ for (int i = 0; i < 7; ++i)
{
iss.str(awdays[i]);
iterator_type is_it01(iss);
@@ -80,7 +80,7 @@ void test01()
"\u041F\u044F\u0442\u043D\u0438\u0446\u0430",
"\u0421\u0443\u0431\u0431\u043E\u0442\u0430" };
- for (unsigned i = 0; i < 7; ++i)
+ for (int i = 0; i < 7; ++i)
{
iss.str(wdays[i]);
iterator_type is_it01(iss);
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/6.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/6.cc
index 595c81c2fb3..1d28dbf3c6d 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/6.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/6.cc
@@ -52,7 +52,7 @@ void test01()
const char* awdays[7] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };
- for (unsigned i = 0; i < 7; ++i)
+ for (int i = 0; i < 7; ++i)
{
iss.str(awdays[i]);
iterator_type is_it01(iss);
@@ -67,7 +67,7 @@ void test01()
const char* wdays[7] = { "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday",
"Friday", "Saturday" };
- for (unsigned i = 0; i < 7; ++i)
+ for (int i = 0; i < 7; ++i)
{
iss.str(wdays[i]);
iterator_type is_it01(iss);
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/6.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/6.cc
index d4af7b19102..39a3e3dec9c 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/6.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/6.cc
@@ -54,7 +54,7 @@ void test01()
const wchar_t* awdays[7] = { L"Sun", L"Mon", L"Tue", L"Wed",
L"Thu", L"Fri", L"Sat" };
- for (unsigned i = 0; i < 7; ++i)
+ for (int i = 0; i < 7; ++i)
{
iss.str(awdays[i]);
iterator_type is_it01(iss);
@@ -69,7 +69,7 @@ void test01()
const wchar_t* wdays[7] = { L"Sunday", L"Monday", L"Tuesday", L"Wednesday",
L"Thursday", L"Friday", L"Saturday" };
- for (unsigned i = 0; i < 7; ++i)
+ for (int i = 0; i < 7; ++i)
{
iss.str(wdays[i]);
iterator_type is_it01(iss);