Skip to content

Commit

Permalink
Add a maybe_unused for initMarlinGlobal
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Sep 9, 2024
1 parent 245ad6a commit c4204fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions k4MarlinWrapper/k4MarlinWrapper/util/k4MarlinWrapperUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ namespace k4MW::util {

/// singleton helper to initialize global Marlin parameters exactly once. This
marlin::StringParameters* marlinGlobalParameters() {
static marlin::StringParameters p{};
const static auto initMarlinGlobal = []() {
static marlin::StringParameters p{};
[[maybe_unused]] const static auto initMarlinGlobal = []() {
marlin::Global::parameters = &p;
return true; // need a non-void return type
}();
Expand Down

0 comments on commit c4204fc

Please sign in to comment.