Skip to content

Commit

Permalink
Add maybe_unused attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
KangarooKoala committed Oct 11, 2024
1 parent 38ff160 commit 9a7a9af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wpimath/src/test/native/cpp/TimeTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ void ProcessDurations(const wpi::array<units::nanosecond_t, N>& durations,

wpi::print("{}\n", durations[0]);

std::array<units::nanosecond_t, N> sorted{durations};
[[ maybe_unused ]] std::array<units::nanosecond_t, N> sorted{durations};

wpi::print("{}\n", durations[0]);
// wpi::print("{}\n", sorted[0]);
Expand Down

0 comments on commit 9a7a9af

Please sign in to comment.