]> granicus.if.org Git - graphviz/commit
tests: squash Boost header deprecation warnings
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 21 Oct 2022 15:09:49 +0000 (08:09 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 2 Nov 2022 01:55:55 +0000 (18:55 -0700)
commita3e0261401faf4a606d7efdf2f3367ca4bf10bc3
tree5563261d4b88e4a62e3d645591a5bde9555ed8aa
parent2a3ade048eab1f72580ef40ec488cb4a6908aa98
tests: squash Boost header deprecation warnings

Boost 1.74.0 deprecates some functions that svgpp is using. Without squashing
these, the CMake build fails in CI:

  [ 86%] Building CXX object
    tests/CMakeFiles/test_common.dir/svgpp_context.cpp.o
  In file included from /usr/include/boost/config/header_deprecated.hpp:18,
                   from /usr/include/boost/detail/scoped_enum_emulation.hpp:15,
                   from /usr/include/svgpp/detail/namespace.hpp:13,
                   from /usr/include/svgpp/detail/attribute_name_to_id.hpp:11,
                   from
    /usr/include/svgpp/attribute_traversal/prioritized.hpp:12,
                   from
    /usr/include/svgpp/attribute_traversal/attribute_traversal.hpp:10,
                   from /usr/include/svgpp/document_traversal.hpp:10,
                   from /usr/include/svgpp/svgpp.hpp:1,
                   from /builds/graphviz/graphviz/tests/svgpp_context.h:7,
                   from /builds/graphviz/graphviz/tests/svgpp_context.cpp:8:
  /usr/include/boost/detail/scoped_enum_emulation.hpp:17:1: note: '#pragma
    message: This header is deprecated. Use <boost/core/scoped_enum.hpp>
    instead.'
     17 | BOOST_HEADER_DEPRECATED("<boost/core/scoped_enum.hpp>")
        | ^~~~~~~~~~~~~~~~~~~~~~~
tests/svgpp_context.h
tests/svgpp_document_traverser.cpp