Skip to content

Commit

Permalink
Mark val as [[maybe_unused]] to remove warnings when compiling in rel…
Browse files Browse the repository at this point in the history
…ease mode
  • Loading branch information
damianhxy committed May 24, 2024
1 parent b5dfbeb commit 19cb0d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/logger/logger.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ namespace Logger {
};
struct debug_logger {
template<class T>
debug_logger &operator<<(T val) {
debug_logger &operator<<([[maybe_unused]] T val) {
#ifdef PRINT_DEBUG
std::cout << val;
#endif
Expand Down

0 comments on commit 19cb0d7

Please sign in to comment.