Fix most GCC attribute ignored warnings
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@267074 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2825,10 +2825,10 @@ ucs4_to_utf16le(const uint32_t* frm, const uint32_t* frm_end, const uint32_t*& f
|
||||
to_nxt = to;
|
||||
if (mode & generate_header)
|
||||
{
|
||||
if (to_end-to_nxt < 2)
|
||||
if (to_end - to_nxt < 2)
|
||||
return codecvt_base::partial;
|
||||
*to_nxt++ = static_cast<uint8_t>(0xFF);
|
||||
*to_nxt++ = static_cast<uint8_t>(0xFE);
|
||||
*to_nxt++ = static_cast<uint8_t>(0xFF);
|
||||
*to_nxt++ = static_cast<uint8_t>(0xFE);
|
||||
}
|
||||
for (; frm_nxt < frm_end; ++frm_nxt)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user