mirror of
https://github.com/ETLCPP/etl.git
synced 2026-04-30 19:09:10 +08:00
Fixed GCC warnings
This commit is contained in:
parent
5cab841833
commit
b038e375cd
@ -97,7 +97,7 @@ namespace
|
||||
priority_queue.push(2);
|
||||
priority_queue.push(3);
|
||||
|
||||
CHECK_EQUAL(3, priority_queue.size());
|
||||
CHECK_EQUAL(3U, priority_queue.size());
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
@ -108,7 +108,7 @@ namespace
|
||||
priority_queue.push(1);
|
||||
priority_queue.push(2);
|
||||
priority_queue.clear();
|
||||
CHECK_EQUAL(0, priority_queue.size());
|
||||
CHECK_EQUAL(0U, priority_queue.size());
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
|
||||
@ -969,8 +969,8 @@ namespace
|
||||
Text append(insert_text.c_str());
|
||||
|
||||
// Whole string.
|
||||
compare_text.append(insert_text, 0);
|
||||
text.append(append, 0);
|
||||
compare_text.append(insert_text, 0, std::u16string::npos);
|
||||
text.append(append, 0, etl::iu16string::npos);
|
||||
|
||||
bool is_equal = Equal(compare_text, text);
|
||||
CHECK(is_equal);
|
||||
|
||||
@ -969,8 +969,8 @@ namespace
|
||||
Text append(insert_text.c_str());
|
||||
|
||||
// Whole string.
|
||||
compare_text.append(insert_text, 0);
|
||||
text.append(append, 0);
|
||||
compare_text.append(insert_text, 0, std::u32string::npos);
|
||||
text.append(append, 0, etl::iu32string::npos);
|
||||
|
||||
bool is_equal = Equal(compare_text, text);
|
||||
CHECK(is_equal);
|
||||
|
||||
@ -969,8 +969,8 @@ namespace
|
||||
Text append(insert_text.c_str());
|
||||
|
||||
// Whole string.
|
||||
compare_text.append(insert_text, 0);
|
||||
text.append(append, 0);
|
||||
compare_text.append(insert_text, 0, std::wstring::npos);
|
||||
text.append(append, 0, etl::iwstring::npos);
|
||||
|
||||
bool is_equal = Equal(compare_text, text);
|
||||
CHECK(is_equal);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user