summaryrefslogtreecommitdiff
path: root/idlc
diff options
context:
space:
mode:
Diffstat (limited to 'idlc')
-rw-r--r--idlc/source/parser.y4
-rw-r--r--idlc/source/scanner.l2
2 files changed, 1 insertions, 5 deletions
diff --git a/idlc/source/parser.y b/idlc/source/parser.y
index da3853e3d161..b31cabc09e31 100644
--- a/idlc/source/parser.y
+++ b/idlc/source/parser.y
@@ -210,9 +210,7 @@ bool includes(AstDeclaration const * type1, AstDeclaration const * type2) {
}
// Suppress any warnings from generated code:
-#if defined __SUNPRO_CC
-#pragma disable_warn
-#elif defined _MSC_VER
+#if defined _MSC_VER
#pragma warning(push, 1)
#pragma warning(disable: 4273 4701 4702)
#endif
diff --git a/idlc/source/scanner.l b/idlc/source/scanner.l
index ba6f4d6a1016..7519a7b5ab6e 100644
--- a/idlc/source/scanner.l
+++ b/idlc/source/scanner.l
@@ -246,8 +246,6 @@ static void parseLineAndFile(sal_Char* pBuf)
#if HAVE_GCC_PRAGMA_DIAGNOSTIC_MODIFY
#pragma GCC diagnostic ignored "-Wunused-function"
#pragma GCC diagnostic ignored "-Wunused-label"
-#elif defined __SUNPRO_CC
-#pragma disable_warn
#elif defined _MSC_VER
#pragma warning(push, 1)
/**/