netbsd-tests t_regex_att: Use __nonstring for a non-string constant

Fixes the following warning from GCC 15:

contrib/netbsd-tests/lib/libc/regex/t_regex_att.c:54:30: error: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute (4 chars into 3 available) [-Werror=unterminated-string-initialization]
   54 | static const char delim[3] = "\\\\\0";
      |                              ^~~~~~~~

Reviewed by:	ngie, imp, dim
Differential Revision:	https://reviews.freebsd.org/D54866
This commit is contained in:
John Baldwin
2026-01-27 13:38:31 -05:00
parent bfc6e56f63
commit 2dea50a661
@@ -51,7 +51,7 @@ __RCSID("$NetBSD: t_regex_att.c,v 1.3 2017/01/14 20:59:23 christos Exp $");
#include <vis.h>
static const char sep[] = "\r\n\t";
static const char delim[3] = "\\\\\0";
static const char delim[3] __nonstring = "\\\\\0";
static void