]> https://gitweb.dealii.org/ - dealii.git/commit
cgal: disable diagnostics when including CGAL headers 14726/head
authorMatthias Maier <tamiko@43-1.org>
Wed, 25 Jan 2023 04:36:31 +0000 (22:36 -0600)
committerMatthias Maier <tamiko@43-1.org>
Wed, 25 Jan 2023 16:51:45 +0000 (10:51 -0600)
commitf55088fe1c02c66fec3abd2cd2fdd54707d2e3ba
tree2402e69be1833d88804c290d30a08a50782e6fd9
parent4fe154c65325e4f52cccd1e7b5b6f38f0d0fe5e0
cgal: disable diagnostics when including CGAL headers

This works around a hard to trace compilation warning that can be
triggered in some configurations in CGAL and Boost headers:

In file included from /usr/include/CGAL/Static_filtered_predicate.h:15,
                 from /usr/include/CGAL/Lazy_kernel.h:18,
                 from /usr/include/CGAL/Exact_predicates_exact_constructions_kernel.h:27,
                 from /usr/include/CGAL/Arr_segment_traits_2.h:30,
                 from /usr/include/CGAL/Gps_segment_traits_2.h:20,
                 from /usr/include/CGAL/Boolean_set_operations_2/complement.h:27,
                 from /usr/include/CGAL/Boolean_set_operations_2.h:21,
                 from /srv/temp/dealii/source/cgal/intersections.cc:33:
/usr/include/CGAL/Epic_converter.h: In member function ‘std::pair<CGAL::Segment_3<CGAL::Epick>, bool> CGAL::Epic_converter<IK>::operator()(const typename IK::Segment_3&) const [with IK = CGAL::Simple_cartesian<CGAL::Interval_nt<false> >]’:
/usr/include/CGAL/Epic_converter.h:305:29: note: ‘<anonymous>’ declared here
  305 |       return std::make_pair(Segment_3(),false);
      |                             ^~~~~~~~~~~

In constructor ‘constexpr std::pair<_T1, _T2>::pair(_U1&&, _U2&&) [with _U1 = CGAL::Segment_3<CGAL::Epick>; _U2 = bool; typename std::enable_if<(std::_PCC<true, _T1, _T2>::_MoveConstructiblePair<_U1, _U2>() && std::_PCC<true, _T1, _T2>::_ImplicitlyMoveConvertiblePair<_U1, _U2>()), bool>::type <anonymous> = true; _T1 = CGAL::Segment_3<CGAL::Epick>; _T2 = bool]’,
    inlined from ‘constexpr std::pair<typename std::__strip_reference_wrapper<typename std::decay<_Tp>::type>::__type, typename std::__strip_reference_wrapper<typename std::decay<_Tp2>::type>::__type> std::make_pair(_T1&&, _T2&&) [with _T1 = CGAL::Segment_3<CGAL::Epick>; _T2 = bool]’ at /usr/lib/gcc/x86_64-pc-linux-gnu/12/include/g++-v12/bits/stl_pair.h:746:72,
    inlined from ‘std::pair<CGAL::Segment_3<CGAL::Epick>, bool> CGAL::Epic_converter<IK>::operator()(const typename IK::Segment_3&) const [with IK = CGAL::Simple_cartesian<CGAL::Interval_nt<false> >]’ at /usr/include/CGAL/Epic_converter.h:309:28:
/usr/lib/gcc/x86_64-pc-linux-gnu/12/include/g++-v12/bits/stl_pair.h:535:11: warning: ‘<anonymous>’ may be used uninitialized [-Wmaybe-uninitialized]
  535 |         : first(std::forward<_U1>(__x)), second(std::forward<_U2>(__y)) { }
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/CGAL/Epic_converter.h: In member function ‘std::pair<CGAL::Segment_3<CGAL::Epick>, bool> CGAL::Epic_converter<IK>::operator()(const typename IK::Segment_3&) const [with IK = CGAL::Simple_cartesian<CGAL::Interval_nt<false> >]’:
/usr/include/CGAL/Epic_converter.h:309:29: note: ‘<anonymous>’ declared here
  309 |       return std::make_pair(Segment_3(),false);
      |                             ^~~~~~~~~~~
include/deal.II/base/config.h.in
source/cgal/intersections.cc

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.