[Libreoffice-commits] .: idlc/source
David Ostrovsky
davido at kemper.freedesktop.org
Fri May 4 11:47:46 PDT 2012
idlc/source/scanner.l | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 6f1a96249014c6144c638cfcf38db3e910f6a6bc
Author: David Ostrovsky <David.Ostrovsky at gmx.de>
Date: Fri May 4 20:46:58 2012 +0200
disable GCC diagnostic #pragma on older GCC versions
Change-Id: Ib0c1ec649b4e391359ef41cebad501b297579557
diff --git a/idlc/source/scanner.l b/idlc/source/scanner.l
index 8675f26..6847ba4 100644
--- a/idlc/source/scanner.l
+++ b/idlc/source/scanner.l
@@ -257,8 +257,10 @@ static void parseLineAndFile(sal_Char* pBuf)
// Suppress any warnings from generated code:
#if defined __GNUC__
+#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2))
#pragma GCC diagnostic ignored "-Wunused-function"
#pragma GCC diagnostic ignored "-Wunused-label"
+#endif
#elif defined __SUNPRO_CC
#pragma disable_warn
#elif defined _MSC_VER
More information about the Libreoffice-commits
mailing list