Commit 315a716e by Paolo Carlini Committed by Paolo Carlini

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
parent ad1e5170
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.
2010-01-22 Daniel Frey <d.frey@gmx.de> 2010-01-22 Daniel Frey <d.frey@gmx.de>
* include/std/functional (_Index_tuple, _Build_index_tuple): * include/std/functional (_Index_tuple, _Build_index_tuple):
......
...@@ -46,27 +46,25 @@ void verify_return_type(T, T) ...@@ -46,27 +46,25 @@ void verify_return_type(T, T)
void test01() void test01()
{ {
test_type* null_tt = 0; int zero;
const test_type* null_ttc = 0;
int zero;
std::reference_wrapper<double (int)>* pr1(0); std::reference_wrapper<double (int)>* pr1(0);
verify_return_type((*pr1)(0), double()); verify_return_type((*pr1)(0), double());
std::reference_wrapper<double (*)(int)>* pr2(0); std::reference_wrapper<double (*)(int)>* pr2(0);
verify_return_type((*pr2)(0), double()); verify_return_type((*pr2)(0), double());
std::reference_wrapper<functor1>* pr5(0); std::reference_wrapper<functor1>* pr5(0);
// libstdc++/24803 // libstdc++/24803
verify_return_type((*pr5)(0), double()); verify_return_type((*pr5)(0), double());
verify_return_type((*pr5)(zero), double()); verify_return_type((*pr5)(zero), double());
std::reference_wrapper<double (int, char)>* pr1b(0); std::reference_wrapper<double (int, char)>* pr1b(0);
verify_return_type((*pr1b)(0,0), double()); verify_return_type((*pr1b)(0, 0), double());
std::reference_wrapper<double (*)(int, char)>* pr2b(0); std::reference_wrapper<double (*)(int, char)>* pr2b(0);
verify_return_type((*pr2b)(0,0), double()); verify_return_type((*pr2b)(0, 0), double());
std::reference_wrapper<functor2>* pr5b(0); std::reference_wrapper<functor2>* pr5b(0);
// libstdc++/24803 // libstdc++/24803
verify_return_type((*pr5b)(0,0), double()); verify_return_type((*pr5b)(0, 0), double());
verify_return_type((*pr5b)(zero,zero), double()); verify_return_type((*pr5b)(zero, zero), double());
} }
...@@ -69,7 +69,6 @@ void test01() ...@@ -69,7 +69,6 @@ void test01()
::get_seventeen get_sev; ::get_seventeen get_sev;
::X x; ::X x;
::X* xp = &x;
const float pi = 3.14; const float pi = 3.14;
......
...@@ -53,7 +53,7 @@ void test01() ...@@ -53,7 +53,7 @@ void test01()
const char* amname[12] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", const char* amname[12] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun",
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }; "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" };
for (unsigned i = 0; i < 12; ++i) for (int i = 0; i < 12; ++i)
{ {
iss.str(amname[i]); iss.str(amname[i]);
iterator_type is_it01(iss); iterator_type is_it01(iss);
...@@ -69,7 +69,7 @@ void test01() ...@@ -69,7 +69,7 @@ void test01()
"May", "June", "July", "August", "May", "June", "July", "August",
"September", "October", "November", "December" }; "September", "October", "November", "December" };
for (unsigned i = 0; i < 12; ++i) for (int i = 0; i < 12; ++i)
{ {
iss.str(mname[i]); iss.str(mname[i]);
iterator_type is_it01(iss); iterator_type is_it01(iss);
......
...@@ -55,7 +55,7 @@ void test01() ...@@ -55,7 +55,7 @@ void test01()
L"May", L"Jun", L"Jul", L"Aug", L"May", L"Jun", L"Jul", L"Aug",
L"Sep", L"Oct", L"Nov", L"Dec" }; 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]); iss.str(amname[i]);
iterator_type is_it01(iss); iterator_type is_it01(iss);
...@@ -72,7 +72,7 @@ void test01() ...@@ -72,7 +72,7 @@ void test01()
L"July", L"August", L"September", L"July", L"August", L"September",
L"October", L"November", L"December" }; L"October", L"November", L"December" };
for (unsigned i = 0; i < 12; ++i) for (int i = 0; i < 12; ++i)
{ {
iss.str(mname[i]); iss.str(mname[i]);
iterator_type is_it01(iss); iterator_type is_it01(iss);
......
...@@ -58,7 +58,7 @@ void test01() ...@@ -58,7 +58,7 @@ void test01()
"\u041F\u0442\u043D", "\u041F\u0442\u043D",
"\u0421\u0431\u0442" }; "\u0421\u0431\u0442" };
for (unsigned i = 0; i < 7; ++i) for (int i = 0; i < 7; ++i)
{ {
iss.str(awdays[i]); iss.str(awdays[i]);
iterator_type is_it01(iss); iterator_type is_it01(iss);
...@@ -80,7 +80,7 @@ void test01() ...@@ -80,7 +80,7 @@ void test01()
"\u041F\u044F\u0442\u043D\u0438\u0446\u0430", "\u041F\u044F\u0442\u043D\u0438\u0446\u0430",
"\u0421\u0443\u0431\u0431\u043E\u0442\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]); iss.str(wdays[i]);
iterator_type is_it01(iss); iterator_type is_it01(iss);
......
...@@ -52,7 +52,7 @@ void test01() ...@@ -52,7 +52,7 @@ void test01()
const char* awdays[7] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" }; 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]); iss.str(awdays[i]);
iterator_type is_it01(iss); iterator_type is_it01(iss);
...@@ -67,7 +67,7 @@ void test01() ...@@ -67,7 +67,7 @@ void test01()
const char* wdays[7] = { "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", const char* wdays[7] = { "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday",
"Friday", "Saturday" }; "Friday", "Saturday" };
for (unsigned i = 0; i < 7; ++i) for (int i = 0; i < 7; ++i)
{ {
iss.str(wdays[i]); iss.str(wdays[i]);
iterator_type is_it01(iss); iterator_type is_it01(iss);
......
...@@ -54,7 +54,7 @@ void test01() ...@@ -54,7 +54,7 @@ void test01()
const wchar_t* awdays[7] = { L"Sun", L"Mon", L"Tue", L"Wed", const wchar_t* awdays[7] = { L"Sun", L"Mon", L"Tue", L"Wed",
L"Thu", L"Fri", L"Sat" }; L"Thu", L"Fri", L"Sat" };
for (unsigned i = 0; i < 7; ++i) for (int i = 0; i < 7; ++i)
{ {
iss.str(awdays[i]); iss.str(awdays[i]);
iterator_type is_it01(iss); iterator_type is_it01(iss);
...@@ -69,7 +69,7 @@ void test01() ...@@ -69,7 +69,7 @@ void test01()
const wchar_t* wdays[7] = { L"Sunday", L"Monday", L"Tuesday", L"Wednesday", const wchar_t* wdays[7] = { L"Sunday", L"Monday", L"Tuesday", L"Wednesday",
L"Thursday", L"Friday", L"Saturday" }; L"Thursday", L"Friday", L"Saturday" };
for (unsigned i = 0; i < 7; ++i) for (int i = 0; i < 7; ++i)
{ {
iss.str(wdays[i]); iss.str(wdays[i]);
iterator_type is_it01(iss); iterator_type is_it01(iss);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment