1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2025-01-19 08:52:34 +01:00

Fix warnings for SM builds

This commit is contained in:
Headline 2018-07-29 04:09:18 -07:00
parent e573602f81
commit b9b150e638

View File

@ -255,7 +255,7 @@ namespace SourceHook
*/
namespace
{
bool ModuleInMemory(char *addr, size_t len)
inline bool ModuleInMemory(char *addr, size_t len)
{
#if SH_SYS == SH_SYS_LINUX
// On linux, first check /proc/self/maps
@ -328,12 +328,6 @@ namespace SourceHook
prevHandler = signal(SIGSEGV, BadReadHandler);
volatile const char *p = reinterpret_cast<const char*>(addr);
char dummy;
for (size_t i = 0; i < len; i++)
dummy = p[i];
g_BadReadCalled = false;
signal(SIGSEGV, prevHandler);