summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorE14 <1640391+E14@users.noreply.github.com>2019-09-13 15:56:56 +0200
committerMattes D <github@xoft.cz>2019-09-13 15:56:56 +0200
commit83013d19ca77f8ff736ed7b9e85d2c7b3250476a (patch)
tree4390970d54b2d65001620f137094a45529406e50 /src
parentFix race condition in UrlClientTest (diff)
downloadcuberite-83013d19ca77f8ff736ed7b9e85d2c7b3250476a.tar
cuberite-83013d19ca77f8ff736ed7b9e85d2c7b3250476a.tar.gz
cuberite-83013d19ca77f8ff736ed7b9e85d2c7b3250476a.tar.bz2
cuberite-83013d19ca77f8ff736ed7b9e85d2c7b3250476a.tar.lz
cuberite-83013d19ca77f8ff736ed7b9e85d2c7b3250476a.tar.xz
cuberite-83013d19ca77f8ff736ed7b9e85d2c7b3250476a.tar.zst
cuberite-83013d19ca77f8ff736ed7b9e85d2c7b3250476a.zip
Diffstat (limited to 'src')
-rw-r--r--src/StringUtils.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/StringUtils.cpp b/src/StringUtils.cpp
index ec387437d..438f1864e 100644
--- a/src/StringUtils.cpp
+++ b/src/StringUtils.cpp
@@ -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