summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
diff options
context:
space:
mode:
authorDentomologist <dentomologist@gmail.com>2026-05-03 17:09:59 -0700
committerDentomologist <dentomologist@gmail.com>2026-05-03 17:09:59 -0700
commit34646cb9a90eb0ef7fa489f76753184359e7aa15 (patch)
treeeea011548860993fa5c1e92cdd82e70a2f986022 /Source/Core/VideoCommon
parenteb44b64c9ecbca2f6e346a1d2bdcdf00609f9f31 (diff)
Replace some [[maybe_unused]] annotations with commented names
Remove the [[maybe_unused]] annotation from various parameters that are unconditionally unused and comment out their names instead. This makes it unambiguous that the variables are unused, while making the remaining [[maybe_unused]] annotations more reliable indicators that those variables are in fact used in some contexts. These parameters are mostly in overridden functions where the override doesn't need that particular variable.
Diffstat (limited to 'Source/Core/VideoCommon')
-rw-r--r--Source/Core/VideoCommon/TMEM.cpp2
-rw-r--r--Source/Core/VideoCommon/VertexLoader_Position.cpp2
-rw-r--r--Source/Core/VideoCommon/VertexLoader_TextCoord.cpp2
3 files changed, 3 insertions, 3 deletions
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;
}