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 Clang and GCC [-Wcast-function-type] warning on casting result of GetProcAddress() function. #2543

Merged

Conversation

zufuliu
Copy link
Contributor

@zufuliu zufuliu commented Dec 11, 2024

This change added a naive implementation of C++ 20 std::bit_cast() into util.h.
https://en.cppreference.com/w/cpp/numeric/bit_cast

@zufuliu zufuliu force-pushed the fix-gcc-clang-Wcast-function-type branch from e11ca00 to 2a42dd8 Compare December 11, 2024 11:37
@jhasse jhasse merged commit 9d31ebb into ninja-build:master Dec 15, 2024
11 checks passed
@jhasse jhasse added this to the 1.13.0 milestone Dec 15, 2024
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