From 987a51d38d83e27ec2e389b5cb684e5f0c0ecd02 Mon Sep 17 00:00:00 2001 From: Sebastian Holtermann Date: Wed, 30 Oct 2024 14:44:37 +0100 Subject: [PATCH] 2dlib: Fix another set but not used variable compiler warning in surface.cpp --- 2dlib/surface.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/2dlib/surface.cpp b/2dlib/surface.cpp index 95025f27..2ae519b6 100644 --- a/2dlib/surface.cpp +++ b/2dlib/surface.cpp @@ -667,11 +667,10 @@ void grSurface::xlat24_16(char *data, int w, int h) { char *sptr; uint16_t *dptr; int scol, dcol, row; - int rowsize_w, height, width; + int height, width; dptr = (uint16_t *)m_DataPtr; sptr = (char *)data; - rowsize_w = m_DataRowsize / 2; height = std::min(h, ddsfObj.h); width = std::min(w, ddsfObj.w);