commit | 1e51262b4dc35df32271309541b11233f54e4437 | [log] [tgz] |
---|---|---|
author | Ben Clayton <bclayton@google.com> | Wed May 27 10:05:45 2020 +0100 |
committer | Ben Clayton <bclayton@google.com> | Tue Jun 02 18:19:31 2020 +0000 |
tree | e901ae84bebce50870b17cd52cc11e0e16995db4 | |
parent | 248ef6fc1a2d2b9b04f40b2b76dfe8cb045ca3e1 [diff] |
SpirvShaderDebugger: Silence release only warning Bug: b/148401179 Change-Id: I0f9458c8e7c8bb04b3b4443f30bb1b7f6c98d686 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/45354 Tested-by: Ben Clayton <bclayton@google.com> Reviewed-by: Antonio Maiorano <amaiorano@google.com> Kokoro-Result: kokoro <noreply+kokoro@google.com>
diff --git a/src/Pipeline/SpirvShaderDebugger.cpp b/src/Pipeline/SpirvShaderDebugger.cpp index a456ef1..0f2fbbe 100644 --- a/src/Pipeline/SpirvShaderDebugger.cpp +++ b/src/Pipeline/SpirvShaderDebugger.cpp
@@ -132,7 +132,9 @@ static constexpr auto KIND = Kind::Object; inline Object(Kind kind) : kind(kind) - {} + { + (void)KIND; // Used in debug builds. Avoid unused variable warnings in NDEBUG builds. + } const Kind kind; // kindof() returns true iff kind is of this type, or any type deriving from