forked from github_mirror/framelesshelper
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:
parent
66d77112ed
commit
54496f9fe0
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue