Thanks for reporting that. I noticed that in April but forgot to push the patch. I pushed the attached now.

From 892113187787c3d8a9fe112e1e85a3a546235bc1 Mon Sep 17 00:00:00 2001
From: Paul Eggert <egg...@cs.ucla.edu>
Date: Thu, 17 Apr 2025 15:13:21 -0700
Subject: [PATCH] Pacify gcc -Wunterminated-string-initialization

This diagnostic is new to GCC 15.
* src/create.c (cachedir_file_p): Mark local as nonstring.
---
 src/create.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/create.c b/src/create.c
index 8458f215..2e487314 100644
--- a/src/create.c
+++ b/src/create.c
@@ -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
-- 
2.48.1

Reply via email to