diff options
| author | Simon Tatham <anakin@pobox.com> | 2012-05-03 17:43:21 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2012-05-03 17:43:21 +0000 |
| commit | 689093cc870e60ab82a176c33613fa0aeaa0bf69 (patch) | |
| tree | 0ae533c4c553d0cd50759686363c211104c66910 /wcwidth.c | |
| parent | ca37980e070dcd96d27d299bd4426858ec37ceae (diff) | |
| download | halibut-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.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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); |