From b43a5bb0394db40103c6fb377795bf9445678868 Mon Sep 17 00:00:00 2001 From: Sebastian Holtermann Date: Wed, 30 Oct 2024 18:59:56 +0100 Subject: [PATCH] 2dlib: Fix unused variable compiler warning in memsurf.cpp This fixes an unused variable compiler warning in Release builds in 2dlib/memsurf.cpp. --- 2dlib/memsurf.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2dlib/memsurf.cpp b/2dlib/memsurf.cpp index e27063e4..5b54d9f8 100644 --- a/2dlib/memsurf.cpp +++ b/2dlib/memsurf.cpp @@ -265,9 +265,9 @@ void gr_mem_surf_Clear(ddgr_surface *dsf, ddgr_color col, int l, int t, int w, i bool gr_mem_surf_Blt(ddgr_surface *dsf, int dx, int dy, ddgr_surface *ssf, int sx, int sy, int sw, int sh) { // Maybe we should allow slow 16bpp to 24bpp and vice-versa blts. // for now, we wont. - mem_bitmap *sbm = (mem_bitmap *)ssf->obj, *dbm = (mem_bitmap *)dsf->obj; + mem_bitmap *dbm = (mem_bitmap *)dsf->obj; - ASSERT(dbm->bpp == sbm->bpp); + ASSERT(dbm->bpp == ((mem_bitmap *)ssf->obj)->bpp); switch (dbm->bpp) { case BPP_16: