summaryrefslogtreecommitdiff
path: root/wcwidth.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2012-05-03 17:43:21 +0000
committerSimon Tatham <anakin@pobox.com>2012-05-03 17:43:21 +0000
commit689093cc870e60ab82a176c33613fa0aeaa0bf69 (patch)
tree0ae533c4c553d0cd50759686363c211104c66910 /wcwidth.c
parentca37980e070dcd96d27d299bd4426858ec37ceae (diff)
downloadhalibut-689093cc870e60ab82a176c33613fa0aeaa0bf69.zip
halibut-689093cc870e60ab82a176c33613fa0aeaa0bf69.tar.gz
halibut-689093cc870e60ab82a176c33613fa0aeaa0bf69.tar.bz2
halibut-689093cc870e60ab82a176c33613fa0aeaa0bf69.tar.xz
Remove a bunch of unused variables spotted by Ubuntu 12.04's gcc.
[originally from svn r9478]
Diffstat (limited to 'wcwidth.c')
-rw-r--r--wcwidth.c5
1 files changed, 2 insertions, 3 deletions
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);