From 6b991f671d754a0d7e756fa13f3a885511f357ff Mon Sep 17 00:00:00 2001 From: Rocco Corsi <5201151+rcorsi@users.noreply.github.com> Date: Mon, 25 May 2026 19:34:35 -0400 Subject: [PATCH] Remove unused and unread variables reported by cppcheck Found with cppcheck 1.19 on Ubuntu 26.04 --- c/drivewire.c | 2 -- c/dwprotocol.c | 3 --- c/dwwin.c | 2 -- 3 files changed, 7 deletions(-) diff --git a/c/drivewire.c b/c/drivewire.c index e8b2d10..6f2ef09 100755 --- a/c/drivewire.c +++ b/c/drivewire.c @@ -117,7 +117,6 @@ int loadPreferences(struct dwTransferData *datapack) int savePreferences(struct dwTransferData *datapack) { FILE *pf; - char buffer[81]; int i; @@ -192,7 +191,6 @@ void logHeader(void) int main(int argc, char **argv) { - int i; pthread_t thread_id; int quitter = 0; diff --git a/c/dwprotocol.c b/c/dwprotocol.c index 2b951bc..feb3bf3 100755 --- a/c/dwprotocol.c +++ b/c/dwprotocol.c @@ -8,9 +8,6 @@ void *DriveWireProcessor(void *data) while (comRead(dp, &(dp->lastOpcode), 1) > 0) { - fd_set rfds; - struct timeval tv; - char *timeString = NULL; { diff --git a/c/dwwin.c b/c/dwwin.c index 0f17c2b..65535a3 100755 --- a/c/dwwin.c +++ b/c/dwwin.c @@ -7,8 +7,6 @@ void WinInit(void) return; } - int y = 1; - initscr(); clear(); window0 = newwin(24, 80, 0, 0);