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.

102 lines
6.9 KiB

  1. // This first line keeps us at least as stringent as the build:
  2. // - from %_ntroot%\base\public\sdk\inc\warning.h
  3. //
  4. #include <warning.h>
  5. /*++
  6. Copyright (c) 2001 Microsoft Corporation
  7. Module Name:
  8. RHSWarnings.h
  9. Abstract:
  10. This header turns on warnings for Level 3 that are normally
  11. associated with Level 4.
  12. Author:
  13. Conor Morrison X-1 17-Jan-2001
  14. Revision History:
  15. --*/
  16. #ifndef IA64
  17. #if 0
  18. //! Would like to get these back in...
  19. #pragma warning ( 3 : 4701 ) // local variable 'name' may be used without having been initialized
  20. #pragma warning ( 3 : 4706 ) // assignment within conditional expression
  21. // These warnings turned off to keep the noise down!
  22. //
  23. #pragma warning ( 3 : 4100 ) // 'identifier' : unreferenced formal parameter
  24. #pragma warning ( 3 : 4201 ) // nonstandard extension used : nameless struct/union
  25. #pragma warning ( 3 : 4127 ) // conditional expression is constant
  26. #pragma warning ( 3 : 4211 ) // nonstandard extension used : redefined extern to static
  27. #pragma warning ( 3 : 4232 ) // nonstandard extension used : 'identifier' : address of dllimport 'dllimport' is not static, identity not guaranteed
  28. #pragma warning ( 3 : 4214 ) // nonstandard extension used : bit field types other than int
  29. #pragma warning ( 3 : 4057 ) // 'operator' : 'identifier1' indirection to slightly different base types from 'identifier2'
  30. #pragma warning ( 3 : 4245 ) // 'conversion' : conversion from 'type1' to 'type2', signed/unsigned mismatch
  31. #pragma warning ( 3 : 4152 ) // non standard extension, function/data ptr conversion in expression
  32. #pragma warning ( 3 : 4514 ) // unreferenced inline/local function has been removed
  33. #pragma warning ( 3 : 4505 ) // 'function' : unreferenced local function has been removed
  34. #pragma warning ( 3 : 4131 ) // 'function' : uses old-style declarator
  35. #endif
  36. #if 1
  37. #pragma warning ( 3 : 4239 ) // nonstandard extension used : 'token' : conversion from 'type' to 'type'
  38. #pragma warning ( 3 : 4019 ) // empty statement at global scope
  39. #pragma warning ( 3 : 4032 ) // formal parameter 'number' has different type when promoted
  40. #pragma warning ( 3 : 4061 ) // enumerate 'identifier' in switch of enum 'identifier' is not explicitly handled by a case label
  41. #pragma warning ( 3 : 4092 ) // sizeof returns 'unsigned long'
  42. #pragma warning ( 3 : 4112 ) // #line requires an integer between 1 and 32767
  43. #pragma warning ( 3 : 4121 ) // 'symbol' : alignment of a member was sensitive to packing
  44. #pragma warning ( 3 : 4125 ) // decimal digit terminates octal escape sequence
  45. #pragma warning ( 3 : 4128 ) // storage-class specifier after type
  46. #pragma warning ( 3 : 4130 ) // 'operator ' : logical operation on address of string constant
  47. #pragma warning ( 3 : 4132 ) // 'object' : const object should be initialized
  48. #pragma warning ( 3 : 4134 ) // conversion between pointers to members of same class
  49. #pragma warning ( 3 : 4200 ) // nonstandard extension used : zero-sized array in struct/union
  50. #pragma warning ( 3 : 4202 ) // nonstandard extension used : '...': prototype parameter in name list illegal
  51. #pragma warning ( 3 : 4206 ) // nonstandard extension used : translation unit is empty
  52. #pragma warning ( 3 : 4207 ) // nonstandard extension used : extended initializer form
  53. #pragma warning ( 3 : 4208 ) // nonstandard extension used : delete [exp] - exp evaluated but ignored
  54. #pragma warning ( 3 : 4209 ) // nonstandard extension used : benign typedef redefinition
  55. #pragma warning ( 3 : 4210 ) // nonstandard extension used : function given file scope
  56. #pragma warning ( 3 : 4212 ) // nonstandard extension used : function declaration used ellipsis
  57. #pragma warning ( 3 : 4213 ) // nonstandard extension used : cast on l-value
  58. #pragma warning ( 3 : 4220 ) // varargs matches remaining parameters
  59. #pragma warning ( 3 : 4221 ) // nonstandard extension used : 'identifier' : cannot be initialized using address of automatic variable
  60. #pragma warning ( 3 : 4223 ) // nonstandard extension used : non-lvalue array converted to pointer
  61. #pragma warning ( 3 : 4233 ) // nonstandard extension used : 'keyword' keyword only supported in C++, not C
  62. #pragma warning ( 3 : 4234 ) // nonstandard extension used: 'keyword' keyword reserved for future use
  63. #pragma warning ( 3 : 4235 ) // nonstandard extension used : 'keyword' keyword not supported in this product
  64. #pragma warning ( 3 : 4236 ) // nonstandard extension used : 'keyword' is an obsolete keyword, see documentation for __declspec(dllexport )
  65. #pragma warning ( 3 : 4238 ) // nonstandard extension used : class rvalue used as lvalue
  66. #pragma warning ( 3 : 4244 ) // 'conversion' conversion from 'type1' to 'type2', possible loss of data
  67. #pragma warning ( 3 : 4268 ) // 'identifier' : 'const' static/global data initialized with compiler generated default constructor fills the object with zeros
  68. #pragma warning ( 3 : 4355 ) // 'this' : used in base member initializer list
  69. #pragma warning ( 3 : 4504 ) // type still ambiguous after parsing 'number' tokens, assuming declaration
  70. #pragma warning ( 3 : 4507 ) // explicit linkage specified after default linkage was used
  71. #pragma warning ( 3 : 4515 ) // 'namespace' : namespace uses itself
  72. #pragma warning ( 3 : 4516 ) // 'class::symbol' : access-declarations are deprecated; member using-declarations provide a better alternative
  73. #pragma warning ( 3 : 4517 ) // access-declarations are deprecated; member using-declarations provice a better alternative
  74. #pragma warning ( 3 : 4611 ) // interaction between '_setjmp' and C++ object destruction is non-portable
  75. #pragma warning ( 3 : 4663 ) // C++ language change: to explicitly specialize class template 'identifier' use the following syntax:
  76. #pragma warning ( 3 : 4665 ) // C++ language change: assuming 'declaration' is an explicit specialization of a function template
  77. #pragma warning ( 3 : 4670 ) // 'identifier' : this base class is inaccessible
  78. #pragma warning ( 3 : 4671 ) // 'identifier' : the copy constructor is inaccessible
  79. #pragma warning ( 3 : 4672 ) // 'identifier1' : ambiguous. First seen as 'identifier2'
  80. #pragma warning ( 3 : 4673 ) // throwing 'identifier' the following types will not be considered at the catch site
  81. #pragma warning ( 3 : 4674 ) // 'identifier' : the destructor is inaccessible
  82. #pragma warning ( 3 : 4699 ) // Note: pre-compiled header usage information message
  83. #pragma warning ( 3 : 4705 ) // statement has no effect
  84. #pragma warning ( 3 : 4709 ) // comma operator within array index expression
  85. #pragma warning ( 3 : 4727 ) // conditional expression is constant
  86. //#pragma warning ( 3 : 4710 ) // 'function' : function not inlined
  87. #endif
  88. #endif // ifndef IA64