From c96f3b2ea10016943236218a3db3db71f2e2781c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20R=C4=99bacz?= Date: Thu, 22 Jan 2026 16:54:05 +0100 Subject: [PATCH] GridCtrl: fix two additional warnings. --- uppsrc/GridCtrl/GridCtrl.cpp | 2 +- uppsrc/GridCtrl/GridPaint.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/uppsrc/GridCtrl/GridCtrl.cpp b/uppsrc/GridCtrl/GridCtrl.cpp index a13006deb..228f3dc28 100644 --- a/uppsrc/GridCtrl/GridCtrl.cpp +++ b/uppsrc/GridCtrl/GridCtrl.cpp @@ -6454,7 +6454,7 @@ void GridCtrl::Debug(int n) } if(n == 3) { - Point p = GetCtrlPos(focused_ctrl); + [[maybe_unused]] Point p = GetCtrlPos(focused_ctrl); LLOG(Format("Focused %x (%d, %d)", focused_ctrl, p.x, p.y)); } } diff --git a/uppsrc/GridCtrl/GridPaint.cpp b/uppsrc/GridCtrl/GridPaint.cpp index faaee742b..96645f938 100644 --- a/uppsrc/GridCtrl/GridPaint.cpp +++ b/uppsrc/GridCtrl/GridPaint.cpp @@ -6,7 +6,7 @@ namespace Upp { void GridCtrl::Paint(Draw &w) { - static int paintcnt = 0; + [[maybe_unused]] static int paintcnt = 0; Font stdfont(StdFont());