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

Merge pull request #52 from alliedmodders/warnings

Prevent some warnings for SM builds
This commit is contained in:
David Anderson 2018-07-31 21:23:52 -07:00 committed by GitHub
commit 7efa054b82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -255,7 +255,7 @@ namespace SourceHook
*/
namespace
{
bool ModuleInMemory(char *addr, size_t len)
static inline bool ModuleInMemory(char *addr, size_t len)
{
#if SH_SYS == SH_SYS_LINUX
// On linux, first check /proc/self/maps
@ -333,6 +333,7 @@ namespace SourceHook
for (size_t i = 0; i < len; i++)
dummy = p[i];
(void)dummy; // silence unused var, we must read from p
g_BadReadCalled = false;
@ -359,6 +360,7 @@ namespace SourceHook
for (size_t i = 0; i < len; i++)
dummy = p[i];
(void)dummy; // silence unused var, we must read from p
g_BadReadCalled = false;