Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Dec 2025 20:22:42 +0000
From:      Alex Richardson <arichardson@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 4cfc7de13f11 - main - libthr: fix -Wunterminated-string-initialization
Message-ID:  <6941bf92.38884.7e85027@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by arichardson:

URL: https://cgit.FreeBSD.org/src/commit/?id=4cfc7de13f110563463c15be99690c6fe7b8676a

commit 4cfc7de13f110563463c15be99690c6fe7b8676a
Author:     Alex Richardson <arichardson@FreeBSD.org>
AuthorDate: 2025-12-16 18:04:18 +0000
Commit:     Alex Richardson <arichardson@FreeBSD.org>
CommitDate: 2025-12-16 20:21:45 +0000

    libthr: fix -Wunterminated-string-initialization
    
    Reviewed by:    jhb, emaste
    MFC after:      1 week
    Differential Revision: https://reviews.freebsd.org/D52528
---
 lib/libthr/thread/thr_printf.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/libthr/thread/thr_printf.c b/lib/libthr/thread/thr_printf.c
index e1edffe5acb2..b7cb6ce81bda 100644
--- a/lib/libthr/thread/thr_printf.c
+++ b/lib/libthr/thread/thr_printf.c
@@ -61,7 +61,7 @@ _thread_printf(int fd, const char *fmt, ...)
 void
 _thread_vprintf(int fd, const char *fmt, va_list ap)
 {
-	static const char digits[16] = "0123456789abcdef";
+	static const char digits[16] __nonstring = "0123456789abcdef";
 	char buf[20];
 	char *s;
 	unsigned long r, u;
@@ -147,4 +147,3 @@ pstr(int fd, const char *s)
 
 	__sys_write(fd, s, strlen(s));
 }
-


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6941bf92.38884.7e85027>