Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.

Commit 041154a

Browse files
committed
src/test: Fix compilation with GCC 15
Tag some missed character arrays with NXT_NONSTRING. See commit d9c2fd7 ("Tag various character arrays with NXT_NONSTRING") for details. Signed-off-by: Andrew Clayton <[email protected]>
1 parent 18d8e54 commit 041154a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/nxt_http_parse_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ typedef struct {
1212
nxt_str_t method;
1313
nxt_str_t target;
1414
nxt_str_t args;
15-
u_char version[8];
15+
u_char version[8] NXT_NONSTRING;
1616

1717
/* target with "/." */
1818
unsigned complex_target:1;

src/test/nxt_utf8_file_name_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ nxt_utf8_file_name_test(nxt_thread_t *thr)
4848
nxt_file_t uc_file, lc_file;
4949
const u_char *pp;
5050
nxt_file_name_t uc_name[10], lc_name[10];
51-
static const u_char utf8[4] = "UTF8";
51+
static const u_char utf8[4] NXT_NONSTRING = "UTF8";
5252

5353
nxt_thread_time_update(thr);
5454

0 commit comments

Comments
 (0)