redisclient
redisclient copied to clipboard
Fix ignoring return value error.
Hello. This commit removes a compile error.
I got the below error.
redisclient/src/redisclient/impl/redisasyncclient.cpp:34:9: error: ignoring return value of function declared with 'nodiscard' attribute [-Werror,-Wunused-result]
std::move(pimpl->socket);
Algthough the below move
function returns a value, ignoring it.
https://github.com/nekipelov/redisclient/blob/fbf052ef8e3772d17d1538468853523f1d827595/src/redisclient/impl/redisasyncclient.cpp#L34
This error occurred in the following versions.
- clang version 11.1.0
- gcc-libs-11.1.0-1
- glibc-2.33-5