aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2025-12-08 14:47:28 -0500
committerB. Watson <urchlay@slackware.uk>2025-12-08 14:47:28 -0500
commit729c0305423de3bf1199139e3b09e2093b4ada18 (patch)
tree54913bc7d536aada33f2d8b76d515e648211d03a
parent7c0726a1f59e877c056fa0405bda8d39795b303b (diff)
downloadalftools-729c0305423de3bf1199139e3b09e2093b4ada18.tar.gz
unalf: get rid of clang "variable set but not used" warning in io.c.
-rw-r--r--src/io.c4
1 files 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)) {