summaryrefslogtreecommitdiffstats
path: root/Source/CTest/Curl
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-05-01 15:55:57 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-05-01 15:55:57 (GMT)
commite5af515db42a73056b8c07f69bda15be1476bc98 (patch)
tree565508b91c7dd0a70f9652517f35eeb7a4e99cd5 /Source/CTest/Curl
parent9d6ee55fdf357fde9e748f30e6b859fca2dea44e (diff)
downloadCMake-e5af515db42a73056b8c07f69bda15be1476bc98.zip
CMake-e5af515db42a73056b8c07f69bda15be1476bc98.tar.gz
CMake-e5af515db42a73056b8c07f69bda15be1476bc98.tar.bz2
ENH: Ignore some warnings on Visual Studio
Diffstat (limited to 'Source/CTest/Curl')
-rw-r--r--Source/CTest/Curl/setup.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/Source/CTest/Curl/setup.h b/Source/CTest/Curl/setup.h
index 0612df4..d4b66d0 100644
--- a/Source/CTest/Curl/setup.h
+++ b/Source/CTest/Curl/setup.h
@@ -35,7 +35,7 @@
#define CURL_DISABLE_GOPHER
#endif
-#if !defined(WIN32) && defined(__WIN32__)
+#if !defined(WIN32) && (defined(__WIN32__) || defined(_WIN32))
/* This should be a good Borland fix. Alexander J. Oss told us! */
#define WIN32
#endif
@@ -122,6 +122,15 @@ defined(HAVE_LIBSSL) && defined(HAVE_LIBCRYPTO)
*/
#ifdef WIN32
+/* Disable unnecessary warnings on Visual Studio */
+#ifdef _MSC_VER
+#pragma warning ( disable : 4127 )
+#pragma warning ( disable : 4514 )
+#pragma warning ( disable : 4706 )
+#pragma warning ( disable : 4131 ) /* Old style declaration */
+#pragma warning ( disable : 4055 ) /* Cast void*(*)() to void* */
+struct _RPC_ASYNC_STATE;
+#endif
#if !defined(__GNUC__) || defined(__MINGW32__)
#define sclose(x) closesocket(x)
#define sread(x,y,z) recv(x,y,z,0)
@@ -174,5 +183,4 @@ typedef struct in_addr Curl_ipconnect;
#endif
-
#endif /* __CONFIG_H */