mirror of
https://git.savannah.gnu.org/git/tar.git
synced 2026-04-28 12:17:07 +00:00
maint: remove GLOBAL as per GCC 14
* src/common.h (GLOBAL): Remove this macro, and all its uses. It collides with GCC 14 and -Wmissing-variable-declarations. Change all uses of GLOBAL to use extern instead, and declare the variables in their respective .c files. Move .c file’s extern declarations here, so that they appear only once and are checked against definitions. * src/names.c (unconsumed_option_tail): Now static.
This commit is contained in:
22
src/buffer.c
22
src/buffer.c
@@ -52,18 +52,21 @@ static int record_index;
|
||||
/* FIXME: The following variables should ideally be static to this
|
||||
module. However, this cannot be done yet. The cleanup continues! */
|
||||
|
||||
extern union block *record_start;
|
||||
int archive;
|
||||
struct timespec start_time;
|
||||
struct timespec volume_start_time;
|
||||
struct timespec last_stat_time;
|
||||
struct tar_stat_info current_stat_info;
|
||||
struct stat archive_stat;
|
||||
|
||||
bool seekable_archive;
|
||||
|
||||
union block *record_start; /* start of record of archive */
|
||||
extern union block *record_end;
|
||||
union block *record_end; /* last+1 block of archive record */
|
||||
extern union block *current_block;
|
||||
union block *current_block; /* current block of archive */
|
||||
enum access_mode access_mode; /* how do we handle the archive */
|
||||
extern off_t records_read;
|
||||
off_t records_read; /* number of records read from this archive */
|
||||
off_t records_written; /* likewise, for records written */
|
||||
extern off_t records_skipped; /* number of records skipped at the start
|
||||
of the archive, defined in delete.c */
|
||||
|
||||
static off_t record_start_block; /* block ordinal at record_start */
|
||||
|
||||
@@ -83,13 +86,6 @@ static bool hit_eof;
|
||||
|
||||
static bool read_full_records = false;
|
||||
|
||||
/* We're reading, but we just read the last block and it's time to update.
|
||||
Declared in update.c
|
||||
|
||||
FIXME: Either eliminate it or move it to common.h.
|
||||
*/
|
||||
extern bool time_to_start_writing;
|
||||
|
||||
bool write_archive_to_stdout;
|
||||
|
||||
static void (*flush_write_ptr) (size_t);
|
||||
|
||||
Reference in New Issue
Block a user