Skip to content

Commit

Permalink
Use [[maybe_unused]]
Browse files Browse the repository at this point in the history
  • Loading branch information
hexagonrecursion authored May 11, 2024
1 parent 1f36be8 commit f5448da
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions colobot-base/src/common/logger.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ class CLogger : public CSingleton<CLogger>
{
std::string result;

auto print = [&](auto&& arg)
[[maybe_unused]] auto print = [&](auto&& arg)
{
if (format.empty()) return;

Expand All @@ -184,7 +184,6 @@ class CLogger : public CSingleton<CLogger>
format.remove_prefix(index + 2);
};

(void)print;
(print(args), ...);

if (!format.empty())
Expand Down

0 comments on commit f5448da

Please sign in to comment.