HPL1: Fix GCC Compiler Fallthrough Warnings in TinyXML Parser Code

These are intended as per the earlier comment.
This commit is contained in:
D G Turner 2022-09-03 21:50:57 +01:00 committed by Eugene Sandulenko
parent 941946918e
commit 4f35777b7c
No known key found for this signature in database
GPG Key ID: 014D387312D34F08

View File

@ -107,17 +107,21 @@ void TiXmlBase::ConvertUTF32ToUTF8(unsigned long input, char *output, int *lengt
--output;
*output = (char)((input | BYTE_MARK) & BYTE_MASK);
input >>= 6;
// fallthrough
case 3:
--output;
*output = (char)((input | BYTE_MARK) & BYTE_MASK);
input >>= 6;
// fallthrough
case 2:
--output;
*output = (char)((input | BYTE_MARK) & BYTE_MASK);
input >>= 6;
// fallthrough
case 1:
--output;
*output = (char)(input | FIRST_BYTE_MARK[*length]);
// fallthrough
}
}