Pacify gcc -Wunterminated-string-initialization
This diagnostic is new to GCC 15. * src/create.c (cachedir_file_p): Mark local as nonstring.
This commit is contained in:
@@ -110,7 +110,7 @@ check_exclusion_tags (struct tar_stat_info const *st, char const **tag_file_name
|
||||
bool
|
||||
cachedir_file_p (int fd)
|
||||
{
|
||||
static char const sig[43]
|
||||
static char const sig[43] ATTRIBUTE_NONSTRING
|
||||
= "Signature: 8a477f597d28d172789f06886806bc55";
|
||||
char tagbuf[sizeof sig];
|
||||
return (read (fd, tagbuf, sizeof sig) == sizeof sig
|
||||
|
||||
Reference in New Issue
Block a user