mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-29 08:34:39 +08:00
cleanup some warnings in tests
This commit is contained in:
+2
-2
@@ -195,14 +195,14 @@ Timer _fill_random(vector<T> &v, HT &hash)
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------------
|
||||
void out(const char* test, int64_t cnt, const Timer &t, bool final = false)
|
||||
void out(const char* test, int64_t cnt, const Timer &t, bool = false)
|
||||
{
|
||||
printf("%s,time,%u,%s,%f\n", test, (unsigned int)cnt, program_slug,
|
||||
(float)((double)t.elapsed().count() / 1000));
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------------
|
||||
void outmem(const char* test, int64_t cnt, uint64_t mem, bool final = false)
|
||||
void outmem(const char*, int64_t cnt, uint64_t mem, bool final = false)
|
||||
{
|
||||
static uint64_t max_mem = 0;
|
||||
static uint64_t max_keys = 0;
|
||||
|
||||
@@ -113,7 +113,7 @@ struct Key
|
||||
for(size_t i = 0; i != size; ++i, data >>= 2)
|
||||
tmp += cfg.to_char[data & 3ull];
|
||||
std::reverse(tmp.begin(), tmp.end());
|
||||
return std::move(tmp);
|
||||
return tmp;
|
||||
}
|
||||
|
||||
bool operator== (const Key& in) const {
|
||||
|
||||
@@ -118,7 +118,7 @@ DecomposeValueImpl(int, F&& f, Arg&& arg) {
|
||||
}
|
||||
|
||||
template <class F, class Arg>
|
||||
const char* DecomposeValueImpl(char, F&& f, Arg&& arg) {
|
||||
const char* DecomposeValueImpl(char, F&& , Arg&& ) {
|
||||
return "not decomposable";
|
||||
}
|
||||
|
||||
@@ -152,7 +152,7 @@ DecomposePairImpl(int, F&& f, Args&&... args) {
|
||||
}
|
||||
|
||||
template <class F, class... Args>
|
||||
const char* DecomposePairImpl(char, F&& f, Args&&... args) {
|
||||
const char* DecomposePairImpl(char, F&& , Args&&... ) {
|
||||
return "not decomposable";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user