as Gisle Vanem noted that MingW doesn't "like" the #pragmas:

change #ifdef _WIN32 -> #ifdef _MSC_VER around pragma warnings

svn path=/trunk/; revision=21228
This commit is contained in:
Ulf Lamping 2007-03-27 21:09:34 +00:00
parent cc061b5521
commit a66bf7f559
7 changed files with 7 additions and 7 deletions

View File

@ -49,7 +49,7 @@
#ifdef _WIN32
#ifdef _MSC_VER
/* disable: "warning C4146: unary minus operator applied to unsigned type, result still unsigned" */
#pragma warning(disable:4146)
#endif

View File

@ -22,7 +22,7 @@
#include "packet-windows-common.h"
#include "packet-dcerpc-srvsvc.h"
#ifdef _WIN32
#ifdef _MSC_VER
/* disable: warning C4101: 'xy' : unreferenced local variable */
#pragma warning(disable:4101)
/* disable: warning C4013: 'xy' undefined; assuming extern returning int */

View File

@ -13,7 +13,7 @@
#include "config.h"
#endif
#ifdef _WIN32
#ifdef _MSC_VER
/* disable: warning C4005: 'xx' : macro redefinition */
#pragma warning(disable:4005)
/* disable: warning C4013: 'initshutdown_dissect_struct_String' undefined; assuming extern returning int */

View File

@ -22,7 +22,7 @@
#include "packet-windows-common.h"
#include "packet-dcerpc-wzcsvc.h"
#ifdef _WIN32
#ifdef _MSC_VER
/* disable: warning C4101: 'xy' : unreferenced local variable */
#pragma warning(disable:4101)
#endif

View File

@ -67,7 +67,7 @@
#define PORT_MEGACO_TXT 2944
#define PORT_MEGACO_BIN 2945
#ifdef _WIN32
#ifdef _MSC_VER
/* disable: warning C4013: 'xy' undefined; assuming extern returning int */
#pragma warning(disable:4013)
#endif

View File

@ -55,7 +55,7 @@
#define PSNAME "RRLP"
#define PFNAME "rrlp"
#ifdef _WIN32
#ifdef _MSC_VER
/* disable: "warning C4146: unary minus operator applied to unsigned type, result still unsigned" */
#pragma warning(disable:4146)
#endif

View File

@ -36,7 +36,7 @@
#include <epan/uat.h>
#include <epan/emem.h>
#ifdef _WIN32
#ifdef _MSC_VER
/* disable: warning C4090: 'XY' : different 'const' qualifiers */
#pragma warning(disable:4090)
#endif