]> git.ipfire.org Git - thirdparty/tar.git/commitdiff
Pacify gcc -Wmissing-variable-declarations
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 1 Nov 2024 16:47:18 +0000 (09:47 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 2 Nov 2024 06:47:23 +0000 (23:47 -0700)
* src/buffer.c (start_offset): Now static.

src/buffer.c

index 7cadbde0c5d371c0f6c141b3e8662d650bc8f405..d3589f17f38dce69b6b60e2ae5ae800c50398109 100644 (file)
@@ -33,7 +33,7 @@
 #include "common.h"
 #include <rmt.h>
 
-/* 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;