I noticed that testsuite/30_threads/shared_lock/modifiers/2.cc is almost identical to 1.cc in the same directory, except for the diff shown in the attached patch. That file was copied from testsuite/30_threads/unique_lock/modifiers/2.cc which is almost identical to 1.cc in that directory.
So I'm applying the attached patch to remove the unused variable name, and deleting the duplicate tests. Tested x86_64-linux, committed to trunk.
commit 0fbc10a08ea44dc6cf8c503b3e18899aecac0cc9 Author: Jonathan Wakely <jwak...@redhat.com> Date: Tue Mar 17 16:24:41 2015 +0000 * testsuite/30_threads/shared_lock/modifiers/1.cc: Remove name of unused exception variable. * testsuite/30_threads/unique_lock/modifiers/1.cc: Likewise. * testsuite/30_threads/shared_lock/modifiers/2.cc: Remove duplicate test. * testsuite/30_threads/unique_lock/modifiers/2.cc: Likewise. diff --git a/libstdc++-v3/testsuite/30_threads/shared_lock/modifiers/1.cc b/libstdc++-v3/testsuite/30_threads/shared_lock/modifiers/1.cc index 2d61582..9f20039 100644 --- a/libstdc++-v3/testsuite/30_threads/shared_lock/modifiers/1.cc +++ b/libstdc++-v3/testsuite/30_threads/shared_lock/modifiers/1.cc @@ -55,7 +55,7 @@ int main() VERIFY( !(bool)l1 ); VERIFY( (bool)l2 ); } - catch (const std::system_error& e) + catch (const std::system_error&) { VERIFY( false ); } diff --git a/libstdc++-v3/testsuite/30_threads/unique_lock/modifiers/1.cc b/libstdc++-v3/testsuite/30_threads/unique_lock/modifiers/1.cc index 917b0fb..ffb9fe4 100644 --- a/libstdc++-v3/testsuite/30_threads/unique_lock/modifiers/1.cc +++ b/libstdc++-v3/testsuite/30_threads/unique_lock/modifiers/1.cc @@ -55,7 +55,7 @@ int main() VERIFY( !(bool)l1 ); VERIFY( (bool)l2 ); } - catch (const std::system_error& e) + catch (const std::system_error&) { VERIFY( false ); }