From 85a2fb9c56c1942958c09c8aeafd14ddefb6e0c3 Mon Sep 17 00:00:00 2001 From: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> Date: Mon, 4 Mar 2024 00:12:05 +0000 Subject: Address C4100 compiler warnings (unused var) (#648) Adds and uses a macro to avoid the warning --- primedev/logging/sourceconsole.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'primedev/logging/sourceconsole.cpp') diff --git a/primedev/logging/sourceconsole.cpp b/primedev/logging/sourceconsole.cpp index e436d1d4..55be4723 100644 --- a/primedev/logging/sourceconsole.cpp +++ b/primedev/logging/sourceconsole.cpp @@ -8,6 +8,7 @@ SourceInterface* g_pSourceGameConsole; void ConCommand_toggleconsole(const CCommand& arg) { + NOTE_UNUSED(arg); if ((*g_pSourceGameConsole)->IsConsoleVisible()) (*g_pSourceGameConsole)->Hide(); else @@ -16,11 +17,13 @@ void ConCommand_toggleconsole(const CCommand& arg) void ConCommand_showconsole(const CCommand& arg) { + NOTE_UNUSED(arg); (*g_pSourceGameConsole)->Activate(); } void ConCommand_hideconsole(const CCommand& arg) { + NOTE_UNUSED(arg); (*g_pSourceGameConsole)->Hide(); } @@ -47,6 +50,7 @@ void SourceConsoleSink::custom_sink_it_(const custom_log_msg& msg) void SourceConsoleSink::sink_it_(const spdlog::details::log_msg& msg) { + NOTE_UNUSED(msg); throw std::runtime_error("sink_it_ called on SourceConsoleSink with pure log_msg. This is an error!"); } -- cgit v1.2.3