summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-06-20 03:20:56 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-06-20 03:20:56 +0000
commit7160a15b08c82b38edc1a55ae08ea4911e02b4fd (patch)
tree81a7abf1b09e39f28ed2a08a16d7886042e20df1
parent360f57ea02635693b923f54c59f15d6578bd8cf9 (diff)
INTEGRATION: CWS warnings01 (1.18.94); FILE MERGED
2005/11/07 19:43:09 pl 1.18.94.3: RESYNC: (1.19-1.20); FILE MERGED 2005/09/23 00:59:07 sb 1.18.94.2: RESYNC: (1.18-1.19); FILE MERGED 2005/09/20 12:57:19 sb 1.18.94.1: #i53898# Globally disable problematic warnings.
-rw-r--r--sal/osl/w32/module.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/sal/osl/w32/module.c b/sal/osl/w32/module.c
index 7bb8d7a9f..88498019a 100644
--- a/sal/osl/w32/module.c
+++ b/sal/osl/w32/module.c
@@ -4,9 +4,9 @@
*
* $RCSfile: module.c,v $
*
- * $Revision: 1.20 $
+ * $Revision: 1.21 $
*
- * last change: $Author: rt $ $Date: 2005-10-17 14:52:24 $
+ * last change: $Author: hr $ $Date: 2006-06-20 04:20:56 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -103,7 +103,10 @@ void* SAL_CALL osl_getSymbol(oslModule Module, rtl_uString *strSymbolName)
be in this case unavoidable because the API has to stay
compitable we need to keep this function which returns a
void* by definition */
+#pragma warning(push)
+#pragma warning(disable:4054)
return (void*)(osl_getFunctionSymbol(Module, strSymbolName));
+#pragma warning(pop)
}
/*****************************************************************************/
@@ -220,7 +223,9 @@ static sal_Bool SAL_CALL _osl_addressGetModuleURL_Windows( void *pv, rtl_uString
/* Implementation for Windows NT, 2K and XP (2K and XP could use the above method too) */
/***************************************************************************************/
+#pragma warning(push,1) /* disable warnings within system headers */
#include <imagehlp.h>
+#pragma warning(pop)
typedef BOOL (WINAPI *SymInitialize_PROC)(
HANDLE hProcess,
@@ -272,7 +277,7 @@ static sal_Bool SAL_CALL _osl_addressGetModuleURL_NT4( void *pv, rtl_uString **p
{
IMAGEHLP_MODULE ModuleInfo;
CHAR szModuleFileName[MAX_PATH];
- LPCSTR lpSearchPath = NULL;
+ LPSTR lpSearchPath = NULL;
if ( GetModuleFileNameA( NULL, szModuleFileName, sizeof(szModuleFileName) ) )
{
@@ -424,7 +429,10 @@ sal_Bool SAL_CALL osl_getModuleURLFromFunctionAddress( oslGenericFunction addr,
not allowed according to the C/C++ standards. In this case
it is unavoidable because we have to stay compatible we
cannot remove any function. */
+#pragma warning(push)
+#pragma warning(disable:4054)
return osl_getModuleURLFromAddress((void*)addr, ppLibraryUrl);
+#pragma warning(pop)
}