From: Alejandro Colomar Date: Sat, 20 Sep 2025 19:38:52 +0000 (+0200) Subject: man/man2/splice.2: EXAMPLES: Use [[gnu::nonstring]] X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cfd392cb506ef4aeddf1db303bca81a80049bdc4;p=thirdparty%2Fman-pages.git man/man2/splice.2: EXAMPLES: Use [[gnu::nonstring]] This silences -Wunterminated-string-initialization. Signed-off-by: Alejandro Colomar --- diff --git a/man/man2/splice.2 b/man/man2/splice.2 index 4ce7c2846..a8f99301e 100644 --- a/man/man2/splice.2 +++ b/man/man2/splice.2 @@ -281,7 +281,8 @@ main(void) int fd; int pfd[2]; off_t off; - const char s[12] = "Hello, world"; + [[gnu::nonstring]] + const char s[12] = "Hello, world"; \& fd = open("out", O_WRONLY | O_CREAT | O_EXCL, 0666); if (fd == \-1)