Suppress gcc 15 unterminated-string-initialization warnings

This commit is contained in:
Nobuyoshi Nakada 2025-04-30 18:35:25 +09:00 committed by Hiroshi SHIBATA
parent 7e6bbc40c8
commit e26e8423b5
11 changed files with 57 additions and 7 deletions

View file

@ -44,6 +44,7 @@
#include "ruby_atomic.h"
#include "vm_core.h"
#include "ractor_core.h"
#include "ruby/internal/attr/nonstring.h"
#ifdef NEED_RUBY_ATOMIC_OPS
rb_atomic_t
@ -1005,7 +1006,7 @@ check_reserved_signal_(const char *name, size_t name_len)
if (prev) {
ssize_t RB_UNUSED_VAR(err);
#define NOZ(name, str) name[sizeof(str)-1] = str
#define NOZ(name, str) RBIMPL_ATTR_NONSTRING() name[sizeof(str)-1] = str
static const char NOZ(msg1, " received in ");
static const char NOZ(msg2, " handler\n");