ThirdPartyHeadersBegin.h 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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 : ALL_CODE_ANALYSIS_WARNINGS)
  19. #endif
  20. #elif defined(__clang__)
  21. #pragma clang diagnostic push
  22. #pragma clang diagnostic ignored "-Wall"
  23. #pragma clang diagnostic ignored "-Wextra"
  24. #elif defined(__GNUC__)
  25. #if ((__GNUC__ >= 4) && (__GNUC_MINOR__ >= 6)) || (__GNUC__ >= 5)
  26. #pragma GCC diagnostic push
  27. #pragma GCC diagnostic ignored "-Wall"
  28. #pragma GCC diagnostic ignored "-Wextra"
  29. #pragma GCC diagnostic ignored "-Waddress"
  30. #pragma GCC diagnostic ignored "-Wc++11-compat"
  31. #pragma GCC diagnostic ignored "-Wchar-subscripts"
  32. #pragma GCC diagnostic ignored "-Wcomment"
  33. #pragma GCC diagnostic ignored "-Wenum-compare"
  34. #pragma GCC diagnostic ignored "-Wformat"
  35. #pragma GCC diagnostic ignored "-Winit-self"
  36. #pragma GCC diagnostic ignored "-Wmain"
  37. #pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
  38. #pragma GCC diagnostic ignored "-Wmissing-braces"
  39. #pragma GCC diagnostic ignored "-Wnarrowing"
  40. #pragma GCC diagnostic ignored "-Wnonnull"
  41. #pragma GCC diagnostic ignored "-Wparentheses"
  42. #pragma GCC diagnostic ignored "-Wreorder"
  43. #pragma GCC diagnostic ignored "-Wreturn-type"
  44. #pragma GCC diagnostic ignored "-Wsequence-point"
  45. #pragma GCC diagnostic ignored "-Wsign-compare"
  46. #pragma GCC diagnostic ignored "-Wsizeof-pointer-memaccess"
  47. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  48. #pragma GCC diagnostic ignored "-Wswitch"
  49. #pragma GCC diagnostic ignored "-Wtrigraphs"
  50. #pragma GCC diagnostic ignored "-Wuninitialized"
  51. #pragma GCC diagnostic ignored "-Wunknown-pragmas"
  52. #pragma GCC diagnostic ignored "-Wunused-function"
  53. #pragma GCC diagnostic ignored "-Wunused-label"
  54. #pragma GCC diagnostic ignored "-Wunused-value"
  55. #pragma GCC diagnostic ignored "-Wunused-variable"
  56. #pragma GCC diagnostic ignored "-Wvolatile-register-var"
  57. #pragma GCC diagnostic ignored "-Wclobbered"
  58. #pragma GCC diagnostic ignored "-Wempty-body"
  59. #pragma GCC diagnostic ignored "-Wignored-qualifiers"
  60. #pragma GCC diagnostic ignored "-Wmissing-field-initializers"
  61. #pragma GCC diagnostic ignored "-Wsign-compare"
  62. #pragma GCC diagnostic ignored "-Wtype-limits"
  63. #pragma GCC diagnostic ignored "-Wuninitialized"
  64. #pragma GCC diagnostic ignored "-Wunused-parameter"
  65. #pragma GCC diagnostic ignored "-Wunused-but-set-parameter"
  66. #pragma GCC diagnostic ignored "-Wliteral-suffix"
  67. #pragma GCC diagnostic ignored "-Wunused-but-set-variable"
  68. #pragma GCC diagnostic ignored "-Wunused-local-typedefs"
  69. #endif
  70. #endif