You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix clang-cl warning flags: use /W4 instead of /Wall
This PR fixes the warning flags when building with **clang-cl**.
Previously, the CMake configuration unconditionally added `-Wall -Wextra` for Clang.
However, according to the [clang-cl documentation](https://clang.llvm.org/docs/UsersManual.html#clang-cl), `/Wall` in clang-cl is mapped to `-Weverything`, which enables **all possible warnings**, far more than MSVC’s `/Wall`. This results in a flood of warnings that are not intended.
The original intent was to match MSVC `/W4` (≈ `-Wall -Wextra` in GCC/Clang).
0 commit comments