mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-29 08:34:39 +08:00
cleanup compilation warnings with msvc.
This commit is contained in:
@@ -62,10 +62,11 @@ public:
|
||||
uint64_t operator()(uint64_t boundExcluded) noexcept {
|
||||
#ifdef PHMAP_HAS_UMUL128
|
||||
uint64_t h;
|
||||
uint64_t l = umul128(operator()(), boundExcluded, &h);
|
||||
(void)umul128(operator()(), boundExcluded, &h);
|
||||
return h;
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
std::array<uint64_t, 4> state() const {
|
||||
|
||||
+5
-1
@@ -34,6 +34,10 @@
|
||||
#include <numeric>
|
||||
#include "btree_test.h"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(disable: 4244 4100 4389)
|
||||
#endif
|
||||
|
||||
namespace phmap {
|
||||
namespace test_internal {
|
||||
int BaseCountedInstance::num_instances_ = 0;
|
||||
@@ -207,7 +211,7 @@ public:
|
||||
|
||||
int erase(const key_type &key) {
|
||||
int size = tree_.size();
|
||||
int res = checker_.erase(key);
|
||||
int res = (int)checker_.erase(key);
|
||||
EXPECT_EQ(res, tree_.count(key));
|
||||
EXPECT_EQ(res, tree_.erase(key));
|
||||
EXPECT_EQ(tree_.count(key), 0);
|
||||
|
||||
Reference in New Issue
Block a user