idlc: MSVC: pragma warning: make more specific, remove obsolete

Change-Id: I0fbba0c1b12f9ade703ceee477dae4056fe9d31e
Reviewed-on: https://gerrit.libreoffice.org/48994
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
Mike Kaganski 2018-01-31 15:32:48 +03:00
parent 8e07fb3507
commit e9073eadef
3 changed files with 1 additions and 7 deletions

View file

@ -39,10 +39,6 @@ class AstScope;
AstDeclaration* scopeAsDecl(AstScope* pScope);
AstScope* declAsScope(AstDeclaration* pDecl);
#ifdef _MSC_VER
#pragma warning( disable : 4541 )
#endif
// flags used for attributes, properties and services
#define AF_INVALID 0x0000
#define AF_READONLY 0x0001

View file

@ -208,8 +208,7 @@ bool includes(AstDeclaration const * type1, AstDeclaration const * type2) {
// Suppress any warnings from generated code:
#if defined _MSC_VER
#pragma warning(push, 1)
#pragma warning(disable: 4273 4701 4702)
#pragma warning(disable: 4702) // unreachable code
#endif
%}
/*

View file

@ -252,7 +252,6 @@ static void parseLineAndFile(sal_Char* pBuf)
#pragma GCC diagnostic ignored "-Wunused-function"
#pragma GCC diagnostic ignored "-Wunused-label"
#elif defined _MSC_VER
#pragma warning(push, 1)
/**/
#ifdef yywrap
#undef yywrap