lower warning level for msvc

Bug reports from users indicate that /W4 causes many
warnings for MSVC 2019 and the warnings come from
private Qt headers so no way to fix them in FramelessHelper.

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
Yuhang Zhao 2022-05-09 11:39:15 +08:00
parent 66d77112ed
commit 54496f9fe0
3 changed files with 3 additions and 3 deletions

View File

@ -101,7 +101,7 @@ if(MSVC)
_WIN32_IE=${_WIN32_WINNT_WIN10} NTDDI_VERSION=${NTDDI_WIN10_CO}
)
target_compile_options(${SUB_PROJ_NAME} PRIVATE
/utf-8 /W4 /WX
/utf-8 /W3 /WX
)
else()
target_compile_options(${SUB_PROJ_NAME} PRIVATE

View File

@ -94,7 +94,7 @@ if(MSVC)
_WIN32_IE=${_WIN32_WINNT_WIN10} NTDDI_VERSION=${NTDDI_WIN10_CO}
)
target_compile_options(${SUB_PROJ_NAME} PRIVATE
/utf-8 /W3 /WX # Can't use /W4 here due to the Q_D macro causes warnings.
/utf-8 /W3 /WX
)
else()
target_compile_options(${SUB_PROJ_NAME} PRIVATE

View File

@ -80,7 +80,7 @@ target_compile_definitions(${SUB_PROJ_NAME} PRIVATE
if(MSVC)
target_compile_options(${SUB_PROJ_NAME} PRIVATE
/utf-8 /W4 /WX
/utf-8 /W3 /WX
)
else()
target_compile_options(${SUB_PROJ_NAME} PRIVATE