[Libreoffice-commits] core.git: embedserv/source extensions/source include/sot sal/osl sfx2/source shell/source vcl/win
Thomas Arnhold
thomas at arnhold.org
Sat May 10 04:03:51 PDT 2014
embedserv/source/embed/docholder.cxx | 7 -------
embedserv/source/embed/ed_idataobj.cxx | 7 -------
embedserv/source/embed/ed_iinplace.cxx | 7 -------
embedserv/source/embed/ed_ioleobject.cxx | 7 -------
embedserv/source/embed/ed_ipersiststr.cxx | 7 -------
embedserv/source/embed/esdll.cxx | 6 ------
embedserv/source/embed/guid.cxx | 7 -------
embedserv/source/embed/iipaobj.cxx | 7 -------
embedserv/source/embed/intercept.cxx | 7 -------
embedserv/source/embed/register.cxx | 6 ------
embedserv/source/embed/servprov.cxx | 7 -------
embedserv/source/embed/syswinwrapper.cxx | 7 -------
embedserv/source/embed/tracker.cxx | 7 -------
embedserv/source/inc/stdafx.h | 1 -
extensions/source/activex/SOActiveX.cxx | 3 ---
extensions/source/activex/SOActiveX.h | 3 ---
extensions/source/activex/StdAfx2.h | 3 ---
extensions/source/ole/jscriptclasses.hxx | 3 ---
extensions/source/ole/unotypewrapper.hxx | 3 ---
include/sot/object.hxx | 4 ----
sal/osl/w32/path_helper.hxx | 4 ----
sfx2/source/appl/appuno.cxx | 4 ----
shell/source/win32/shlxthandler/ooofilt/propspec.cxx | 3 ---
vcl/win/source/window/salframe.cxx | 2 +-
24 files changed, 1 insertion(+), 121 deletions(-)
New commits:
commit c327acab9e5a49b0967c15adb923d99fed5bbc1c
Author: Thomas Arnhold <thomas at arnhold.org>
Date: Sat May 10 10:18:10 2014 +0200
remove globally disabled warnings from source files
Change-Id: Ic7b092a24b4d1e48ca11e53b507da5c2bfdeabe8
diff --git a/embedserv/source/embed/docholder.cxx b/embedserv/source/embed/docholder.cxx
index f09a0b5..1b2732c 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 fa3d79a..2bad409 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 ef2b2dc..5ca62c6 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 6c2b053..fab8588 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 b559ef9..34de2ef 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 bb53b88..911ffdc 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 b76d851..bdbb015 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 bfff766..cec2d5b 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 750c74a..2593c3e 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 85b9c4b..ca09249 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 e96c178..8f36541 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 0621eb5..dd124b1 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 61338db..8375ba0 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 abfc022..8ecf254 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 5df0c11..fdb312e 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 97ec5a2..515b0ee 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 4d9ba1d..484edfc 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 2d692a2..281ac5f 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 ef1c422..4b217f2 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 164402b..4ee7297 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 3af00a5..fc44e25 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 21d5c62..3010f6e 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 233cf86..0860b35 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 01d4806..9cd8fa2 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>
More information about the Libreoffice-commits
mailing list