Skip to content

Unused variables when compiling boost mpi code #1133

@MathieuDutSik

Description

@MathieuDutSik

When compiling I encounter the following

/opt/homebrew/include/boost/mpi/detail/request_handlers.hpp:220:39: warning: unused parameter 'comm' [-Wunused-parameter]
  220 |   serialized_data(communicator const& comm, packed_iarchive& ar) : m_archive(ar) {}
      |                                       ^
/opt/homebrew/include/boost/mpi/communicator.hpp:1424:71: warning: unused parameter 'primitive' [-Wunused-parameter]
 1424 |                                  std::vector<T,A>& values, mpl::true_ primitive) const
      |                                                                       ^
/opt/homebrew/include/boost/mpi/communicator.hpp:1548:39: warning: unused parameter 'primitive' [-Wunused-parameter]
 1548 |                            mpl::true_ primitive) const
      |                                       ^
/opt/homebrew/include/boost/mpi/communicator.hpp:1634:39: warning: unused parameter 'primitive' [-Wunused-parameter]
 1634 |                            mpl::true_ primitive) const
      |                                       ^
/opt/homebrew/include/boost/mpi/collectives/broadcast.hpp:107:30: warning: unused parameter 'non_mpi_datatype' [-Wunused-parameter]
  107 |                  mpl::false_ non_mpi_datatype)
      |                              ^
/opt/homebrew/include/boost/mpi/collectives/reduce.hpp:81:33: warning: unused parameter 'op' [-Wunused-parameter]
   81 |               T* out_values, Op op, int root, mpl::false_ /*is_mpi_op*/,
      |                                 ^
/opt/homebrew/include/boost/mpi/collectives/reduce.hpp:96:71: warning: unused parameter 'op' [-Wunused-parameter]
   96 |   reduce_impl(const communicator& comm, const T* in_values, int n, Op op,
      |                                                                       ^
/opt/homebrew/include/boost/mpi/collectives/scan.hpp:68:16: warning: unused parameter 'op' [-Wunused-parameter]
   68 |             Op op, mpl::false_ /*is_mpi_op*/, mpl::true_ /*is_mpi_datatype*/)
      |                ^

which is a little bit annoying.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions