From 93a49cb3e666112c82e9aa81ec8490155b4aa839 Mon Sep 17 00:00:00 2001 From: Bryan Biedenkapp Date: Wed, 17 Aug 2022 11:25:26 -0400 Subject: [PATCH] fix GCC11 complaining about the value > 0 comparision (this is really an incorrect comparision anyway); --- host/setup/HostSetup.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/host/setup/HostSetup.cpp b/host/setup/HostSetup.cpp index 1095f7ba..21987218 100644 --- a/host/setup/HostSetup.cpp +++ b/host/setup/HostSetup.cpp @@ -186,7 +186,7 @@ int HostSetup::run() m_console.getLine(value, 1, 0); uint32_t level = logLevel; sscanf(value, "%u", &level); - if (value > 0) { + if (level > 0) { m_conf["log"]["displayLevel"] = __INT_STR(level); m_conf["log"]["fileLevel"] = __INT_STR(level); } @@ -421,7 +421,7 @@ int HostSetup::run() m_console.getLine(value, 4, 0); uint32_t time = cwTime; sscanf(value, "%u", &time); - if (value > 0) { + if (time > 0) { m_conf["system"]["cwId"]["time"] = __INT_STR(time); }