summaryrefslogtreecommitdiff
path: root/addr2line.c
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 /addr2line.c
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
Diffstat (limited to 'addr2line.c')
-rw-r--r--addr2line.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/addr2line.c b/addr2line.c
index 40728cafbb..5431a073c2 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