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 a static analysis warning #590

Merged
merged 1 commit into from
Sep 13, 2024

Conversation

TedLyngmo
Copy link
Contributor

@TedLyngmo TedLyngmo commented Sep 10, 2024

reply.h: std::move was used where std::forward should be used

Fixes #589

@TedLyngmo
Copy link
Contributor Author

The failure to build on Windows seems unrelated to this patch:

CMake Error at test/CMakeLists.txt:10 (find_path):
  Could not find HIREDIS_HEADER using the following files: hiredis

@sewenew
Copy link
Owner

sewenew commented Sep 12, 2024

Thanks for your contributing!

Could you revert the noexcept change, and I'll merge your PR.

Thanks again!

@sewenew
Copy link
Owner

sewenew commented Sep 12, 2024

The failure to build on Windows seems unrelated to this patch:

CMake Error at test/CMakeLists.txt:10 (find_path):
  Could not find HIREDIS_HEADER using the following files: hiredis

Yes. The Windows build failure has nothing to do with your PR.

reply.h: std::move was used where std::forward should be used

Fixes sewenew#589

Signed-off-by: Ted Lyngmo <ted@lyncon.se>
@TedLyngmo TedLyngmo changed the title Fix 2 static analysis warnings Fix a static analysis warning Sep 12, 2024
@sewenew sewenew merged commit 3cca0f1 into sewenew:master Sep 13, 2024
2 of 3 checks passed
@TedLyngmo TedLyngmo deleted the fix_static_analysis_warnings branch September 14, 2024 07:34
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.

[BUG] parse_variant() may inadvertently move lvalues
2 participants