diff --git a/Source/Core/Common/Logging/ConsoleListenerWin.cpp b/Source/Core/Common/Logging/ConsoleListenerWin.cpp index 7b4f08fee7..b14c9c9256 100644 --- a/Source/Core/Common/Logging/ConsoleListenerWin.cpp +++ b/Source/Core/Common/Logging/ConsoleListenerWin.cpp @@ -15,7 +15,7 @@ ConsoleListener::~ConsoleListener() { } -void ConsoleListener::Log([[maybe_unused]] Common::Log::LogLevel level, const char* text) +void ConsoleListener::Log(Common::Log::LogLevel, const char* text) { ::OutputDebugStringW(UTF8ToWString(text).c_str()); } diff --git a/Source/Core/Core/IOS/USB/Emulated/Microphone.cpp b/Source/Core/Core/IOS/USB/Emulated/Microphone.cpp index 806fddb14c..4a21c76596 100644 --- a/Source/Core/Core/IOS/USB/Emulated/Microphone.cpp +++ b/Source/Core/Core/IOS/USB/Emulated/Microphone.cpp @@ -57,7 +57,7 @@ void Microphone::StreamInit() { } -void Microphone::StreamStart([[maybe_unused]] u32 sampling_rate) +void Microphone::StreamStart(u32 /* sampling_rate */) { } diff --git a/Source/Core/VideoBackends/Null/NullGfx.cpp b/Source/Core/VideoBackends/Null/NullGfx.cpp index 09c605ee18..7d67b9c32e 100644 --- a/Source/Core/VideoBackends/Null/NullGfx.cpp +++ b/Source/Core/VideoBackends/Null/NullGfx.cpp @@ -34,7 +34,7 @@ bool NullGfx::SupportsUtilityDrawing() const } std::unique_ptr NullGfx::CreateTexture(const TextureConfig& config, - [[maybe_unused]] std::string_view name) + std::string_view /* name */) { return std::make_unique(config); } @@ -52,16 +52,17 @@ public: }; std::unique_ptr -NullGfx::CreateShaderFromSource(ShaderStage stage, [[maybe_unused]] std::string_view source, - [[maybe_unused]] VideoCommon::ShaderIncluder* shader_includer, - [[maybe_unused]] std::string_view name) +NullGfx::CreateShaderFromSource(ShaderStage stage, std::string_view /* source */, + VideoCommon::ShaderIncluder* /* shader_includer */, + std::string_view /* name */) { return std::make_unique(stage); } -std::unique_ptr -NullGfx::CreateShaderFromBinary(ShaderStage stage, const void* data, size_t length, - [[maybe_unused]] std::string_view name) +std::unique_ptr NullGfx::CreateShaderFromBinary(ShaderStage stage, + const void* /* data */, + size_t /* length */, + std::string_view /* name */) { return std::make_unique(stage); } diff --git a/Source/Core/VideoBackends/OGL/OGLGfx.cpp b/Source/Core/VideoBackends/OGL/OGLGfx.cpp index 27e18a3a03..ff5402ba03 100644 --- a/Source/Core/VideoBackends/OGL/OGLGfx.cpp +++ b/Source/Core/VideoBackends/OGL/OGLGfx.cpp @@ -235,9 +235,10 @@ OGLGfx::CreateShaderFromSource(ShaderStage stage, std::string_view source, return OGLShader::CreateFromSource(stage, source, shader_includer, name); } -std::unique_ptr -OGLGfx::CreateShaderFromBinary(ShaderStage stage, const void* data, size_t length, - [[maybe_unused]] std::string_view name) +std::unique_ptr OGLGfx::CreateShaderFromBinary(ShaderStage /* stage */, + const void* /* data */, + size_t /* length */, + std::string_view /* name */) { return nullptr; } diff --git a/Source/Core/VideoBackends/Software/SWGfx.cpp b/Source/Core/VideoBackends/Software/SWGfx.cpp index ed152aef95..7004c50864 100644 --- a/Source/Core/VideoBackends/Software/SWGfx.cpp +++ b/Source/Core/VideoBackends/Software/SWGfx.cpp @@ -35,7 +35,7 @@ bool SWGfx::SupportsUtilityDrawing() const } std::unique_ptr SWGfx::CreateTexture(const TextureConfig& config, - [[maybe_unused]] std::string_view name) + std::string_view /* name */) { return std::make_unique(config); } @@ -77,16 +77,17 @@ public: }; std::unique_ptr -SWGfx::CreateShaderFromSource(ShaderStage stage, [[maybe_unused]] std::string_view source, - [[maybe_unused]] VideoCommon::ShaderIncluder* shader_includer, - [[maybe_unused]] std::string_view name) +SWGfx::CreateShaderFromSource(ShaderStage stage, std::string_view /* source */, + VideoCommon::ShaderIncluder* /* shader_includer */, + std::string_view /* name */) { return std::make_unique(stage); } -std::unique_ptr -SWGfx::CreateShaderFromBinary(ShaderStage stage, const void* data, size_t length, - [[maybe_unused]] std::string_view name) +std::unique_ptr SWGfx::CreateShaderFromBinary(ShaderStage stage, + const void* /* data */, + size_t /* length */, + std::string_view /* name */) { return std::make_unique(stage); } diff --git a/Source/Core/VideoCommon/TMEM.cpp b/Source/Core/VideoCommon/TMEM.cpp index 8b5404ab08..7c27131c30 100644 --- a/Source/Core/VideoCommon/TMEM.cpp +++ b/Source/Core/VideoCommon/TMEM.cpp @@ -143,7 +143,7 @@ void InvalidateAll() // On invalidate cache: // 1. invalidate all texture units. -void Invalidate([[maybe_unused]] u32 param) +void Invalidate(u32 /* param */) { // The exact arguments of Invalidate commands is currently unknown. // It appears to contain the TMEM address and a size. diff --git a/Source/Core/VideoCommon/VertexLoader_Position.cpp b/Source/Core/VideoCommon/VertexLoader_Position.cpp index 27ea61ea30..68f2d870f9 100644 --- a/Source/Core/VideoCommon/VertexLoader_Position.cpp +++ b/Source/Core/VideoCommon/VertexLoader_Position.cpp @@ -24,7 +24,7 @@ constexpr float PosScale(T val, float scale) } template <> -constexpr float PosScale(float val, [[maybe_unused]] float scale) +constexpr float PosScale(float val, float /* scale */) { return val; } diff --git a/Source/Core/VideoCommon/VertexLoader_TextCoord.cpp b/Source/Core/VideoCommon/VertexLoader_TextCoord.cpp index 2d2766a7ea..b6209a664a 100644 --- a/Source/Core/VideoCommon/VertexLoader_TextCoord.cpp +++ b/Source/Core/VideoCommon/VertexLoader_TextCoord.cpp @@ -26,7 +26,7 @@ constexpr float TCScale(T val, float scale) } template <> -constexpr float TCScale(float val, [[maybe_unused]] float scale) +constexpr float TCScale(float val, float /* scale */) { return val; }