From f3c6e79999a057325477a7c6dcd1f89cfc036975 Mon Sep 17 00:00:00 2001 From: Bryan Biedenkapp Date: Thu, 31 Oct 2024 21:00:26 -0400 Subject: [PATCH] fix up some warnings; --- src/monitor/NodeStatusWnd.h | 2 -- src/sysview/DynRegroupSubscriberWnd.h | 2 +- src/sysview/NodeStatusWnd.h | 4 ---- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/monitor/NodeStatusWnd.h b/src/monitor/NodeStatusWnd.h index 6bbc3dc0..9aeea5f4 100644 --- a/src/monitor/NodeStatusWnd.h +++ b/src/monitor/NodeStatusWnd.h @@ -215,8 +215,6 @@ private: if (FVTerm::getFOutput()->getMaxColor() < 16) setBold(); - const auto& wc = getColorTheme(); - if (!m_tx) { if (m_failed) { setColor(FColor::Black, FColor::LightRed); diff --git a/src/sysview/DynRegroupSubscriberWnd.h b/src/sysview/DynRegroupSubscriberWnd.h index f8072409..b693eaa6 100644 --- a/src/sysview/DynRegroupSubscriberWnd.h +++ b/src/sysview/DynRegroupSubscriberWnd.h @@ -169,7 +169,7 @@ private: redraw(); }); m_subscriber.addCallback("changed", [&]() { - if (m_subscriber.getText().c_str() == "") { + if (m_subscriber.getText().getLength() == 0U) { m_srcId = 1U; return; } diff --git a/src/sysview/NodeStatusWnd.h b/src/sysview/NodeStatusWnd.h index c2e9a16b..37c8fd18 100644 --- a/src/sysview/NodeStatusWnd.h +++ b/src/sysview/NodeStatusWnd.h @@ -283,8 +283,6 @@ private: if (FVTerm::getFOutput()->getMaxColor() < 16) setBold(); - const auto& wc = getColorTheme(); - if (!m_tx) { if (m_failed) { setColor(FColor::Black, FColor::LightRed); @@ -732,8 +730,6 @@ private: { assert(wdgt != nullptr); - const auto& rootWidget = getRootWidget(); - uint8_t channelId = peerObj["channelId"].get(); uint32_t channelNo = peerObj["channelNo"].get();