diff --git a/AMBuildScript b/AMBuildScript index b6c477cbe..1d49e97a8 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -266,7 +266,6 @@ class SMConfig(object): '-Werror', '-Wno-error=switch', '-Wno-error=unused-function', - '-Wno-error=unused-private-field', '-msse', '-fvisibility=hidden', ] @@ -295,7 +294,10 @@ class SMConfig(object): cxx.cxxflags += ['-Wno-delete-non-virtual-dtor'] if have_clang: - cxx.cxxflags += ['-Wno-implicit-exception-spec-mismatch'] + cxx.cxxflags += [ + '-Wno-implicit-exception-spec-mismatch', + '-Wno-error=unused-private-field', + ] if cxx.version >= 'apple-clang-5.1' or cxx.version >= 'clang-3.4': cxx.cxxflags += ['-Wno-error=deprecated-register'] else: diff --git a/core/logic/PluginSys.cpp b/core/logic/PluginSys.cpp index c09b34fa0..43f19d0de 100644 --- a/core/logic/PluginSys.cpp +++ b/core/logic/PluginSys.cpp @@ -1200,7 +1200,7 @@ void CPlugin::SetWaitingToUnload(bool andReload) void CPluginManager::LoadExtensions(CPlugin *pPlugin) { - auto callback = [pPlugin] (const sp_pubvar_t *pubvar, const CPlugin::ExtVar& ext) -> bool + auto callback = [] (const sp_pubvar_t *pubvar, const CPlugin::ExtVar& ext) -> bool { char path[PLATFORM_MAX_PATH]; /* Attempt to auto-load if necessary */