Skip to content

Commit

Permalink
MRA: Silence compiler warnings about unused values
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Schuchart <[email protected]>
  • Loading branch information
devreal committed Sep 18, 2024
1 parent 869a5f5 commit 9f2a255
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/madness/mra-device/mrattg-device.cc
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ static auto make_compress(
// creates the right number of edges for nodes to flow from send_leafs_up to compress
// send_leafs_up will select the right input for compress
auto create_edges = [&]<std::size_t... Is>(std::index_sequence<Is...>) {
return ttg::edges((Is, ttg::Edge<mra::Key<NDIM>, mra::FunctionReconstructedNode<T, NDIM>>{})...);
return ttg::edges(((void)Is, ttg::Edge<mra::Key<NDIM>, mra::FunctionReconstructedNode<T, NDIM>>{})...);
};
auto send_to_compress_edges = create_edges(std::make_index_sequence<num_children>{});
/* append out edge to set of edges */
Expand Down
2 changes: 1 addition & 1 deletion examples/madness/mra-device/tensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace mra {

template<std::size_t... Is>
static auto create_dims_array(std::size_t dim, std::index_sequence<Is...>) {
return std::array{(Is, dim)...};
return std::array{((void)Is, dim)...};
}

public:
Expand Down

0 comments on commit 9f2a255

Please sign in to comment.