mirror of
https://github.com/alliedmodders/sourcemod.git
synced 2025-12-11 08:08:30 +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',
|
'-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:
|
||||||
|
|||||||
@ -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 */
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user