diff options
author | Howard Hinnant <hhinnant@apple.com> | 2013-03-28 18:56:26 +0000 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2013-03-28 18:56:26 +0000 |
commit | e00e6f23d36a802c7a81876891e4b470513d9cae (patch) | |
tree | ea10fa11758ca1cb9df4e66760c2b5559c58420f /libcxx/src/thread.cpp | |
parent | a6788325cf19ee25af3e84f89716e150115d361f (diff) | |
download | bcm5719-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.cpp | 2 |
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; } |