From d3e2b9c64d5c17255557a2907c9d3b8299328e00 Mon Sep 17 00:00:00 2001 From: Daniel Seemaier Date: Wed, 13 Nov 2024 16:40:29 +0100 Subject: [PATCH] fix: silence unused warnings when building without xxHash --- kagen/generators/generator.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kagen/generators/generator.cpp b/kagen/generators/generator.cpp index 04dd465..d871fb4 100644 --- a/kagen/generators/generator.cpp +++ b/kagen/generators/generator.cpp @@ -174,7 +174,7 @@ auto ApplyPermutationAndComputeSendBuffers( } } -inline auto ConstructPermutedGraphCSR( +[[maybe_unused]] inline auto ConstructPermutedGraphCSR( VertexRange recv_range, const std::vector& recv_edges, const std::vector& recv_edge_weights) { std::size_t num_local_vertices = recv_range.second - recv_range.first; std::vector degree_count(num_local_vertices, 0); @@ -220,7 +220,7 @@ inline auto ConstructPermutedGraphCSR( return std::make_tuple(std::move(xadj), std::move(adjncy), std::move(edge_weights)); } -inline auto ConstructPermutedGraphEdgeList( +[[maybe_unused]] inline auto ConstructPermutedGraphEdgeList( VertexRange recv_range, const std::vector& recv_edges, const std::vector& recv_edge_weights) { std::size_t num_local_vertices = recv_range.second - recv_range.first; std::vector degree(num_local_vertices, 0); @@ -249,7 +249,7 @@ inline auto ConstructPermutedGraphEdgeList( } } // namespace -void Generator::PermuteVertices(const PGeneratorConfig& config, MPI_Comm comm) { +void Generator::PermuteVertices([[maybe_unused]] const PGeneratorConfig& config, [[maybe_unused]] MPI_Comm comm) { if (!graph_.vertex_weights.empty()) throw std::runtime_error( "Graph is vertex weight but this is not yet supported by the vertex permutation routine!");