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:
parent
e573602f81
commit
b9b150e638
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user