mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Merge pull request #9715 from iwubcode/qt-header-warnings
DolphinQt: ignore warnings from qt headers on buildbot
This commit is contained in:
@ -350,10 +350,11 @@ if (WIN32)
|
||||
endif()
|
||||
|
||||
if (MSVC)
|
||||
# Disable some warnings
|
||||
|
||||
# 5054: operator '+': deprecated between enumerations of different types (in Qt headers)
|
||||
target_compile_options(dolphin-emu PRIVATE /wd5054)
|
||||
# Don't propogate warnings in qt headers to Dolphin
|
||||
target_compile_options(dolphin-emu PRIVATE /experimental:external)
|
||||
target_compile_options(dolphin-emu PRIVATE /external:W0)
|
||||
target_compile_options(dolphin-emu PRIVATE "/external:I${Qt5Gui_PRIVATE_INCLUDE_DIRS}")
|
||||
target_compile_options(dolphin-emu PRIVATE "/external:I${Qt5Widgets_PRIVATE_INCLUDE_DIRS}")
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
|
@ -66,8 +66,7 @@ FlowLayout::FlowLayout(int margin, int h_spacing, int v_spacing)
|
||||
|
||||
FlowLayout::~FlowLayout()
|
||||
{
|
||||
QLayoutItem* item;
|
||||
while ((item = takeAt(0)))
|
||||
while (QLayoutItem* item = takeAt(0))
|
||||
delete item;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user