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
545aafa2a2
commit
b42afa1dbc
12 changed files with 59 additions and 8 deletions
3
signal.c
3
signal.c
|
@ -45,6 +45,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
|
||||
|
@ -976,7 +977,7 @@ check_reserved_signal_(const char *name, size_t name_len, int signo)
|
|||
if (prev) {
|
||||
ssize_t RB_UNUSED_VAR(err);
|
||||
static const int stderr_fd = 2;
|
||||
#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