clang fixes

This commit is contained in:
smf- 2021-11-19 07:54:35 +00:00
parent 2d1364f213
commit 5926a2e760
2 changed files with 7 additions and 4 deletions

View File

@ -122,6 +122,12 @@ function osdmodulesbuild()
ext_includedir("asio"),
}
if _OPTIONS["gcc"]~=nil and string.find(_OPTIONS["gcc"], "clang") then
buildoptions {
"-Wno-unused-private-field",
}
end
if _OPTIONS["targetos"]=="windows" then
includedirs {
MAME_DIR .. "3rdparty/winpcap/Include",

View File

@ -99,11 +99,8 @@ public:
state.thread->join();
state.thread = std::nullopt;
}
auto const parent = !osd_common_t::s_window_list.empty()
? std::static_pointer_cast<win_window_info>(osd_common_t::s_window_list.front())->platform_window()
: nullptr;
state.thread.emplace(
[parent] ()
[] ()
{
auto &state(get_state());
std::string message;