From 689093cc870e60ab82a176c33613fa0aeaa0bf69 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Thu, 3 May 2012 17:43:21 +0000 Subject: Remove a bunch of unused variables spotted by Ubuntu 12.04's gcc. [originally from svn r9478] --- wcwidth.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'wcwidth.c') diff --git a/wcwidth.c b/wcwidth.c index 269359f..bc4ae7f 100644 --- a/wcwidth.c +++ b/wcwidth.c @@ -144,13 +144,12 @@ int ustrwid(wchar_t const *s, int charset) wid = 0; while (len > 0) { - int err, ret; + int err; wchar_t const *s_orig; err = 0; s_orig = s; - ret = charset_from_unicode(&s, &len, buf, lenof(buf), - charset, &state, &err); + charset_from_unicode(&s, &len, buf, lenof(buf), charset, &state, &err); wid += wcswidth(s_orig, s - s_orig); if (err) { assert(len > 0 && *s); -- cgit v1.1