mirror of
https://git.savannah.gnu.org/git/tar.git
synced 2026-08-17 23:06:03 +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:
@@ -26,18 +26,8 @@ static union block *new_record;
|
||||
static int new_blocks;
|
||||
static bool acting_as_filter;
|
||||
|
||||
/* FIXME: This module should not directly handle the following
|
||||
variables, instead, the interface should be cleaned up. */
|
||||
extern union block *record_start;
|
||||
extern union block *record_end;
|
||||
extern union block *current_block;
|
||||
extern union block *recent_long_name;
|
||||
extern union block *recent_long_link;
|
||||
extern off_t records_read;
|
||||
|
||||
/* The number of records skipped at the start of the archive, when
|
||||
passing over members that are not deleted. */
|
||||
extern off_t records_skipped;
|
||||
off_t records_skipped;
|
||||
|
||||
/* Move archive descriptor by COUNT records worth. If COUNT is
|
||||
|
||||
Reference in New Issue
Block a user