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.

79 lines
2.3 KiB

  1. //+-------------------------------------------------------------------------
  2. // Microsoft OLE
  3. // Copyright (C) Microsoft Corporation, 1994 - 1995.
  4. //
  5. // File: killwarn.hxx
  6. //
  7. // Contents: Pragma's to kill specific warnings at W4
  8. //
  9. // History: 28-Nov-94 DeanE Created
  10. //--------------------------------------------------------------------------
  11. #ifndef __KILLWARN_HXX__
  12. #define __KILLWARN_HXX__
  13. //
  14. // Quotes taken from vc user's manual
  15. //
  16. // Turn off: unreferenced inline function has been removed
  17. #pragma warning(disable: 4514)
  18. // nonstandard extension used : nameless struct/union
  19. //
  20. // Microsoft C/C++ allows structure declarations to be specified without a
  21. // declarator when they are members of another structure or union.
  22. // The following is an example of this error:
  23. //
  24. // struct S
  25. // {
  26. // float y;
  27. // struct
  28. // {
  29. // int a, b, c; // warning
  30. // };
  31. // } *p_s;
  32. //
  33. //
  34. // This extension can prevent your code from being portable to other
  35. // compilers and will generate an error under the /Za command-line option.
  36. #pragma warning(disable: 4201)
  37. // 'identifier' : inconsistent DLL linkage. dllexport assumed
  38. //
  39. // The specified member function was declared in a class with dllexport
  40. // linkage, and then was imported. This warning can also be caused by
  41. // declaring a member function in a class with dllimport linkage as neither
  42. // imported nor static nor inline.
  43. //
  44. // The function was compiled as dllexport.
  45. #pragma warning(disable: 4273)
  46. // 'class' : assignment operator could not be generated
  47. //
  48. // The compiler was unable to generate a default constructor for the given
  49. // class. No constructor was created.
  50. //
  51. // This warning can be caused by having an assignment operator for the
  52. // base class that is not accessible by the derived class.
  53. //
  54. // This warning can be avoided by specifying a user-defined assignment
  55. // operator for the class.
  56. #pragma warning(disable: 4512)
  57. // 'function': function not expanded
  58. //
  59. // The given function was selected for inline expansion but the compiler did
  60. // not perform the inlining.
  61. #pragma warning(disable:4710)
  62. // trigraph not being substituted
  63. #pragma warning (disable: 4110)
  64. #ifdef _MAC
  65. // alignment of a memeber was sensitive to packing
  66. #pragma warning (disable: 4121)
  67. #endif // _MAC
  68. #endif // __KILLWARN_HXX__