diff options
author | smf- <smf-@users.noreply.github.com> | 2017-09-24 13:45:58 +0100 |
---|---|---|
committer | smf- <smf-@users.noreply.github.com> | 2017-09-24 17:49:35 +0100 |
commit | bcb4be3a5d00b3407874d580c962a964f77cbe52 (patch) | |
tree | 4165c178e9bdf33ef85f7cb23dc0d9757df8ef1b /src/frontend | |
parent | ba580ae3bf4c0d668ece4b0c4a6e0c501ea043ea (diff) |
fix for clang 5 unused lambda capture errors (nw)
Diffstat (limited to 'src/frontend')
-rw-r--r-- | src/frontend/mame/info.cpp | 2 | ||||
-rw-r--r-- | src/frontend/mame/luaengine.cpp | 10 | ||||
-rw-r--r-- | src/frontend/mame/ui/state.cpp | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/src/frontend/mame/info.cpp b/src/frontend/mame/info.cpp index 515ce246c7a..48c4feeb5e0 100644 --- a/src/frontend/mame/info.cpp +++ b/src/frontend/mame/info.cpp @@ -224,7 +224,7 @@ void info_xml_creator::output(FILE *out, std::vector<std::string> const &pattern driver_enumerator drivlist(m_lookup_options); std::vector<bool> matched(patterns.size(), false); size_t exact_matches = 0; - auto const included = [&patterns, &drivlist, &matched, &exact_matches] (char const *const name) -> bool + auto const included = [&patterns, &matched, &exact_matches] (char const *const name) -> bool { if (patterns.empty()) return true; diff --git a/src/frontend/mame/luaengine.cpp b/src/frontend/mame/luaengine.cpp index 82e3f3f50ad..610b1947210 100644 --- a/src/frontend/mame/luaengine.cpp +++ b/src/frontend/mame/luaengine.cpp @@ -923,7 +923,7 @@ void lua_engine::initialize() */ emu.new_usertype<context>("thread", sol::call_constructor, sol::constructors<sol::types<>>(), - "start", [this](context &ctx, const char *scr) { + "start", [](context &ctx, const char *scr) { std::string script(scr); if(ctx.busy) return false; @@ -962,13 +962,13 @@ void lua_engine::initialize() th.detach(); return true; }, - "continue", [this](context &ctx, const char *val) { + "continue", [](context &ctx, const char *val) { if(!ctx.yield) return; ctx.result = val; ctx.sync.notify_all(); }, - "result", sol::property([this](context &ctx) -> std::string { + "result", sol::property([](context &ctx) -> std::string { if(ctx.busy && !ctx.yield) return ""; return ctx.result; @@ -1008,7 +1008,7 @@ void lua_engine::initialize() } return sol::make_object(sol(), ret); }, - "read_block", [this](save_item &item, int offset, sol::buffer *buff) { + "read_block", [](save_item &item, int offset, sol::buffer *buff) { if(!item.base || ((offset + buff->get_len()) > (item.size * item.count))) buff->set_len(0); else @@ -1267,7 +1267,7 @@ void lua_engine::initialize() * debug:wplist(space)[] - table of watchpoints */ sol().registry().new_usertype<device_debug>("device_debug", "new", sol::no_constructor, - "step", [this](device_debug &dev, sol::object num) { + "step", [](device_debug &dev, sol::object num) { int steps = 1; if(num.is<int>()) steps = num.as<int>(); diff --git a/src/frontend/mame/ui/state.cpp b/src/frontend/mame/ui/state.cpp index 27bbe24ed00..28d47040d60 100644 --- a/src/frontend/mame/ui/state.cpp +++ b/src/frontend/mame/ui/state.cpp @@ -175,7 +175,7 @@ void menu_load_save_state_base::populate(float &customtop, float &custombottom) std::sort( m_entries_vec.begin(), m_entries_vec.end(), - [this](const file_entry *a, const file_entry *b) + [](const file_entry *a, const file_entry *b) { return a->last_modified() > b->last_modified(); }); |