From ddac1cf8e78c5e6c4ea2ec33d48c506939fd2f57 Mon Sep 17 00:00:00 2001 From: Dmitry Volyntsev Date: Mon, 5 May 2025 08:53:19 -0700 Subject: [PATCH] HTTP: fixed GCC 15 build with -Wunterminated-string-initialization. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ngx_http_js_module.c:936:22: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (16 chars into 15 available) [-Werror=unterminated-string-initialization] 936 | .value = "PeriodicSession", | ^~~~~~~~~~~~~~~~~ --- src/njs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/njs.h b/src/njs.h index 0a196321..9f65cd7c 100644 --- a/src/njs.h +++ b/src/njs.h @@ -187,7 +187,7 @@ struct njs_external_s { union { struct { - const char value[15]; /* NJS_STRING_SHORT + 1. */ + const char *value; njs_prop_handler_t handler; uint16_t magic16; uint32_t magic32; -- 2.47.3