Skip to content

Commit

Permalink
macOS, add maybe_unused to squash warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobandersen committed Jan 20, 2024
1 parent f21bf25 commit fd2c351
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/libmod/src/mod/lib/Graph/Properties/Property.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ Prop<Derived, VertexType, EdgeType>::Prop(const Prop &other, const GraphType &g)
: g(&g), vertexState(other.vertexState), edgeState(other.edgeState) {}

template<typename Derived, typename VertexType, typename EdgeType>
void Prop<Derived, VertexType, EdgeType>::addVertex(Vertex v, const VertexType &value) {
void Prop<Derived, VertexType, EdgeType>::addVertex([[maybe_unused]] Vertex v, const VertexType &value) {
assert(num_vertices(*g) == vertexState.size() + 1);
assert(get(boost::vertex_index_t(), *g, v) == vertexState.size());
vertexState.push_back(value);
verify(g);
}

template<typename Derived, typename VertexType, typename EdgeType>
void Prop<Derived, VertexType, EdgeType>::addEdge(Edge e, const EdgeType &value) {
void Prop<Derived, VertexType, EdgeType>::addEdge([[maybe_unused]] Edge e, const EdgeType &value) {
assert(num_edges(*g) == edgeState.size() + 1);
assert(get(boost::edge_index_t(), *g, e) == edgeState.size());
edgeState.push_back(value);
Expand Down

0 comments on commit fd2c351

Please sign in to comment.