From 967f5f52f748bdae27fe2e56d8f4653966d95a50 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 1 Nov 2024 09:47:18 -0700 Subject: [PATCH] Pacify gcc -Wmissing-variable-declarations * src/buffer.c (start_offset): Now static. --- src/buffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/buffer.c b/src/buffer.c index 7cadbde0..d3589f17 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -33,7 +33,7 @@ #include "common.h" #include -/* Work around GCC bug 109856. */ +/* Work around GCC bug 117236. */ # if 13 <= __GNUC__ # pragma GCC diagnostic ignored "-Wnull-dereference" # endif @@ -65,7 +65,7 @@ union block *current_block; /* current block of archive */ enum access_mode access_mode; /* how do we handle the archive */ off_t records_read; /* number of records read from this archive */ off_t records_written; /* likewise, for records written */ -off_t start_offset; /* start offset in the archive */ +static off_t start_offset; /* start offset in the archive */ /* When file status was last computed. */ static struct timespec last_stat_time; -- 2.47.3