Commit 4169b310 by Takuto Ikuta

Fix for unused-lambda-capture warning

This is re-land of https://swiftshader-review.googlesource.com/c/SwiftShader/+/21848 bug: chromium:681136 Change-Id: I11ca3b0f3ccd00ff93cf5eec0e342b49d2ce1f99 Reviewed-on: https://swiftshader-review.googlesource.com/c/22289Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Tested-by: 's avatarTakuto Ikuta <tikuta@google.com>
parent 20622c01
......@@ -203,6 +203,7 @@ else()
set_cpp_flag("-Werror=reorder")
set_cpp_flag("-Werror=sign-compare")
set_cpp_flag("-Werror=missing-braces")
set_cpp_flag("-Werror=unused-lambda-capture")
set_cpp_flag("-fno-exceptions")
# Remove xor, and, or and friends from the list of keywords, they are used
......
......@@ -532,6 +532,7 @@ protected:
auto makeExtractThunk = [this, Index, NumElements](Operand *Src) {
return [this, Index, NumElements, Src]() {
(void)NumElements;
assert(typeNumElements(Src->getType()) == NumElements);
const auto ElementTy = typeElementType(Src->getType());
......
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