From: Paul Eggert Date: Fri, 1 Nov 2024 16:47:18 +0000 (-0700) Subject: Pacify gcc -Wmissing-variable-declarations X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=967f5f52f748bdae27fe2e56d8f4653966d95a50;p=thirdparty%2Ftar.git Pacify gcc -Wmissing-variable-declarations * src/buffer.c (start_offset): Now static. --- 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;