mirror of
https://github.com/alliedmodders/sourcemod.git
synced 2025-12-09 11:28:40 +00:00
Fix unused capture & gcc build failures
This commit is contained in:
parent
a11486c1f6
commit
46628974e3
@ -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:
|
||||
|
||||
@ -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 */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user