From 7d1bd8a9ac6baba97cfe81c9e17c27793baf3229 Mon Sep 17 00:00:00 2001 From: Silent Date: Fri, 1 Nov 2024 17:53:46 +0100 Subject: [PATCH] Fix warnings --- SilentPatch/RWGTA.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/SilentPatch/RWGTA.cpp b/SilentPatch/RWGTA.cpp index 71f2fea..551db45 100644 --- a/SilentPatch/RWGTA.cpp +++ b/SilentPatch/RWGTA.cpp @@ -68,14 +68,14 @@ RwBool RwRenderStateSet(RwRenderState state, void *value) } // Unreachable stub -RwBool RwMatrixDestroy(RwMatrix* mpMat) { assert(!"Unreachable!"); return TRUE; } +RwBool RwMatrixDestroy(RwMatrix* /*mpMat*/) { assert(!"Unreachable!"); return TRUE; } bool RWGTA::Patches::TryLocateRwD3D8() try { using namespace Memory; using namespace hook::txn; - auto fnRwD3D8SetRenderState = [] { + auto pfnRwD3D8SetRenderState = [] { try { // Everything except for III Steam return static_cast(get_pattern("39 0C C5 ? ? ? ? 74 31", -8)); @@ -84,7 +84,7 @@ bool RWGTA::Patches::TryLocateRwD3D8() try return static_cast(get_pattern("8B 0C C5 ? ? ? ? 3B CA", -8)); } }(); - auto fnRwD3D8GetRenderState = [] { + auto pfnRwD3D8GetRenderState = [] { try { // Everything except for III Steam return static_cast(get_pattern("8B 0C C5 ? ? ? ? 89 0A C3", -8)); @@ -94,8 +94,8 @@ bool RWGTA::Patches::TryLocateRwD3D8() try } }(); - ::fnRwD3D8SetRenderState = fnRwD3D8SetRenderState; - ::fnRwD3D8GetRenderState = fnRwD3D8GetRenderState; + fnRwD3D8SetRenderState = pfnRwD3D8SetRenderState; + fnRwD3D8GetRenderState = pfnRwD3D8GetRenderState; return true; } catch (const hook::txn_exception&)