summaryrefslogtreecommitdiffstats
path: root/libcxx/src/thread.cpp
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2013-03-28 18:56:26 +0000
committerHoward Hinnant <hhinnant@apple.com>2013-03-28 18:56:26 +0000
commite00e6f23d36a802c7a81876891e4b470513d9cae (patch)
treeea10fa11758ca1cb9df4e66760c2b5559c58420f /libcxx/src/thread.cpp
parenta6788325cf19ee25af3e84f89716e150115d361f (diff)
downloadbcm5719-llvm-e00e6f23d36a802c7a81876891e4b470513d9cae.tar.gz
bcm5719-llvm-e00e6f23d36a802c7a81876891e4b470513d9cae.zip
Fix a few warnings/errors for compiling with -fno-exceptions.
llvm-svn: 178267
Diffstat (limited to 'libcxx/src/thread.cpp')
-rw-r--r--libcxx/src/thread.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcxx/src/thread.cpp b/libcxx/src/thread.cpp
index 7a06b296d44..635500292bb 100644
--- a/libcxx/src/thread.cpp
+++ b/libcxx/src/thread.cpp
@@ -36,6 +36,8 @@ thread::join()
#ifndef _LIBCPP_NO_EXCEPTIONS
if (ec)
throw system_error(error_code(ec, system_category()), "thread::join failed");
+#else
+ (void)ec;
#endif // _LIBCPP_NO_EXCEPTIONS
__t_ = 0;
}
OpenPOWER on IntegriCloud