diff options
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 } |