Skip to content

Commit 0ca4bc0

Browse files
sparistDawn LUCI CQ
authored andcommitted
Fix -Werror=unused-but-set-variable
Change-Id: I17570776cce62eeef52a6667bc645388bd8597a6 Bug: dawn:1976 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/146682 Kokoro: Kokoro <[email protected]> Reviewed-by: James Price <[email protected]> Reviewed-by: Ryan Harrison <[email protected]> Commit-Queue: Ben Clayton <[email protected]>
1 parent 46411c0 commit 0ca4bc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tint/lang/core/constant/eval.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2013,7 +2013,7 @@ Eval::Result Eval::ShiftRight(const core::type::Type* ty,
20132013
UT e1u = static_cast<UT>(e1);
20142014
UT e2u = static_cast<UT>(e2);
20152015

2016-
auto signed_shift_right = [&] {
2016+
[[maybe_unused]] auto signed_shift_right = [&] {
20172017
// In C++, right shift of a signed negative number is implementation-defined.
20182018
// Although most implementations sign-extend, we do it manually to ensure it works
20192019
// correctly on all implementations.

0 commit comments

Comments
 (0)