From a6ba48937bf99399037147a7a3c3a14b83ee0ebf Mon Sep 17 00:00:00 2001 From: Ruffalo Lavoisier Date: Mon, 13 Jan 2025 08:19:49 +0900 Subject: [PATCH] Fix compile waring - Move variables that are compiled but may not be used due to macros into the scope of the macros. --- src/apps/tools/OswAppTutorial.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/apps/tools/OswAppTutorial.cpp b/src/apps/tools/OswAppTutorial.cpp index b1d97c9c4..4405d0e24 100644 --- a/src/apps/tools/OswAppTutorial.cpp +++ b/src/apps/tools/OswAppTutorial.cpp @@ -153,7 +153,9 @@ void OswAppTutorial::onDraw() { hal->gfx()->setTextCursor(DISP_W / 2, 120); hal->gfx()->print(LANG_TUT_SCR3_TEXT); +#if defined(GPS_EDITION) || defined(GPS_EDITION_ROTATED) || defined(OSW_FEATURE_WIFI) short y = 160; +#endif bool anyProblems = false; #ifdef OSW_FEATURE_WIFI hal->gfx()->setTextCursor(DISP_W / 2, y);