summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-14 17:43:55 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-14 17:43:55 +0000
commit30486375713988a02c8463185e2b4613e042aaea (patch)
tree32915616d8aa1d444b5daa436ec511547a05a39f
parent460d8c11cd45ff3e85cb90551c7edabc2c831264 (diff)
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
-rw-r--r--signal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/signal.c b/signal.c
index cd96b03e08e..62d86562bba 100644
--- a/signal.c
+++ b/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);