[前][次][番号順一覧][スレッド一覧]

ruby-changes:27869

From: kosaki <ko1@a...>
Date: Mon, 25 Mar 2013 06:00:16 +0900 (JST)
Subject: [ruby-changes:27869] kosaki:r39921 (trunk): * addr2line.c (putce): suppress unused return value warning.

kosaki	2013-03-25 06:00:03 +0900 (Mon, 25 Mar 2013)

  New Revision: 39921

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39921

  Log:
    * addr2line.c (putce): suppress unused return value warning.

  Modified files:
    trunk/ChangeLog
    trunk/addr2line.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 39920)
+++ ChangeLog	(revision 39921)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sun Mar 24 10:38:24 2013  KOSAKI Motohiro  <kosaki.motohiro@g...>
+
+	* addr2line.c (putce): suppress unused return value warning.
+
 Mon Mar 25 02:01:03 2013  Narihiro Nakamura  <authornari@g...>
 
         * proc.c (bm_free): need to clean up the mark flag of a free and
Index: addr2line.c
===================================================================
--- addr2line.c	(revision 39920)
+++ addr2line.c	(revision 39921)
@@ -694,8 +694,11 @@ static int kvprintf(char const *fmt, voi https://github.com/ruby/ruby/blob/trunk/addr2line.c#L694
 static void putce(int c)
 {
     char s[1];
+    ssize_t ret;
+
     s[0] = (char)c;
-    write(2, s, 1);
+    ret = write(2, s, 1);
+    (void)ret;
 }
 
 int

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]