Skip to content

Commit

Permalink
fix: add maybe_unused to build_type constexpr to squash warning (#993)
Browse files Browse the repository at this point in the history
  • Loading branch information
braindigitalis authored Nov 2, 2023
1 parent c2a30f8 commit f14e8a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doxygen-awesome-css
4 changes: 2 additions & 2 deletions src/dpp/cluster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ template<typename T> std::function<void(const T&)> make_intent_warning(cluster*
template <build_type BuildType>
bool validate_configuration() {
#ifdef _DEBUG
constexpr build_type expected = build_type::debug;
[[maybe_unused]] constexpr build_type expected = build_type::debug;
#else
constexpr build_type expected = build_type::release;
[[maybe_unused]] constexpr build_type expected = build_type::release;
#endif
#ifdef _WIN32
if constexpr (BuildType != build_type::universal && BuildType != expected) {
Expand Down

0 comments on commit f14e8a6

Please sign in to comment.