ThirdPartyHeadersBegin.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #if defined(_MSC_VER)
  2. #pragma warning(push, 0)
  3. #pragma warning(disable : 4191)
  4. #pragma warning(disable : 4242)
  5. #pragma warning(disable : 4263)
  6. #pragma warning(disable : 4264)
  7. #pragma warning(disable : 4265)
  8. #pragma warning(disable : 4266)
  9. #pragma warning(disable : 4302)
  10. #pragma warning(disable : 4702)
  11. #pragma warning(disable : 4715)
  12. #pragma warning(disable : 4905)
  13. #pragma warning(disable : 4906)
  14. #pragma warning(disable : 4928)
  15. #if (_MSC_VER > 1600)
  16. #include <codeanalysis\warnings.h>
  17. #pragma warning(push)
  18. #pragma warning(disable \
  19. : ALL_CODE_ANALYSIS_WARNINGS)
  20. #endif
  21. #elif defined(__clang__)
  22. #pragma clang diagnostic push
  23. #pragma clang diagnostic ignored "-Wall"
  24. #pragma clang diagnostic ignored "-Wextra"
  25. #elif defined(__GNUC__)
  26. #if ((__GNUC__ >= 4) && (__GNUC_MINOR__ >= 6)) || (__GNUC__ >= 5)
  27. #pragma GCC diagnostic push
  28. #pragma GCC diagnostic ignored "-Wall"
  29. #pragma GCC diagnostic ignored "-Wextra"
  30. #pragma GCC diagnostic ignored "-Waddress"
  31. #pragma GCC diagnostic ignored "-Wc++11-compat"
  32. #pragma GCC diagnostic ignored "-Wchar-subscripts"
  33. #pragma GCC diagnostic ignored "-Wcomment"
  34. #pragma GCC diagnostic ignored "-Wenum-compare"
  35. #pragma GCC diagnostic ignored "-Wformat"
  36. #pragma GCC diagnostic ignored "-Winit-self"
  37. #pragma GCC diagnostic ignored "-Wmain"
  38. #pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
  39. #pragma GCC diagnostic ignored "-Wmissing-braces"
  40. #pragma GCC diagnostic ignored "-Wnarrowing"
  41. #pragma GCC diagnostic ignored "-Wnonnull"
  42. #pragma GCC diagnostic ignored "-Wparentheses"
  43. #pragma GCC diagnostic ignored "-Wreorder"
  44. #pragma GCC diagnostic ignored "-Wreturn-type"
  45. #pragma GCC diagnostic ignored "-Wsequence-point"
  46. #pragma GCC diagnostic ignored "-Wsign-compare"
  47. #pragma GCC diagnostic ignored "-Wsizeof-pointer-memaccess"
  48. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  49. #pragma GCC diagnostic ignored "-Wswitch"
  50. #pragma GCC diagnostic ignored "-Wtrigraphs"
  51. #pragma GCC diagnostic ignored "-Wuninitialized"
  52. #pragma GCC diagnostic ignored "-Wunknown-pragmas"
  53. #pragma GCC diagnostic ignored "-Wunused-function"
  54. #pragma GCC diagnostic ignored "-Wunused-label"
  55. #pragma GCC diagnostic ignored "-Wunused-value"
  56. #pragma GCC diagnostic ignored "-Wunused-variable"
  57. #pragma GCC diagnostic ignored "-Wvolatile-register-var"
  58. #pragma GCC diagnostic ignored "-Wclobbered"
  59. #pragma GCC diagnostic ignored "-Wempty-body"
  60. #pragma GCC diagnostic ignored "-Wignored-qualifiers"
  61. #pragma GCC diagnostic ignored "-Wmissing-field-initializers"
  62. #pragma GCC diagnostic ignored "-Wsign-compare"
  63. #pragma GCC diagnostic ignored "-Wtype-limits"
  64. #pragma GCC diagnostic ignored "-Wuninitialized"
  65. #pragma GCC diagnostic ignored "-Wunused-parameter"
  66. #pragma GCC diagnostic ignored "-Wunused-but-set-parameter"
  67. #pragma GCC diagnostic ignored "-Wliteral-suffix"
  68. #pragma GCC diagnostic ignored "-Wunused-but-set-variable"
  69. #pragma GCC diagnostic ignored "-Wunused-local-typedefs"
  70. #endif
  71. #endif