[PATCH] D21095: [libcxx] [test] Fix another MSVC warning C4101 "unreferenced local variable".

Stephan T. Lavavej via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 7 12:30:22 PDT 2016


STL_MSFT created this revision.
STL_MSFT added reviewers: mclow.lists, EricWF.
STL_MSFT added a subscriber: cfe-commits.

Fix another MSVC warning C4101 "unreferenced local variable".

http://reviews.llvm.org/D21095

Files:
  test/std/thread/thread.threads/thread.thread.class/thread.thread.member/detach.pass.cpp

Index: test/std/thread/thread.threads/thread.thread.class/thread.thread.member/detach.pass.cpp
===================================================================
--- test/std/thread/thread.threads/thread.thread.class/thread.thread.member/detach.pass.cpp
+++ test/std/thread/thread.threads/thread.thread.class/thread.thread.member/detach.pass.cpp
@@ -83,7 +83,7 @@
         assert(!t0.joinable());
         try {
             t0.detach();
-        } catch (std::system_error const& ec) {
+        } catch (std::system_error const&) {
         }
     }
 #endif


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21095.59935.patch
Type: text/x-patch
Size: 560 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160607/efdc3f45/attachment.bin>


More information about the cfe-commits mailing list