summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-24 21:00:03 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-24 21:00:03 +0000
commitb95336b2fe56585ab585ca7c17fbad4c145e9e2b (patch)
treebbcbb625ba73f1804e0e0af4022c859c968a857b
parentb63580b50f6d9102db873e20fc38695fa613991f (diff)
* addr2line.c (putce): suppress unused return value warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--addr2line.c5
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f672aff4738..d0e10ec3f54 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Sun Mar 24 10:38:24 2013 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
+
+ * addr2line.c (putce): suppress unused return value warning.
+
Mon Mar 25 02:01:03 2013 Narihiro Nakamura <authornari@gmail.com>
* proc.c (bm_free): need to clean up the mark flag of a free and
diff --git a/addr2line.c b/addr2line.c
index 40728cafbb6..5431a073c2c 100644
--- a/addr2line.c
+++ b/addr2line.c
@@ -694,8 +694,11 @@ static int kvprintf(char const *fmt, void (*func)(int), void *arg, int radix, va
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