mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-30 00:50:38 +08:00
Unreferenced parameter warning (#13)
This commit is contained in:
Vendored
+7
-5
@@ -770,13 +770,15 @@ namespace base_internal {
|
||||
|
||||
namespace {
|
||||
template <typename T>
|
||||
[[noreturn]] void Throw(const T& error) {
|
||||
#ifdef PHMAP_HAVE_EXCEPTIONS
|
||||
throw error;
|
||||
#else
|
||||
std::abort();
|
||||
#endif
|
||||
[[noreturn]] void Throw(const T& error) {
|
||||
throw error;
|
||||
}
|
||||
#else
|
||||
[[noreturn]] void Throw(const T&) {
|
||||
std::abort();
|
||||
}
|
||||
#endif
|
||||
} // namespace
|
||||
|
||||
static inline void ThrowStdLogicError(const std::string& what_arg) {
|
||||
|
||||
Reference in New Issue
Block a user