From 729c0305423de3bf1199139e3b09e2093b4ada18 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Mon, 8 Dec 2025 14:47:28 -0500 Subject: unalf: get rid of clang "variable set but not used" warning in io.c. --- src/io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/io.c b/src/io.c index cc50b8b..2b76ab1 100644 --- a/src/io.c +++ b/src/io.c @@ -143,7 +143,7 @@ int read_alf_header(void) { /* read buf_len_l/h bytes into buf_adr_l/h, then store the number of bytes actually read in buf_len_l/h. TODO: what about EOF? */ void readblock(void) { - static int bytes_read = 0; + // static int bytes_read = 0; int bytes, len, bufadr; u8 *buf; @@ -152,7 +152,7 @@ void readblock(void) { len = dpeek(buf_len_l); bytes = fread(buf, 1, len, in_file); - bytes_read += bytes; + // bytes_read += bytes; /* mimic CIO's behaviour */ if(feof(in_file)) { -- cgit v1.2.3