cURL / Mailing Lists / curl-users / Single Mail

curl-users

[ curl-Bugs-587770 ] build fails on MSVC with high warn level

From: <noreply_at_sourceforge.net>
Date: Sun, 28 Jul 2002 12:09:53 -0700

Bugs item #587770, was opened at 2002-07-28 12:09
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=587770&group_id=976

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: build fails on MSVC with high warn level

Initial Comment:
I'm enforcing strict warnings in my project and since I
wanted to statically link cURL, I could not build on
MSVC until I added a few pragmas to disable
warnings. Here are the patches:

--- ../curl-org/curl-7.9.8/lib/config-win32.h Wed Jun 5
16:14:26 2002
+++ ./lib/config-win32.h Fri Jul 26 21:45:00 2002
@@ -218,4 +218,6 @@
                                    been initialized */
 #pragma warning (disable: 4715) /* ToHour' :
not all control paths retur
n a
                                    value */
+#pragma warning (disable: 4115) /* warning
C4115: '_RPC_ASYNC_STATE' : named ty
pe definition in parentheses */
+
 #endif

--- ../curl-org/curl-7.9.8/lib/dllinit.c Wed Feb 20
12:38:14 2002
+++ ./lib/dllinit.c Fri Jul 26 21:46:36 2002
@@ -32,6 +32,7 @@

  */

+#pragma warning (disable: 4100) /*
unreferenced formal parameter */

 #define WIN32_LEAN_AND_MEAN
 #include <windows.h>

--- ../curl-org/curl-7.9.8/lib/ftp.c Thu Jun 13
11:21:08 2002
+++ ./lib/ftp.c Fri Jul 26 21:46:36 2002
@@ -23,6 +23,8 @@

 #include "setup.h"

+#pragma warning (disable: 4206)
+
 /* MN 06/07/02 */
 #ifndef CURL_DISABLE_FTP
 #include <stdio.h>

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=587770&group_id=976

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-07-28