]> git.saurik.com Git - wxWidgets.git/commitdiff
suppress warnings during WinCE compilation
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 8 Apr 2004 12:13:13 +0000 (12:13 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 8 Apr 2004 12:13:13 +0000 (12:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26672 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/gsocket.c
src/msw/gsockmsw.c

index 9eb8d695138a1d2882960db67ce807148f5f73cf..20c11ad5913f15ba5986a4f701bad9cc905a16fe 100644 (file)
     * 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>
index 246ae71c82b3f0066a621dc1156e160734f0ce8d..4ff547fe94c155ab5cf04fa68bec0c22d710cce7 100644 (file)
@@ -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
  */
 
 #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__