mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
signal.c: suppress a warning
* signal.c (ruby_signal): suppress unused-value warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
460d8c11cd
commit
3048637571
1 changed files with 1 additions and 1 deletions
2
signal.c
2
signal.c
|
@ -534,7 +534,7 @@ ruby_signal(int signum, sighandler_t handler)
|
|||
)
|
||||
sigact.sa_flags |= SA_ONSTACK;
|
||||
#endif
|
||||
VALGRIND_MAKE_MEM_DEFINED(&old, sizeof(old));
|
||||
(void)VALGRIND_MAKE_MEM_DEFINED(&old, sizeof(old));
|
||||
if (sigaction(signum, &sigact, &old) < 0) {
|
||||
if (errno != 0 && errno != EINVAL) {
|
||||
rb_bug_errno("sigaction", errno);
|
||||
|
|
Loading…
Reference in a new issue