From b426a7cd766bbb316db95862d11bec4362121845 Mon Sep 17 00:00:00 2001 From: Alexander Dahl Date: Thu, 28 Sep 2023 09:38:07 +0200 Subject: [PATCH] web: Move declaration to avoid unused-variable warning The variable is obviously only needed inside those `!defined(ETHERNET)` areas. Fixes: a80167912c69 ("added missing files") --- src/web/web.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/web.h b/src/web/web.h index 59f853b1..20883c97 100644 --- a/src/web/web.h +++ b/src/web/web.h @@ -183,8 +183,8 @@ class Web { mUploadFp.write(data, len); if (final) { mUploadFp.close(); - char pwd[PWD_LEN]; #if !defined(ETHERNET) + char pwd[PWD_LEN]; strncpy(pwd, mConfig->sys.stationPwd, PWD_LEN); // backup WiFi PWD #endif if (!mApp->readSettings("/tmp.json")) {