Skip to content

Fix ignoring return value error. #81

New issue

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

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

Already on GitHub? # to your account

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

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

Successfully merging this pull request may close these issues.

0 participants