ruby-changes:29920
From: nobu <ko1@a...>
Date: Mon, 15 Jul 2013 02:44:03 +0900 (JST)
Subject: [ruby-changes:29920] nobu:r41972 (trunk): signal.c: suppress a warning
nobu 2013-07-15 02:43:55 +0900 (Mon, 15 Jul 2013) New Revision: 41972 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41972 Log: signal.c: suppress a warning * signal.c (ruby_signal): suppress unused-value warning. Modified files: trunk/signal.c Index: signal.c =================================================================== --- signal.c (revision 41971) +++ signal.c (revision 41972) @@ -534,7 +534,7 @@ ruby_signal(int signum, sighandler_t han https://github.com/ruby/ruby/blob/trunk/signal.c#L534 ) 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); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/