From d49691143cf1be01c0f815d4a74b139128b66240 Mon Sep 17 00:00:00 2001 From: Sebastian Holtermann Date: Wed, 30 Oct 2024 14:40:54 +0100 Subject: [PATCH] 2dlib: Fix another set but not used variable compiler warning in surface.cpp --- 2dlib/surface.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/2dlib/surface.cpp b/2dlib/surface.cpp index d6be4f2c..95025f27 100644 --- a/2dlib/surface.cpp +++ b/2dlib/surface.cpp @@ -512,18 +512,16 @@ char *grSurface::lock(int x, int y, int *rowsize) { } void grSurface::unlock() { - bool grerr; - ASSERT(m_SurfInit); ASSERT(surf_Locked); switch (ddsfObj.type) { case SURFTYPE_VIDEOSCREEN: case SURFTYPE_GENERIC: - grerr = ddgr_surf_Unlock(&ddsfObj, m_OrigDataPtr); + ddgr_surf_Unlock(&ddsfObj, m_OrigDataPtr); break; case SURFTYPE_MEMORY: - grerr = gr_mem_surf_Unlock(&ddsfObj, m_OrigDataPtr); + gr_mem_surf_Unlock(&ddsfObj, m_OrigDataPtr); break; default: Int3(); // invalid type!!