Source code of Windows XP (NT5)
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.

77 lines
4.1 KiB

  1. #pragma warning(3:4092) // sizeof returns 'unsigned long'
  2. #pragma warning(4:4096) // '__cdecl' must be used with '...'
  3. #pragma warning(4:4121) // structure is sensitive to alignment
  4. #pragma warning(3:4125) // decimal digit in octal sequence
  5. #pragma warning(3:4130) // logical operation on address of string constant
  6. #pragma warning(3:4132) // const object should be initialized
  7. #pragma warning(4:4206) // Source File is empty
  8. #pragma warning(4:4101) // Unreferenced local variable
  9. #pragma warning(4:4208) // delete[exp] - exp evaluated but ignored
  10. #pragma warning(3:4212) // function declaration used ellipsis
  11. #pragma warning(3:4242) // convertion possible loss of data
  12. #if defined(_M_AMD64)
  13. #pragma warning(disable:4251) // ****** temp ******
  14. #pragma warning(disable:4407) // ****** temp ******
  15. #elif defined(_M_IA64)
  16. #pragma warning(disable:4407) // NTBUG#476234: Silent codegen bug is a warning
  17. // with VC7.1. Jason Shirk has fixed pdlparse in
  18. // the VC code base, but IE won't fix their
  19. // version until post server.
  20. #pragma warning(disable:4714) // function marked as __forceinline not inlined
  21. // (VC7.1: inlining is not allowed in finally)
  22. #endif
  23. #pragma warning(4:4267) // convertion from size_t to smaller type
  24. #pragma warning(4:4312) // conversion to type of greater size
  25. #pragma warning(disable:4324) // structure padded due to __declspec(align())
  26. #pragma warning(error:4700) // Local used w/o being initialized
  27. #pragma warning(error:4259) // pure virtual function was not defined
  28. #pragma warning(disable:4071) // no function prototype given - formals unspecified
  29. #pragma warning(error:4013) // function' undefined - assuming extern returning int
  30. #pragma warning(error:4551) // Function call missing argument list
  31. #pragma warning(error:4806) // unsafe operation involving type 'bool'
  32. #pragma warning(4:4509) // use of SEH with destructor
  33. #pragma warning(4:4177) // pragma data_seg s/b at global scope
  34. #pragma warning(disable:4274) // #ident ignored
  35. #pragma warning(disable:4786) // identifier was truncated to 255 chararcers in debug information.
  36. #pragma warning(disable:4503) // decorated name length exceeded, name was truncated.
  37. #pragma warning(disable:4263) // Derived override doesn't match base - who cares...
  38. #pragma warning(disable:4264) // base function is hidden - again who cares.
  39. #pragma warning(disable:4710) // Function marked as inline - wasn't
  40. #pragma warning(disable:4917) // A GUID can only be associated with a class, interface or namespace
  41. #pragma warning(error:4552) // <<, >> ops used to no effect (probably missing an = sign)
  42. #pragma warning(error:4553) // == op used w/o effect (probably s/b an = sign)
  43. #pragma warning(3:4288) // nonstandard extension used (loop counter)
  44. #pragma warning(3:4532) // jump out of __finally block
  45. #pragma warning(error:4312) // cast of 32-bit int to 64-bit ptr
  46. #pragma warning(error:4296) // expression is always true/false
  47. #if _MSC_VER > 1300
  48. #pragma warning(disable:4197) // illegal use of const/volatile: qualifier ignored (disabled until sources fixed)
  49. #pragma warning(disable:4675) // picked overload found via Koenig lookup
  50. #pragma warning(disable:4356) // static member cannot be initialized via derived class
  51. #endif
  52. #if 0
  53. #pragma warning(3:4100) // Unreferenced formal parameter
  54. #pragma warning(3:4701) // local may be used w/o init
  55. #pragma warning(3:4702) // Unreachable code
  56. #pragma warning(3:4705) // Statement has no effect
  57. #pragma warning(3:4706) // assignment w/i conditional expression
  58. #pragma warning(3:4709) // command operator w/o index expression
  59. #endif
  60. #ifndef __cplusplus
  61. #undef try
  62. #undef except
  63. #undef finally
  64. #undef leave
  65. #define try __try
  66. #define except __except
  67. #define finally __finally
  68. #define leave __leave
  69. #endif
  70. #if _MSC_VER < 1400
  71. #pragma warning(disable: 4068) // turn off unknown pragma warning so prefast pragmas won't show
  72. // show up in build.wrn/build.err
  73. #endif