catch_suppress_warnings.h 1019 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright 2014 Two Blue Cubes Ltd
  3. *
  4. * Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. */
  7. #ifdef __clang__
  8. # ifdef __ICC // icpc defines the __clang__ macro
  9. # pragma warning(push)
  10. # pragma warning(disable: 161 1682)
  11. # else // __ICC
  12. # pragma clang diagnostic push
  13. # pragma clang diagnostic ignored "-Wpadded"
  14. # pragma clang diagnostic ignored "-Wswitch-enum"
  15. # pragma clang diagnostic ignored "-Wcovered-switch-default"
  16. # endif
  17. #elif defined __GNUC__
  18. // Because REQUIREs trigger GCC's -Wparentheses, and because still
  19. // supported version of g++ have only buggy support for _Pragmas,
  20. // Wparentheses have to be suppressed globally.
  21. # pragma GCC diagnostic ignored "-Wparentheses" // See #674 for details
  22. # pragma GCC diagnostic push
  23. # pragma GCC diagnostic ignored "-Wunused-variable"
  24. # pragma GCC diagnostic ignored "-Wpadded"
  25. #endif