summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2014-05-10 10:18:10 +0200
committerThomas Arnhold <thomas@arnhold.org>2014-05-10 13:03:20 +0200
commitc327acab9e5a49b0967c15adb923d99fed5bbc1c (patch)
treeb170d80108ad03fc21ed8b2fbac05f6c708f7c4c
parent90af0348216a5a3c2eecd660e012500d2917b279 (diff)
remove globally disabled warnings from source files
Change-Id: Ic7b092a24b4d1e48ca11e53b507da5c2bfdeabe8
-rw-r--r--embedserv/source/embed/docholder.cxx7
-rw-r--r--embedserv/source/embed/ed_idataobj.cxx7
-rw-r--r--embedserv/source/embed/ed_iinplace.cxx7
-rw-r--r--embedserv/source/embed/ed_ioleobject.cxx7
-rw-r--r--embedserv/source/embed/ed_ipersiststr.cxx7
-rw-r--r--embedserv/source/embed/esdll.cxx6
-rw-r--r--embedserv/source/embed/guid.cxx7
-rw-r--r--embedserv/source/embed/iipaobj.cxx7
-rw-r--r--embedserv/source/embed/intercept.cxx7
-rw-r--r--embedserv/source/embed/register.cxx6
-rw-r--r--embedserv/source/embed/servprov.cxx7
-rw-r--r--embedserv/source/embed/syswinwrapper.cxx7
-rw-r--r--embedserv/source/embed/tracker.cxx7
-rw-r--r--embedserv/source/inc/stdafx.h1
-rw-r--r--extensions/source/activex/SOActiveX.cxx3
-rw-r--r--extensions/source/activex/SOActiveX.h3
-rw-r--r--extensions/source/activex/StdAfx2.h3
-rw-r--r--extensions/source/ole/jscriptclasses.hxx3
-rw-r--r--extensions/source/ole/unotypewrapper.hxx3
-rw-r--r--include/sot/object.hxx4
-rw-r--r--sal/osl/w32/path_helper.hxx4
-rw-r--r--sfx2/source/appl/appuno.cxx4
-rw-r--r--shell/source/win32/shlxthandler/ooofilt/propspec.cxx3
-rw-r--r--vcl/win/source/window/salframe.cxx2
24 files changed, 1 insertions, 121 deletions
diff --git a/embedserv/source/embed/docholder.cxx b/embedserv/source/embed/docholder.cxx
index f09a0b5cf7a4..1b2732cb8b51 100644
--- a/embedserv/source/embed/docholder.cxx
+++ b/embedserv/source/embed/docholder.cxx
@@ -1432,11 +1432,4 @@ void SAL_CALL DocumentHolder::modified( const lang::EventObject& /*aEvent*/ )
}
}
-// Fix strange warnings about some
-// ATL::CAxHostWindow::QueryInterface|AddRef|Releae functions.
-// warning C4505: 'xxx' : unreferenced local function has been removed
-#ifdef _MSC_VER
-#pragma warning(disable: 4505)
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/embedserv/source/embed/ed_idataobj.cxx b/embedserv/source/embed/ed_idataobj.cxx
index fa3d79a3f376..2bad409194ca 100644
--- a/embedserv/source/embed/ed_idataobj.cxx
+++ b/embedserv/source/embed/ed_idataobj.cxx
@@ -294,11 +294,4 @@ STDMETHODIMP EmbedDocument_Impl::EnumDAdvise( IEnumSTATDATA ** ppenumAdvise )
return m_pDAdviseHolder->EnumAdvise( ppenumAdvise );
}
-// Fix strange warnings about some
-// ATL::CAxHostWindow::QueryInterface|AddRef|Releae functions.
-// warning C4505: 'xxx' : unreferenced local function has been removed
-#if defined(_MSC_VER)
-#pragma warning(disable: 4505)
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/embedserv/source/embed/ed_iinplace.cxx b/embedserv/source/embed/ed_iinplace.cxx
index ef2b2dcf72ba..5ca62c67f49c 100644
--- a/embedserv/source/embed/ed_iinplace.cxx
+++ b/embedserv/source/embed/ed_iinplace.cxx
@@ -84,11 +84,4 @@ STDMETHODIMP EmbedDocument_Impl::ReactivateAndUndo(void)
return E_NOTIMPL;
}
-// Fix strange warnings about some
-// ATL::CAxHostWindow::QueryInterface|AddRef|Releae functions.
-// warning C4505: 'xxx' : unreferenced local function has been removed
-#if defined(_MSC_VER)
-#pragma warning(disable: 4505)
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/embedserv/source/embed/ed_ioleobject.cxx b/embedserv/source/embed/ed_ioleobject.cxx
index 6c2b053dfdd8..fab8588fbd53 100644
--- a/embedserv/source/embed/ed_ioleobject.cxx
+++ b/embedserv/source/embed/ed_ioleobject.cxx
@@ -485,11 +485,4 @@ HRESULT EmbedDocument_Impl::OLENotifyDeactivation()
}
-// Fix strange warnings about some
-// ATL::CAxHostWindow::QueryInterface|AddRef|Releae functions.
-// warning C4505: 'xxx' : unreferenced local function has been removed
-#if defined(_MSC_VER)
-#pragma warning(disable: 4505)
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/embedserv/source/embed/ed_ipersiststr.cxx b/embedserv/source/embed/ed_ipersiststr.cxx
index b559ef91fb7e..34de2efb783f 100644
--- a/embedserv/source/embed/ed_ipersiststr.cxx
+++ b/embedserv/source/embed/ed_ipersiststr.cxx
@@ -991,11 +991,4 @@ void LockedEmbedDocument_Impl::ExecuteMethod( sal_Int16 nId )
}
}
-// Fix strange warnings about some
-// ATL::CAxHostWindow::QueryInterface|AddRef|Releae functions.
-// warning C4505: 'xxx' : unreferenced local function has been removed
-#if defined(_MSC_VER)
-#pragma warning(disable: 4505)
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/embedserv/source/embed/esdll.cxx b/embedserv/source/embed/esdll.cxx
index bb53b88005c9..911ffdc06b2a 100644
--- a/embedserv/source/embed/esdll.cxx
+++ b/embedserv/source/embed/esdll.cxx
@@ -72,10 +72,4 @@ BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID /*lpReserved*/)
return TRUE; // ok
}
-// Fix strange warnings about some
-// ATL::CAxHostWindow::QueryInterface|AddRef|Releae functions.
-// warning C4505: 'xxx' : unreferenced local function has been removed
-#if defined(_MSC_VER)
-#pragma warning(disable: 4505)
-#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/embedserv/source/embed/guid.cxx b/embedserv/source/embed/guid.cxx
index b76d851bb1e9..bdbb015a0e40 100644
--- a/embedserv/source/embed/guid.cxx
+++ b/embedserv/source/embed/guid.cxx
@@ -129,11 +129,4 @@ OUString getFilterNameFromGUID_Impl( GUID* guid )
return OUString();
}
-// Fix strange warnings about some
-// ATL::CAxHostWindow::QueryInterface|AddRef|Releae functions.
-// warning C4505: 'xxx' : unreferenced local function has been removed
-#if defined(_MSC_VER)
-#pragma warning(disable: 4505)
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/embedserv/source/embed/iipaobj.cxx b/embedserv/source/embed/iipaobj.cxx
index bfff766af90e..cec2d5b11017 100644
--- a/embedserv/source/embed/iipaobj.cxx
+++ b/embedserv/source/embed/iipaobj.cxx
@@ -114,11 +114,4 @@ STDMETHODIMP CIIAObj::EnableModeless(BOOL)
return NOERROR;
}
-// Fix strange warnings about some
-// ATL::CAxHostWindow::QueryInterface|AddRef|Releae functions.
-// warning C4505: 'xxx' : unreferenced local function has been removed
-#if defined(_MSC_VER)
-#pragma warning(disable: 4505)
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/embedserv/source/embed/intercept.cxx b/embedserv/source/embed/intercept.cxx
index 750c74a12d40..2593c3e94c0e 100644
--- a/embedserv/source/embed/intercept.cxx
+++ b/embedserv/source/embed/intercept.cxx
@@ -526,11 +526,4 @@ Interceptor::setMasterDispatchProvider(
m_xMasterDispatchProvider = NewSupplier;
}
-// Fix strange warnings about some
-// ATL::CAxHostWindow::QueryInterface|AddRef|Releae functions.
-// warning C4505: 'xxx' : unreferenced local function has been removed
-#if defined(_MSC_VER)
-#pragma warning(disable: 4505)
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/embedserv/source/embed/register.cxx b/embedserv/source/embed/register.cxx
index 85b9c4bcc11a..ca092492e681 100644
--- a/embedserv/source/embed/register.cxx
+++ b/embedserv/source/embed/register.cxx
@@ -84,10 +84,4 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL emser_component_getFactory( const sal_Char
} // extern "C"
-// Fix strange warnings about some
-// ATL::CAxHostWindow::QueryInterface|AddRef|Releae functions.
-// warning C4505: 'xxx' : unreferenced local function has been removed
-#if defined(_MSC_VER)
-#pragma warning(disable: 4505)
-#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/embedserv/source/embed/servprov.cxx b/embedserv/source/embed/servprov.cxx
index e96c178b86f8..8f365414c327 100644
--- a/embedserv/source/embed/servprov.cxx
+++ b/embedserv/source/embed/servprov.cxx
@@ -266,11 +266,4 @@ STDMETHODIMP EmbedProviderFactory_Impl::LockServer( int /*fLock*/ )
return NOERROR;
}
-// Fix strange warnings about some
-// ATL::CAxHostWindow::QueryInterface|AddRef|Releae functions.
-// warning C4505: 'xxx' : unreferenced local function has been removed
-#if defined(_MSC_VER)
-#pragma warning(disable: 4505)
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/embedserv/source/embed/syswinwrapper.cxx b/embedserv/source/embed/syswinwrapper.cxx
index 0621eb54ebb4..dd124b1278a0 100644
--- a/embedserv/source/embed/syswinwrapper.cxx
+++ b/embedserv/source/embed/syswinwrapper.cxx
@@ -460,11 +460,4 @@ LRESULT APIENTRY winwrap::HatchWndProc(
return 0L;
}
-// Fix strange warnings about some
-// ATL::CAxHostWindow::QueryInterface|AddRef|Releae functions.
-// warning C4505: 'xxx' : unreferenced local function has been removed
-#if defined(_MSC_VER)
-#pragma warning(disable: 4505)
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/embedserv/source/embed/tracker.cxx b/embedserv/source/embed/tracker.cxx
index 61338dbe4487..8375ba0777fc 100644
--- a/embedserv/source/embed/tracker.cxx
+++ b/embedserv/source/embed/tracker.cxx
@@ -822,11 +822,4 @@ void Tracker::GetModifyPointers(
}
}
-// Fix strange warnings about some
-// ATL::CAxHostWindow::QueryInterface|AddRef|Releae functions.
-// warning C4505: 'xxx' : unreferenced local function has been removed
-#if defined(_MSC_VER)
-#pragma warning(disable: 4505)
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/embedserv/source/inc/stdafx.h b/embedserv/source/inc/stdafx.h
index abfc022a935e..8ecf254a7487 100644
--- a/embedserv/source/inc/stdafx.h
+++ b/embedserv/source/inc/stdafx.h
@@ -17,7 +17,6 @@
#pragma warning(push)
#pragma warning(push, 1)
#pragma warning(disable: 4548)
-#pragma warning(disable: 4505)
#endif
#include <atlbase.h>
//You may derive a class from CComModule and use it if you want to override
diff --git a/extensions/source/activex/SOActiveX.cxx b/extensions/source/activex/SOActiveX.cxx
index 5df0c1111736..fdb312e39105 100644
--- a/extensions/source/activex/SOActiveX.cxx
+++ b/extensions/source/activex/SOActiveX.cxx
@@ -19,9 +19,6 @@
// SOActiveX.cpp : Implementation of CSOActiveX
-#pragma warning (disable:4505)
-// permanently suppress "unreferenced local function has been removed" warning
-
#pragma warning (push,1)
#pragma warning (disable:4265)
diff --git a/extensions/source/activex/SOActiveX.h b/extensions/source/activex/SOActiveX.h
index 97ec5a2cd12f..515b0ee5d2e5 100644
--- a/extensions/source/activex/SOActiveX.h
+++ b/extensions/source/activex/SOActiveX.h
@@ -24,9 +24,6 @@
#include "resource.h"
-#pragma warning (disable:4505)
- // permanently suppress "unreferenced local function has been removed" warning
-
#pragma warning (push,1)
#pragma warning (disable:4265)
diff --git a/extensions/source/activex/StdAfx2.h b/extensions/source/activex/StdAfx2.h
index 4d9ba1d7231d..484edfcf988b 100644
--- a/extensions/source/activex/StdAfx2.h
+++ b/extensions/source/activex/StdAfx2.h
@@ -35,9 +35,6 @@
#define _ATL_APARTMENT_THREADED
#define _ATL_STATIC_REGISTRY
-#pragma warning (disable:4505)
- // globally disable "unreferenced local function has been removed"
-
#pragma warning (push,1)
#pragma warning (disable:4548)
// expression before comma has no effect; expected expression with side-effect
diff --git a/extensions/source/ole/jscriptclasses.hxx b/extensions/source/ole/jscriptclasses.hxx
index 2d692a286689..281ac5f4c622 100644
--- a/extensions/source/ole/jscriptclasses.hxx
+++ b/extensions/source/ole/jscriptclasses.hxx
@@ -22,9 +22,6 @@
#include <wincrap.hxx>
-#pragma warning (disable:4505)
- // disable "unreferenced local function has been removed" globally
-
#include "comifaces.hxx"
diff --git a/extensions/source/ole/unotypewrapper.hxx b/extensions/source/ole/unotypewrapper.hxx
index ef1c422069b6..4b217f2aadba 100644
--- a/extensions/source/ole/unotypewrapper.hxx
+++ b/extensions/source/ole/unotypewrapper.hxx
@@ -21,9 +21,6 @@
#include <wincrap.hxx>
-#pragma warning (disable:4505)
- // disable "unreferenced local function has been removed" globally
-
#include "comifaces.hxx"
/* creates an UnoTypWrapper and sets the Name property to the value
diff --git a/include/sot/object.hxx b/include/sot/object.hxx
index 164402b5bc49..4ee729706a79 100644
--- a/include/sot/object.hxx
+++ b/include/sot/object.hxx
@@ -90,10 +90,6 @@ void * ClassName::Cast( const SotFactory * pFact ) \
return pRet; \
}
-#ifdef _MSC_VER
-#pragma warning(disable: 4250)
-#endif
-
struct IUnknown;
class SOT_DLLPUBLIC SotObject : virtual public SvRefBase
{
diff --git a/sal/osl/w32/path_helper.hxx b/sal/osl/w32/path_helper.hxx
index 3af00a52ac8e..fc44e25df170 100644
--- a/sal/osl/w32/path_helper.hxx
+++ b/sal/osl/w32/path_helper.hxx
@@ -17,10 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifdef _MSC_VER
-#pragma warning (disable : 4800)
-#endif
-
#ifndef _PATH_HELPER_HXX_
#define _PATH_HELPER_HXX_
diff --git a/sfx2/source/appl/appuno.cxx b/sfx2/source/appl/appuno.cxx
index 21d5c6219368..3010f6efb95f 100644
--- a/sfx2/source/appl/appuno.cxx
+++ b/sfx2/source/appl/appuno.cxx
@@ -17,10 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifdef _MSC_VER
-#pragma warning( disable : 4290 )
-#endif
-
#include "fltoptint.hxx"
#include "objshimp.hxx"
#include <sfx2/app.hxx>
diff --git a/shell/source/win32/shlxthandler/ooofilt/propspec.cxx b/shell/source/win32/shlxthandler/ooofilt/propspec.cxx
index 233cf86dca76..0860b3526a63 100644
--- a/shell/source/win32/shlxthandler/ooofilt/propspec.cxx
+++ b/shell/source/win32/shlxthandler/ooofilt/propspec.cxx
@@ -26,9 +26,6 @@
#pragma warning(push, 1)
#endif
#include <windows.h>
-#ifdef _MSC_VER
-#pragma warning(disable: 4512)
-#endif
#include <filter.h>
#if defined _MSC_VER
#pragma warning(pop)
diff --git a/vcl/win/source/window/salframe.cxx b/vcl/win/source/window/salframe.cxx
index 01d480668f04..9cd8fa2398cd 100644
--- a/vcl/win/source/window/salframe.cxx
+++ b/vcl/win/source/window/salframe.cxx
@@ -50,7 +50,7 @@
// Warning in SDK header
#ifdef _MSC_VER
-#pragma warning( disable: 4242 4244 )
+#pragma warning( disable: 4242 )
#endif
#include <win/wincomp.hxx>
#include <win/salids.hrc>