Commit 1e51262b by Ben Clayton

SpirvShaderDebugger: Silence release only warning

Bug: b/148401179 Change-Id: I0f9458c8e7c8bb04b3b4443f30bb1b7f6c98d686 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/45354Tested-by: 's avatarBen Clayton <bclayton@google.com> Reviewed-by: 's avatarAntonio Maiorano <amaiorano@google.com> Kokoro-Result: kokoro <noreply+kokoro@google.com>
parent 248ef6fc
...@@ -132,7 +132,9 @@ struct Object ...@@ -132,7 +132,9 @@ struct Object
static constexpr auto KIND = Kind::Object; static constexpr auto KIND = Kind::Object;
inline Object(Kind kind) inline Object(Kind kind)
: kind(kind) : kind(kind)
{} {
(void)KIND; // Used in debug builds. Avoid unused variable warnings in NDEBUG builds.
}
const Kind kind; const Kind kind;
// kindof() returns true iff kind is of this type, or any type deriving from // kindof() returns true iff kind is of this type, or any type deriving from
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment