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

Fully qualify std::move invocations to fix -Wunqualified-std-cast-call #11416

Conversation

rupprecht
Copy link
Contributor

Clang implemented a warning last year to detect bare move and forward calls, as they have the potential to be error prone: llvm/llvm-project@70b1f6d. This warning should be available in clang-15.

This warning also applies to std::forward, but the few uses of std::forward in librealsense are all fully qualified.

Verified locally by using a recent version of clang and building with -Werror=unqualified-std-cast-call.

…d-cast-call

Clang implemented a warning last year to detect bare `move` and `forward` calls, as they have the potential to be error prone: llvm/llvm-project@70b1f6d. This warning should be available in clang-15.

Verified locally by using a recent version of clang and building with `-Werror=unqualified-std-cast-call`.
@Nir-Az Nir-Az requested a review from maloel February 9, 2023 10:55
Copy link
Collaborator

@maloel maloel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @rupprecht

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.

2 participants