Kaydet (Commit) dc4dae12 authored tarafından Mike Kaganski's avatar Mike Kaganski

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

Change-Id: I7bbb280810af51adc25595667f1c40aca0a8ae26
Reviewed-on: https://gerrit.libreoffice.org/48977Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMike Kaganski <mike.kaganski@collabora.com>
üst 98e9e033
...@@ -19,9 +19,6 @@ ...@@ -19,9 +19,6 @@
// SOActiveX.cpp : Implementation of CSOActiveX // SOActiveX.cpp : Implementation of CSOActiveX
#pragma warning (push,1)
#pragma warning (disable:4265)
#include "StdAfx2.h" #include "StdAfx2.h"
#include "SOActiveX.h" #include "SOActiveX.h"
#include "SOComWindowPeer.h" #include "SOComWindowPeer.h"
...@@ -37,8 +34,6 @@ ...@@ -37,8 +34,6 @@
#pragma clang diagnostic pop #pragma clang diagnostic pop
#endif #endif
#pragma warning (pop)
#define STAROFFICE_WINDOWCLASS L"SOParentWindow" #define STAROFFICE_WINDOWCLASS L"SOParentWindow"
......
...@@ -24,9 +24,6 @@ ...@@ -24,9 +24,6 @@
#include "resource.h" #include "resource.h"
#pragma warning (push,1)
#pragma warning (disable:4265)
#include <ExDispID.h> #include <ExDispID.h>
#include <ExDisp.h> #include <ExDisp.h>
#include <shlguid.h> #include <shlguid.h>
...@@ -42,8 +39,6 @@ ...@@ -42,8 +39,6 @@
#pragma clang diagnostic pop #pragma clang diagnostic pop
#endif #endif
#pragma warning (pop)
class SODispatchInterceptor; class SODispatchInterceptor;
enum SOVersion { enum SOVersion {
......
...@@ -24,10 +24,6 @@ ...@@ -24,10 +24,6 @@
#ifndef INCLUDED_EXTENSIONS_SOURCE_ACTIVEX_STDAFX2_H #ifndef INCLUDED_EXTENSIONS_SOURCE_ACTIVEX_STDAFX2_H
#define INCLUDED_EXTENSIONS_SOURCE_ACTIVEX_STDAFX2_H #define INCLUDED_EXTENSIONS_SOURCE_ACTIVEX_STDAFX2_H
#ifdef _MSC_VER
#pragma once
#endif
#define STRICT #define STRICT
#ifndef _WIN32_WINNT #ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0502 #define _WIN32_WINNT 0x0502
...@@ -35,11 +31,9 @@ ...@@ -35,11 +31,9 @@
#define _ATL_APARTMENT_THREADED #define _ATL_APARTMENT_THREADED
#define _ATL_STATIC_REGISTRY #define _ATL_STATIC_REGISTRY
#pragma warning (push,1) #pragma warning (push)
#pragma warning (disable:4548) #pragma warning (disable:4189)
// expression before comma has no effect; expected expression with side-effect // local variable is initialized but not referenced - in atlctl.h
#pragma warning (disable:4555)
// expression has no effect; expected expression with side-effect
#if defined __clang__ #if defined __clang__
#pragma clang diagnostic push #pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wall" #pragma clang diagnostic ignored "-Wall"
...@@ -75,6 +69,6 @@ extern CComModule _Module; ...@@ -75,6 +69,6 @@ extern CComModule _Module;
//{{AFX_INSERT_LOCATION}} //{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. // 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: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -21,9 +21,6 @@ ...@@ -21,9 +21,6 @@
#define STRICT #define STRICT
#define _WIN32_DCOM #define _WIN32_DCOM
#pragma warning (push,1)
#pragma warning (disable:4548)
#if defined __clang__ #if defined __clang__
#pragma clang diagnostic push #pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wall" #pragma clang diagnostic ignored "-Wall"
...@@ -45,8 +42,6 @@ static CComModule _Module; ...@@ -45,8 +42,6 @@ static CComModule _Module;
#pragma clang diagnostic pop #pragma clang diagnostic pop
#endif #endif
#pragma warning (pop)
BEGIN_OBJECT_MAP(ObjectMap) BEGIN_OBJECT_MAP(ObjectMap)
#if defined __clang__ #if defined __clang__
#pragma clang diagnostic push #pragma clang diagnostic push
......
...@@ -29,11 +29,6 @@ ...@@ -29,11 +29,6 @@
//#define _ATL_DEBUG_INTERFACES //#define _ATL_DEBUG_INTERFACES
#endif #endif
#pragma warning (push,1)
#pragma warning (disable:4917)
#pragma warning (disable:4005)
#pragma warning (disable:4548)
#include <dispex.h> #include <dispex.h>
#include <prewin.h> #include <prewin.h>
...@@ -67,8 +62,6 @@ extern CComModule _Module; ...@@ -67,8 +62,6 @@ extern CComModule _Module;
#include <postwin.h> #include <postwin.h>
#pragma warning (pop)
#endif // INCLUDED_EXTENSIONS_SOURCE_OLE_WINCRAP_HXX #endif // INCLUDED_EXTENSIONS_SOURCE_OLE_WINCRAP_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -19,10 +19,6 @@ ...@@ -19,10 +19,6 @@
#ifndef INCLUDED_EXTENSIONS_SOURCE_OLE_WINDATA_HXX #ifndef INCLUDED_EXTENSIONS_SOURCE_OLE_WINDATA_HXX
#define INCLUDED_EXTENSIONS_SOURCE_OLE_WINDATA_HXX #define INCLUDED_EXTENSIONS_SOURCE_OLE_WINDATA_HXX
#pragma warning (push,1)
#pragma warning (disable:4668)
#pragma warning (disable:4548)
#include <oleidl.h> #include <oleidl.h>
#if defined __clang__ #if defined __clang__
...@@ -43,8 +39,6 @@ ...@@ -43,8 +39,6 @@
#pragma clang diagnostic pop #pragma clang diagnostic pop
#endif #endif
#pragma warning (pop)
#include <osl/diagnose.h> #include <osl/diagnose.h>
namespace ole_adapter namespace ole_adapter
......
...@@ -40,14 +40,7 @@ ...@@ -40,14 +40,7 @@
#include <vcl/sysdata.hxx> #include <vcl/sysdata.hxx>
#include "scanner.hxx" #include "scanner.hxx"
#if defined _MSC_VER
#pragma warning (push,1)
#pragma warning (disable:4668)
#endif
#include <twain/twain.h> #include <twain/twain.h>
#if defined _MSC_VER
#pragma warning (pop)
#endif
using namespace ::com::sun::star; using namespace ::com::sun::star;
......
...@@ -18,17 +18,7 @@ ...@@ -18,17 +18,7 @@
*/ */
#if defined(_WIN32) #include <curl/curl.h>
# ifdef _MSC_VER
# pragma warning(push, 1) /* disable warnings within system headers */
# endif
# include <curl/curl.h>
# ifdef _MSC_VER
# pragma warning(pop)
# endif
#else
# include <curl/curl.h>
#endif
#include <osl/diagnose.h> #include <osl/diagnose.h>
#include <com/sun/star/beans/PropertyValue.hpp> #include <com/sun/star/beans/PropertyValue.hpp>
......
...@@ -17,10 +17,6 @@ ...@@ -17,10 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#ifdef _MSC_VER
#pragma warning( disable: 4668 )
#endif
#include <sal/types.h> #include <sal/types.h>
#include <sal/macros.h> #include <sal/macros.h>
......
...@@ -41,14 +41,7 @@ ...@@ -41,14 +41,7 @@
#include <sal/macros.h> #include <sal/macros.h>
#ifdef _WIN32 #ifdef _WIN32
#ifdef _MSC_VER
#pragma warning(push,1) // disable warnings within system headers
//#pragma warning(disable: 4917)
#endif
#include <objbase.h> #include <objbase.h>
#ifdef _MSC_VER
#pragma warning(pop)
#endif
#endif #endif
#include "onlinecheck.hxx" #include "onlinecheck.hxx"
......
...@@ -31,15 +31,8 @@ ...@@ -31,15 +31,8 @@
#include <o3tl/char16_t2wchar_t.hxx> #include <o3tl/char16_t2wchar_t.hxx>
#ifdef _WIN32 #ifdef _WIN32
#ifdef _MSC_VER
#pragma warning(push,1) // disable warnings within system headers
#pragma warning(disable: 4917)
#endif
#include <objbase.h> #include <objbase.h>
#include <shlobj.h> #include <shlobj.h>
#ifdef _MSC_VER
#pragma warning(pop)
#endif
#endif #endif
namespace container = com::sun::star::container ; namespace container = com::sun::star::container ;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment