Commit 5dd0b43
committed
Fix clang-cl warning flags: use
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)./W4 instead of /Wall
1 parent 7406782 commit 5dd0b43
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
126 | 132 | | |
127 | 133 | | |
128 | 134 | | |
| |||
0 commit comments