Fix unused capture & gcc build failures

This commit is contained in:
Michael Flaherty 2018-07-20 02:51:29 -07:00
parent a11486c1f6
commit 46628974e3
2 changed files with 5 additions and 3 deletions

View File

@ -266,7 +266,6 @@ class SMConfig(object):
'-Werror', '-Werror',
'-Wno-error=switch', '-Wno-error=switch',
'-Wno-error=unused-function', '-Wno-error=unused-function',
'-Wno-error=unused-private-field',
'-msse', '-msse',
'-fvisibility=hidden', '-fvisibility=hidden',
] ]
@ -295,7 +294,10 @@ class SMConfig(object):
cxx.cxxflags += ['-Wno-delete-non-virtual-dtor'] cxx.cxxflags += ['-Wno-delete-non-virtual-dtor']
if have_clang: 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': if cxx.version >= 'apple-clang-5.1' or cxx.version >= 'clang-3.4':
cxx.cxxflags += ['-Wno-error=deprecated-register'] cxx.cxxflags += ['-Wno-error=deprecated-register']
else: else:

View File

@ -1200,7 +1200,7 @@ void CPlugin::SetWaitingToUnload(bool andReload)
void CPluginManager::LoadExtensions(CPlugin *pPlugin) 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]; char path[PLATFORM_MAX_PATH];
/* Attempt to auto-load if necessary */ /* Attempt to auto-load if necessary */