From 6c361cde7b0b854b5b88fa8fc41165adee97035f Mon Sep 17 00:00:00 2001 From: greg Date: Fri, 10 May 2019 20:35:05 -0400 Subject: [PATCH] cleanup some warnings in tests --- examples/bench.cc | 4 ++-- examples/knucleotide.cc | 2 +- tests/container_memory_test.cc | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/bench.cc b/examples/bench.cc index bbfcc3c..0a6a464 100644 --- a/examples/bench.cc +++ b/examples/bench.cc @@ -195,14 +195,14 @@ Timer _fill_random(vector &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; diff --git a/examples/knucleotide.cc b/examples/knucleotide.cc index 39a7e07..48f5c79 100644 --- a/examples/knucleotide.cc +++ b/examples/knucleotide.cc @@ -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 { diff --git a/tests/container_memory_test.cc b/tests/container_memory_test.cc index ca9db39..762ac6b 100644 --- a/tests/container_memory_test.cc +++ b/tests/container_memory_test.cc @@ -118,7 +118,7 @@ DecomposeValueImpl(int, F&& f, Arg&& arg) { } template -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 -const char* DecomposePairImpl(char, F&& f, Args&&... args) { +const char* DecomposePairImpl(char, F&& , Args&&... ) { return "not decomposable"; }