summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-11-11 12:29:32 +0200
committerTor Lillqvist <tml@collabora.com>2014-11-11 12:29:59 +0200
commit2640e8d34384761333a59560bb5d946d40d2b492 (patch)
tree0169fefdcf9070e7ab17111411c200af18356dea /editeng
parent14a1d4da2f49c92caaccfae9cab6940ac6e672a5 (diff)
WaE: 'register' storage class specifier is deprecated
Silly gperf generates 'register' storage class specifiers. So ignore those warnings from the generated tokens.cxx file. Change-Id: Ia80139f904f949bd2ae0267b6790d17b7f0e93d0
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/misc/SvXMLAutoCorrectTokenHandler.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/editeng/source/misc/SvXMLAutoCorrectTokenHandler.cxx b/editeng/source/misc/SvXMLAutoCorrectTokenHandler.cxx
index f669291f53fb..cafd5c0b2a95 100644
--- a/editeng/source/misc/SvXMLAutoCorrectTokenHandler.cxx
+++ b/editeng/source/misc/SvXMLAutoCorrectTokenHandler.cxx
@@ -10,7 +10,18 @@
#include <SvXMLAutoCorrectTokenHandler.hxx>
#include <xmloff/xmltoken.hxx>
#include <com/sun/star/xml/sax/FastToken.hpp>
+#if defined __clang__
+#if __has_warning("-Wdeprecated-register")
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-register"
+#endif
+#endif
#include <tokens.cxx>
+#if defined __clang__
+#if __has_warning("-Wdeprecated-register")
+#pragma GCC diagnostic pop
+#endif
+#endif
using namespace ::css::uno;
using namespace ::xmloff::token;