mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Suppress gcc 15 unterminated-string-initialization warnings
This commit is contained in:
parent
7e6bbc40c8
commit
e26e8423b5
11 changed files with 57 additions and 7 deletions
3
signal.c
3
signal.c
|
@ -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");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue