suppress warnings during WinCE compilation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26672 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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 <winsock.h>
|
||||
|
||||
@@ -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>
|
||||
/* 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 <windows.h>
|
||||
# ifdef _MSC_VER
|
||||
# pragma warning(pop)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef __GSOCKET_STANDALONE__
|
||||
|
||||
Reference in New Issue
Block a user