mem-cache: Modify compressor to appease newer compilers
The type of the local unique_ptr variable was different from the return type.
In C++11 because of such difference, a copy-ellision would not be possible,
and that required the use of a std::move.
In C++14 the restriction of same types being required was removed, so
std::move would not be needed anymore.
With the addition of the -Wredundant-move warning in newer compilers, having
the std::move on the return became an issue, breaking compilation.
Signed-off-by: Daniel R. Carvalho <firstname.lastname@example.org>
Tested-by: kokoro <email@example.com>
Maintainer: Nikos Nikoleris <firstname.lastname@example.org>
Reviewed-by: Nikos Nikoleris <email@example.com>
1 file changed