diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-08-24 07:43:24 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-08-24 07:43:24 +0000 |
commit | 73417b59c7c8afe32578694e0e9bf05a5f684202 (patch) | |
tree | ea98c252e0e023ed42513ca55f1b7023ba24e9dc | |
parent | f4e2774ab81bd1b25b7a2e78222450681749182c (diff) |
T. Bharath's patch. It is kind of dirty, as it #pragma aways a whole bunch
of compiler warnings, but I guess they make the life somewhat easier to live
for a ms dude compiling this. For a rainy day: remove the pragmas and correct
the source code that cause the warnings!
-rw-r--r-- | config-win32.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/config-win32.h b/config-win32.h index 28c461ef9..465769296 100644 --- a/config-win32.h +++ b/config-win32.h @@ -101,6 +101,9 @@ /* Define if you have the <alloca.h> header file. */ /*#define HAVE_ALLOCA_H 1*/ +/* Define if you have the malloc.h file. */ +#define HAVE_MALLOC_H 1 + /* Define if you have the <arpa/inet.h> header file. */ #define HAVE_ARPA_INET_H 1 @@ -185,3 +188,28 @@ #define HAVE_UNISTD_H 1 #endif + +/************************************************** + *This is to eliminate the warnings when compiled * + * using MS VC++ compiler * + **************************************************/ +#ifdef _MSC_VER + +#pragma warning (disable: 4244) /* truncation from 'const int' to 'char' */ +#pragma warning (disable: 4127) /* conditional expression is constant */ +#pragma warning (disable: 4706) /* assignment within conditional expression */ +#pragma warning (disable: 4761) /* integral size mismatch in argument */ +#pragma warning (disable: 4101) /* unreferenced local variable */ +#pragma warning (disable: 4131) /* uses old-style declarator */ +#pragma warning (disable: 4057) /* const char *' differs in indirection to + slightly different base types from + 'unsigned char [x] */ +#pragma warning (disable: 4100) /* unreferenced formal parameter */ +#pragma warning (disable: 4055) /* type cast' : from data pointer 'void *' to + function pointer + 'void *(__cdecl *)(char *,int ) */ +#pragma warning (disable: 4701) /* local variable may be used without having + been initialized */ +#pragma warning (disable: 4715) /* ToHour' : not all control paths return a + value */ +#endif |