diff --git a/fuse_graphs/CMakeLists.txt b/fuse_graphs/CMakeLists.txt index 45838b88..9057891b 100644 --- a/fuse_graphs/CMakeLists.txt +++ b/fuse_graphs/CMakeLists.txt @@ -20,58 +20,6 @@ find_package(Ceres REQUIRED) include(boost-extras.cmake) -# ############################################################################## -# Build ## -# ############################################################################## -# lint_cmake: -linelength Disable warnings about maybe uninitialized variables -# with -Wno-maybe-uninitialized until we fix the following error: -# -# In file included from include/c++/12.2.0/functional:59, from -# include/eigen3/Eigen/Core:85, from include/fuse_core/fuse_macros.h:63, from -# include/fuse_core/loss.h:37, from include/fuse_core/constraint.h:37, from -# src/fuse/fuse_graphs/include/fuse_graphs/hash_graph.h:38, from -# src/fuse/fuse_graphs/src/hash_graph.cpp:34: In copy constructor -# ‘std::function<_Res(_ArgTypes ...)>::function(const -# std::function<_Res(_ArgTypes ...)>&) [with _Res = const fuse_core::Variable&; -# _ArgTypes = {const std::pair >&}]’, inlined from -# ‘boost::iterators::transform_iterator::transform_iterator(const Iterator&, UnaryFunc) [with UnaryFunc = -# std::function >&)>; Iterator = -# std::__detail::_Node_const_iterator >, false, true>; Reference = -# boost::use_default; Value = boost::use_default]’ at -# include/boost/iterator/transform_iterator.hpp:96:21, inlined from -# ‘boost::iterators::transform_iterator -# boost::iterators::make_transform_iterator(Iterator, UnaryFunc) [with UnaryFunc -# = std::function >&)>; Iterator = -# std::__detail::_Node_const_iterator >, false, true>]’ at -# include/boost/iterator/transform_iterator.hpp:141:61, inlined from ‘virtual -# fuse_core::Graph::const_variable_range fuse_graphs::HashGraph::getVariables() -# const’ at fuse/fuse_graphs/src/hash_graph.cpp:284:35: -# /nix/store/b7hvml0m3qmqraz1022fwvyyg6fc1vdy-gcc-12.2.0/include/c++/12.2.0/bits/std_function.h:391:17: -# error: ‘’ may be used uninitialized [-Werror=maybe-uninitialized] -# 391 | __x._M_manager(_M_functor, __x._M_functor, __clone_functor); -# | ~~~~^~~~~~~~~~ -# /nix/store/b7hvml0m3qmqraz1022fwvyyg6fc1vdy-gcc-12.2.0/include/c++/12.2.0/bits/std_function.h: -# In member function ‘virtual fuse_core::Graph::const_variable_range -# fuse_graphs::HashGraph::getVariables() const’: -# /nix/store/b7hvml0m3qmqraz1022fwvyyg6fc1vdy-gcc-12.2.0/include/c++/12.2.0/bits/std_function.h:267:7: -# note: by argument 2 of type ‘const std::_Any_data&’ to ‘static bool -# std::_Function_handler<_Res(_ArgTypes ...), -# _Functor>::_M_manager(std::_Any_data&, const std::_Any_data&, -# std::_Manager_operation) [with _Res = const fuse_core::Variable&; _Functor = -# fuse_graphs::HashGraph::getVariables() const::, -# boost::hash >::value_type&)>; _ArgTypes = {const -# std::pair >&}]’ -# declared here 267 | _M_manager(_Any_data& __dest, const _Any_data& -# __source, | ^~~~~~~~~~ -add_compile_options(-Wall -Werror -Wno-maybe-uninitialized) - # fuse_graphs library add_library(${PROJECT_NAME} src/hash_graph.cpp) target_include_directories(