Log4Qt icon indicating copy to clipboard operation
Log4Qt copied to clipboard

Fix clang-cl warning flags: use `/W4` instead of `/Wall`

Open SquallATF opened this issue 3 months ago • 0 comments

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, /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).

SquallATF avatar Sep 20 '25 14:09 SquallATF