From 8b0107e452db7a418ed54ec04b1bcb0084df19b9 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 8 Apr 2004 12:13:13 +0000 Subject: [PATCH] suppress warnings during WinCE compilation git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26672 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/gsocket.c | 9 +++++++++ src/msw/gsockmsw.c | 17 +++++++++++++++-- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/src/msw/gsocket.c b/src/msw/gsocket.c index 9eb8d69513..20c11ad591 100644 --- a/src/msw/gsocket.c +++ b/src/msw/gsocket.c @@ -25,6 +25,15 @@ * warning: unreferenced formal parameter. */ # pragma warning(disable:4100) + +#ifdef __WXWINCE__ + /* + "unreferenced inline function has been removed": this is not + suppressed by push above as it is given at the end of the + compilation unit + */ +# pragma warning(disable:4514) +#endif /* __WXWINCE__ */ #endif /* _MSC_VER */ #include diff --git a/src/msw/gsockmsw.c b/src/msw/gsockmsw.c index 246ae71c82..4ff547fe94 100644 --- a/src/msw/gsockmsw.c +++ b/src/msw/gsockmsw.c @@ -24,7 +24,7 @@ * RPCNOTIFICATION_ROUTINE */ #ifdef _MSC_VER -# pragma warning(disable:4115) /* named type definition in parentheses */ +# pragma warning(disable:4115) /* named type definition in parentheses */ #endif /* This needs to be before the wx/defs/h inclusion @@ -32,7 +32,20 @@ */ #ifdef __WXWINCE__ -#include + /* windows.h results in tons of warnings at max warning level */ +# ifdef _MSC_VER +# pragma warning(push, 1) + /* + "unreferenced inline function has been removed": this is not + suppressed by push above as it is given at the end of the + compilation unit + */ +# pragma warning(disable:4514) +# endif +# include +# ifdef _MSC_VER +# pragma warning(pop) +# endif #endif #ifndef __GSOCKET_STANDALONE__ -- 2.47.2