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/hash.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/hash.cpp')
-rw-r--r-- | libcxx/src/hash.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libcxx/src/hash.cpp b/libcxx/src/hash.cpp index a013500218e..75e773a3a64 100644 --- a/libcxx/src/hash.cpp +++ b/libcxx/src/hash.cpp @@ -155,6 +155,8 @@ __check_for_overflow(size_t N) #ifndef _LIBCPP_NO_EXCEPTIONS if (N > 0xFFFFFFFB) throw overflow_error("__next_prime overflow"); +#else + (void)N; #endif } @@ -166,6 +168,8 @@ __check_for_overflow(size_t N) #ifndef _LIBCPP_NO_EXCEPTIONS if (N > 0xFFFFFFFFFFFFFFC5ull) throw overflow_error("__next_prime overflow"); +#else + (void)N; #endif } |