You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
3.7 KiB
62 lines
3.7 KiB
/*----------------------------------------------------------------------------
|
|
* Note that we don't want to use a single line comment before the warning is
|
|
* disabled.
|
|
*
|
|
* Microsoft Windows
|
|
* Copyright (C) Microsoft Corporation, 1992 - 1994.
|
|
*
|
|
* File: w4warn.h
|
|
*
|
|
* Contents: #pragmas to adjust warning levels.
|
|
*
|
|
*---------------------------------------------------------------------------*/
|
|
|
|
/*
|
|
* Level 4 warnings to suppress.
|
|
*/
|
|
|
|
#pragma warning(disable:4001) /* nonstandard extension 'extension' was used */
|
|
#pragma warning(disable:4097) /* typedef name 'type' used as synonym for class 'class' */
|
|
#pragma warning(disable:4100) /* unreferenced formal parameter */
|
|
#pragma warning(disable:4115) /* named type definition in parentheses */
|
|
#pragma warning(disable:4134) /* conversion between pointers to members of same class */
|
|
#pragma warning(disable:4152) /* nonstandard extension, function/data pointer conversion in expression */
|
|
#pragma warning(disable:4200) /* nonstandard extension used : zero-sized array in struct/union */
|
|
#pragma warning(disable:4201) /* nonstandard extension used : nameless struct/union */
|
|
#pragma warning(disable:4204) /* nonstandard extension used : non-constant aggregate initializer */
|
|
#pragma warning(disable:4209) /* nonstandard extension used : benign typedef redefinition */
|
|
#pragma warning(disable:4214) /* nonstandard extension used : bit field types other than int */
|
|
#pragma warning(disable:4505) /* unreferenced local function has been removed */
|
|
#pragma warning(disable:4511) /* 'class' : copy constructor could not be generated */
|
|
#pragma warning(disable:4512) /* 'class': assignment operator could not be generated */
|
|
#pragma warning(disable:4514) /* 'function' : unreferenced inline function has been removed */
|
|
#pragma warning(disable:4705) /* statement has no effect */
|
|
#pragma warning(disable:4710) /* function call not expanded */
|
|
#pragma warning(disable:4057) /*'const unsigned short *' differs in indirection to slightly different
|
|
base types from 'unsigned shourt []' */
|
|
#pragma warning(disable:4211) /* nonstandard extension used : redefined extern to static */
|
|
#pragma warning(disable:4232) /* nonstandard extension used : 'x' :address of dllimport 'y' is not
|
|
static, identity not guaranteed */
|
|
|
|
/*
|
|
* Warning 4244 is benign more often than not, so if you don't want it then
|
|
* uncomment this to filter out those errors.
|
|
*
|
|
*/
|
|
#pragma warning(disable:4244) /* conversion from 'type' to 'type', possible loss of data */
|
|
|
|
/*
|
|
* This helps to track down "Illegal attempt to instantiate abstract class" messages
|
|
*/
|
|
|
|
#pragma warning(error:4259) /* pure virtual function not defined */
|
|
|
|
/*
|
|
* Level 4 warnings that we want treated as level 3 warnings.
|
|
*/
|
|
|
|
#pragma warning(3:4127) /* conditional expression is constant */
|
|
#pragma warning(3:4702) /* unreachable code */
|
|
#pragma warning(3:4706) /* assignment within conditional expression */
|
|
|
|
#pragma warning(disable:4041) /* compiler limit reached: terminating browser output */
|