1
0

GCC: Added pragma to ignore fallthrough warnings within Unicode Inc. code (#4392)

This commit is contained in:
E14
2019-09-13 15:56:56 +02:00
committed by Mattes D
parent 7678d5e6ed
commit 83013d19ca

View File

@@ -414,6 +414,10 @@ AString UnicodeCharToUtf8(unsigned a_UnicodeChar)
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
#endif
// UTF-8 conversion code adapted from:
// https://stackoverflow.com/questions/2867123/convert-utf-16-to-utf-8-under-windows-and-linux-in-c
@@ -610,6 +614,9 @@ are equivalent to the following loop:
////////////////////////////////////////////////////////////////////////////////
// End of Unicode, Inc.'s code / information
////////////////////////////////////////////////////////////////////////////////
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif