zmq_utils.h 1021 B

1234567891011121314151617181920212223
  1. /* SPDX-License-Identifier: MPL-2.0 */
  2. /* This file is deprecated, and all its functionality provided by zmq.h */
  3. /* Note that -Wpedantic compilation requires GCC to avoid using its custom
  4. extensions such as #warning, hence the trick below. Also, pragmas for
  5. warnings or other messages are not standard, not portable, and not all
  6. compilers even have an equivalent concept.
  7. So in the worst case, this include file is treated as silently empty. */
  8. #if defined(__clang__) || defined(__GNUC__) || defined(__GNUG__) \
  9. || defined(_MSC_VER)
  10. #if defined(__GNUC__) || defined(__GNUG__)
  11. #pragma GCC diagnostic push
  12. #pragma GCC diagnostic warning "-Wcpp"
  13. #pragma GCC diagnostic ignored "-Werror"
  14. #pragma GCC diagnostic ignored "-Wall"
  15. #endif
  16. #pragma message( \
  17. "Warning: zmq_utils.h is deprecated. All its functionality is provided by zmq.h.")
  18. #if defined(__GNUC__) || defined(__GNUG__)
  19. #pragma GCC diagnostic pop
  20. #endif
  21. #endif