From dc4dae12637bf0e5ef5d05bec8cf2577cef75f42 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Wed, 31 Jan 2018 12:47:22 +0300 Subject: extensions: MSVC: pragma warning: make more specific, remove obsolete Change-Id: I7bbb280810af51adc25595667f1c40aca0a8ae26 Reviewed-on: https://gerrit.libreoffice.org/48977 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- extensions/source/activex/StdAfx2.h | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'extensions/source/activex/StdAfx2.h') diff --git a/extensions/source/activex/StdAfx2.h b/extensions/source/activex/StdAfx2.h index 2d121dab1df2..0c48a5e5fb5a 100644 --- a/extensions/source/activex/StdAfx2.h +++ b/extensions/source/activex/StdAfx2.h @@ -24,10 +24,6 @@ #ifndef INCLUDED_EXTENSIONS_SOURCE_ACTIVEX_STDAFX2_H #define INCLUDED_EXTENSIONS_SOURCE_ACTIVEX_STDAFX2_H -#ifdef _MSC_VER -#pragma once -#endif - #define STRICT #ifndef _WIN32_WINNT #define _WIN32_WINNT 0x0502 @@ -35,11 +31,9 @@ #define _ATL_APARTMENT_THREADED #define _ATL_STATIC_REGISTRY -#pragma warning (push,1) -#pragma warning (disable:4548) - // expression before comma has no effect; expected expression with side-effect -#pragma warning (disable:4555) - // expression has no effect; expected expression with side-effect +#pragma warning (push) +#pragma warning (disable:4189) + // local variable is initialized but not referenced - in atlctl.h #if defined __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wall" @@ -75,6 +69,6 @@ extern CComModule _Module; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. -#endif // !defined(AFX_STDAFX_H__C1799EA0_62CC_44DE_A2DD_C9F0410FF7F1__INCLUDED) +#endif // !defined(INCLUDED_EXTENSIONS_SOURCE_ACTIVEX_STDAFX2_H) /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit