summaryrefslogtreecommitdiff
path: root/plugingui
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2017-04-21 13:02:32 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2017-04-21 13:02:32 +0200
commit3d145c656d0c8dc8892d09d7a090f5d1368f7a17 (patch)
tree60e420a06e477bb5a34aed50b68ba0fa1b8a8a4b /plugingui
parent2ec292d057bdcf165aead595f2bfcbb419dc10f7 (diff)
Disable clang encoding warnings for utf8 encoding/decoding map.
Diffstat (limited to 'plugingui')
-rw-r--r--plugingui/utf8.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugingui/utf8.cc b/plugingui/utf8.cc
index a14fd43..770d115 100644
--- a/plugingui/utf8.cc
+++ b/plugingui/utf8.cc
@@ -26,6 +26,9 @@
*/
#include "utf8.h"
+// Disable clang encoding warnings for creation of this map.
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Winvalid-source-encoding"
UTF8::UTF8()
{
// Encode Map
@@ -290,6 +293,7 @@ UTF8::UTF8()
// FIXME: This is just a hack to make Goran Mekic's name work.
map_decode["Ä\x87"] = "c";
}
+#pragma clang diagnostic pop
std::string UTF8::fromLatin1(std::string const& s)
{