diff options
author | Eric Fiselier <eric@efcs.ca> | 2016-05-02 19:15:48 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2016-05-02 19:15:48 +0000 |
commit | fb42f4c44adc1e2ac25c1305e77d53e735012b77 (patch) | |
tree | 1b7284c381b8626e94578527a76c00071d9f9bce /libcxx/test/std/language.support/support.exception | |
parent | 9d91336a839d291ea52e91401e9bd92f4dfc5b5a (diff) | |
download | bcm5719-llvm-fb42f4c44adc1e2ac25c1305e77d53e735012b77.tar.gz bcm5719-llvm-fb42f4c44adc1e2ac25c1305e77d53e735012b77.zip |
Void cast runtime-unused variables. Patch from STL@microsoft.com
llvm-svn: 268284
Diffstat (limited to 'libcxx/test/std/language.support/support.exception')
2 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/test/std/language.support/support.exception/except.nested/throw_with_nested.pass.cpp b/libcxx/test/std/language.support/support.exception/except.nested/throw_with_nested.pass.cpp index 98006bb1e3a..b507eccc369 100644 --- a/libcxx/test/std/language.support/support.exception/except.nested/throw_with_nested.pass.cpp +++ b/libcxx/test/std/language.support/support.exception/except.nested/throw_with_nested.pass.cpp @@ -112,7 +112,7 @@ int main() std::throw_with_nested(Final()); assert(false); } - catch (const Final &f) + catch (const Final &) { } } diff --git a/libcxx/test/std/language.support/support.exception/propagation/current_exception.pass.cpp b/libcxx/test/std/language.support/support.exception/propagation/current_exception.pass.cpp index 09adf580bdd..7bf1df457db 100644 --- a/libcxx/test/std/language.support/support.exception/propagation/current_exception.pass.cpp +++ b/libcxx/test/std/language.support/support.exception/propagation/current_exception.pass.cpp @@ -74,7 +74,7 @@ int main() throw A(); assert(false); } - catch (A& a) + catch (A&) { std::exception_ptr p = std::current_exception(); assert(A::constructed == 1); @@ -94,7 +94,7 @@ int main() throw A(); assert(false); } - catch (A a) + catch (A) { std::exception_ptr p = std::current_exception(); assert(A::constructed == 2); |