Leaked source code of windows server 2003
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

  1. /*----------------------------------------------------------------------------
  2. * Note that we don't want to use a single line comment before the warning is
  3. * disabled.
  4. *
  5. * Microsoft Windows
  6. * Copyright (C) Microsoft Corporation, 1992 - 1994.
  7. *
  8. * File: w4warn.h
  9. *
  10. * Contents: #pragmas to adjust warning levels.
  11. *
  12. *---------------------------------------------------------------------------*/
  13. /*
  14. * Level 4 warnings to suppress.
  15. */
  16. #pragma warning(disable:4001) /* nonstandard extension 'extension' was used */
  17. #pragma warning(disable:4097) /* typedef name 'type' used as synonym for class 'class' */
  18. #pragma warning(disable:4100) /* unreferenced formal parameter */
  19. #pragma warning(disable:4115) /* named type definition in parentheses */
  20. #pragma warning(disable:4134) /* conversion between pointers to members of same class */
  21. #pragma warning(disable:4152) /* nonstandard extension, function/data pointer conversion in expression */
  22. #pragma warning(disable:4200) /* nonstandard extension used : zero-sized array in struct/union */
  23. #pragma warning(disable:4201) /* nonstandard extension used : nameless struct/union */
  24. #pragma warning(disable:4204) /* nonstandard extension used : non-constant aggregate initializer */
  25. #pragma warning(disable:4209) /* nonstandard extension used : benign typedef redefinition */
  26. #pragma warning(disable:4214) /* nonstandard extension used : bit field types other than int */
  27. #pragma warning(disable:4505) /* unreferenced local function has been removed */
  28. #pragma warning(disable:4511) /* 'class' : copy constructor could not be generated */
  29. #pragma warning(disable:4512) /* 'class': assignment operator could not be generated */
  30. #pragma warning(disable:4514) /* 'function' : unreferenced inline function has been removed */
  31. #pragma warning(disable:4705) /* statement has no effect */
  32. #pragma warning(disable:4710) /* function call not expanded */
  33. #pragma warning(disable:4057) /*'const unsigned short *' differs in indirection to slightly different
  34. base types from 'unsigned shourt []' */
  35. #pragma warning(disable:4211) /* nonstandard extension used : redefined extern to static */
  36. #pragma warning(disable:4232) /* nonstandard extension used : 'x' :address of dllimport 'y' is not
  37. static, identity not guaranteed */
  38. /*
  39. * Warning 4244 is benign more often than not, so if you don't want it then
  40. * uncomment this to filter out those errors.
  41. *
  42. */
  43. #pragma warning(disable:4244) /* conversion from 'type' to 'type', possible loss of data */
  44. /*
  45. * This helps to track down "Illegal attempt to instantiate abstract class" messages
  46. */
  47. #pragma warning(error:4259) /* pure virtual function not defined */
  48. /*
  49. * Level 4 warnings that we want treated as level 3 warnings.
  50. */
  51. #pragma warning(3:4127) /* conditional expression is constant */
  52. #pragma warning(3:4702) /* unreachable code */
  53. #pragma warning(3:4706) /* assignment within conditional expression */
  54. #pragma warning(disable:4041) /* compiler limit reached: terminating browser output */