Skip to content

Commit

Permalink
remove now-unused compile options
Browse files Browse the repository at this point in the history
  • Loading branch information
henrygerardmoore committed Nov 5, 2024
1 parent 7d180e3 commit 23d5f81
Showing 1 changed file with 0 additions and 52 deletions.
52 changes: 0 additions & 52 deletions fuse_graphs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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<const boost::uuids::uuid,
# std::shared_ptr<fuse_core::Variable> >&}]’, inlined from
# ‘boost::iterators::transform_iterator<UnaryFunction, Iterator, Reference,
# Value>::transform_iterator(const Iterator&, UnaryFunc) [with UnaryFunc =
# std::function<const fuse_core::Variable&(const std::pair<const
# boost::uuids::uuid, std::shared_ptr<fuse_core::Variable> >&)>; Iterator =
# std::__detail::_Node_const_iterator<std::pair<const boost::uuids::uuid,
# std::shared_ptr<fuse_core::Variable> >, 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<UnaryFunc, Iterator>
# boost::iterators::make_transform_iterator(Iterator, UnaryFunc) [with UnaryFunc
# = std::function<const fuse_core::Variable&(const std::pair<const
# boost::uuids::uuid, std::shared_ptr<fuse_core::Variable> >&)>; Iterator =
# std::__detail::_Node_const_iterator<std::pair<const boost::uuids::uuid,
# std::shared_ptr<fuse_core::Variable> >, 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: ‘<anonymous>’ 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::<lambda(const
# std::unordered_map<boost::uuids::uuid, std::shared_ptr<fuse_core::Variable>,
# boost::hash<boost::uuids::uuid> >::value_type&)>; _ArgTypes = {const
# std::pair<const boost::uuids::uuid, std::shared_ptr<fuse_core::Variable> >&}]’
# 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(
Expand Down

0 comments on commit 23d5f81

Please sign in to comment.