summaryrefslogtreecommitdiffstats
path: root/l10ntools/source/xrmlex.l
diff options
context:
space:
mode:
Diffstat (limited to 'l10ntools/source/xrmlex.l')
-rw-r--r--l10ntools/source/xrmlex.l6
1 files changed, 3 insertions, 3 deletions
diff --git a/l10ntools/source/xrmlex.l b/l10ntools/source/xrmlex.l
index ad5b9490c097..7513edd6cab1 100644
--- a/l10ntools/source/xrmlex.l
+++ b/l10ntools/source/xrmlex.l
@@ -21,6 +21,8 @@
* lexer for parsing xml-property source files (*.xml)
*/
+#include "sal/config.h"
+
/* enlarge token buffer to tokenize whole strings */
#undef YYLMAX
#define YYLMAX 64000
@@ -40,11 +42,9 @@
#include "sal/main.h"
-#if defined __GNUC__
-#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2))
+#if HAVE_GCC_PRAGMA_DIAGNOSTIC_MODIFY
#pragma GCC diagnostic ignored "-Wunused-function"
#pragma GCC diagnostic ignored "-Wunused-label"
-#endif
#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif