From 621b37a711ddcab61fc55e95cda1eb26dd558b7d Mon Sep 17 00:00:00 2001 From: "Rob Swindell (on ChromeOS)" <rob@synchro.net> Date: Mon, 3 Jul 2023 19:36:40 -0700 Subject: [PATCH] =?UTF-8?q?Fix=20GCC=20warning:=20=E2=80=98fptr=E2=80=99?= =?UTF-8?q?=20may=20be=20used=20uninitialized=20in=20this=20function?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This does look like a false positive to me: the if clauses that use fptr appear to only cover the same values as the switch-case statements. But harmless defensive change here. --- src/syncterm/ooii.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/syncterm/ooii.c b/src/syncterm/ooii.c index fd98742f95..ff31599499 100644 --- a/src/syncterm/ooii.c +++ b/src/syncterm/ooii.c @@ -216,7 +216,7 @@ term_setattr(int attr) static void readInPix(char codeCh, int ooii_mode) { - int fptr; + int fptr = 0; term_clearscreen(); term_gotoxy(1, 1); -- GitLab