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.

67 lines
2.2 KiB

  1. #include <warning.h>
  2. #pragma warning (disable: 4101 4201 4100 4244 4245 4706 4786 4267 4701 4115 4509 4214 4057 4127 4189 4702)
  3. #pragma warning (disable: 4514 4512 4663)
  4. /**************************************************************************
  5. DESCRIPTION OF WARNINGS THAT ARE DISABLED
  6. 4101 unreferenced local variable
  7. *4201 nonstandard extension: nameless struct or union
  8. *4214 non standard extension: bit field types other than int
  9. *4115 named type definition in paranthesis -- does not like THSTATE
  10. *4127 conditional expression is a constant
  11. 4100 ureferenced formal parameter
  12. *4189 local variable is initialized but not referenced
  13. *4057 slightly different base types -- char * and unsigned char *
  14. 4244 conversion from into to char --loss of data -- I saw a few of these and disabled in an effort to get the code to compile -- need further investigation.
  15. 4245 conversion from long to unsigned long -- signed/unsigned mismatch
  16. *4509 non standard extension used -- uses SEH and has destructor
  17. 4706 assignment within a conditional expression
  18. 4702 *unreacheable code
  19. *4701 var used before initializing
  20. 4786 identifier truncated to 255 chars in debug information
  21. 4267 Signal to noise ratio of this warning is pretty poor -- too many
  22. '=' conversion from size_t to unsigned long, possible loss of data
  23. The problem is that size_t in 64 bit is defined as a 64 bit int,
  24. while ulong is still a 32 bit int. In practice most places this is
  25. used -- e.g sizeof operator, or string len etc the value will fit
  26. in a 32 bit ULONG
  27. 4514 unreferenced inline function has been removed
  28. 4512 assignment operator could not be generated
  29. 4663 C++ language change: to explicitly specialize class template 'identifier' use the following syntax
  30. VALID WARNINGS ENCOUNTERED
  31. ( 4267, 4701, 4702 and 4706 can also be included in
  32. this list if desired )
  33. 4306 TypeCast -- conversion from unsigned short to unsigned short *
  34. 4305 Typecase -- truncation from unsigned short * to unsigned short
  35. 4312 TypeCase -- Conversion from unsigned long to void * __ptr64 of greater size
  36. ****************************************************************************/