aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/22_locale/ctype/narrow/wchar_t/2.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/testsuite/22_locale/ctype/narrow/wchar_t/2.cc')
-rw-r--r--libstdc++-v3/testsuite/22_locale/ctype/narrow/wchar_t/2.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/libstdc++-v3/testsuite/22_locale/ctype/narrow/wchar_t/2.cc b/libstdc++-v3/testsuite/22_locale/ctype/narrow/wchar_t/2.cc
index 8f8fecc6ea9..5422a5685a9 100644
--- a/libstdc++-v3/testsuite/22_locale/ctype/narrow/wchar_t/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/ctype/narrow/wchar_t/2.cc
@@ -38,7 +38,7 @@ void test02()
using namespace std;
typedef wchar_t wide_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const char dfault = '?';
const locale loc_c = locale::classic();
const ctype<wide_type>& ctype_c = use_facet<ctype<wide_type> >(loc_c);
@@ -53,7 +53,7 @@ void test02()
vector<char> narrow_chars(wide.length() + 1);
// narrow(charT c, char dfault) const
- for (int i = 0; i < wide.length(); ++i)
+ for (size_t i = 0; i < wide.length(); ++i)
{
char c = ctype_c.narrow(wide[i], dfault);
VERIFY( c == narrow[i] );
@@ -62,7 +62,7 @@ void test02()
// narrow(const charT* low, const charT* high, char dfault, char* dest) const
ctype_c.narrow(&wide[0], &wide[0] + wide.length(), dfault, &narrow_chars[0]);
VERIFY( narrow_chars[0] != dfault );
- for (int i = 0; i < wide.length(); ++i)
+ for (size_t i = 0; i < wide.length(); ++i)
VERIFY( narrow_chars[i] == narrow[i] );
}