[PATCH] D28467: [Sema] Add warning for unused lambda captures
Alex Lorenz via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 9 07:11:16 PST 2017
arphaman added inline comments.
================
Comment at: test/SemaCXX/uninitialized.cpp:1437
} else {
- [fname]{};
+ [fname] { (void)fname; }; // expected-warning {{lambda capture 'fname' is not used}}
}
----------------
I think that expected-warning shouldn't be used here as you have `(void)fname` in the lambda (I don't get this warning if I test this locally).
https://reviews.llvm.org/D28467
More information about the cfe-commits
mailing list