Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ignoring return value error. #81

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix ignoring return value error. #81

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented May 18, 2021

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.

std::move(pimpl->socket);

This error occurred in the following versions.

  • clang version 11.1.0
  • gcc-libs-11.1.0-1
  • glibc-2.33-5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants