summaryrefslogtreecommitdiff
path: root/src/resources/mapreader.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-30 23:00:27 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-30 23:00:27 +0300
commit04bd779deaf42fa14a49ae88d77c06eab0d18512 (patch)
tree3e8d792a24b21d9d2f8c1b049d5ba6502e14acc8 /src/resources/mapreader.cpp
parent8fc6f2aa19079bebf52552fc5d0b8527af594a1d (diff)
downloadmanaverse-04bd779deaf42fa14a49ae88d77c06eab0d18512.tar.gz
manaverse-04bd779deaf42fa14a49ae88d77c06eab0d18512.tar.bz2
manaverse-04bd779deaf42fa14a49ae88d77c06eab0d18512.tar.xz
manaverse-04bd779deaf42fa14a49ae88d77c06eab0d18512.zip
Add attribute for hide warning about missing break in MapReader.
Diffstat (limited to 'src/resources/mapreader.cpp')
-rw-r--r--src/resources/mapreader.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp
index 497817a7d..d60f18d03 100644
--- a/src/resources/mapreader.cpp
+++ b/src/resources/mapreader.cpp
@@ -141,6 +141,9 @@ int inflateMemory(unsigned char *restrict const in,
{
case Z_NEED_DICT:
ret = Z_DATA_ERROR;
+#ifdef __clang__
+ [[clang::fallthrough]];
+#endif
case Z_DATA_ERROR:
case Z_MEM_ERROR:
(void) inflateEnd(&strm);