precompose_utf8: drop unused variable

The result of iconv is assigned to a variable, but we never use it (instead, we check errno and whether the function consumed all bytes). Let's drop the assignment, as it triggers gcc's -Wunused-but-set-variable. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed Oct 4, 2015 at 23:43 UTC e2b021eb5b5ce2f4be3c10f1f8063981b1a53053
1 file changed +1 -2
compat/precompose_utf8.c
+1 -2
@@ -139,9 +139,8 @@ struct dirent_prec_psx *precompose_utf8_readdir(PREC_DIR *prec_dir)
139 size_t inleft = namelenz;
140 char *outpos = &prec_dir->dirent_nfc->d_name[0];
141 size_t outsz = prec_dir->dirent_nfc->max_name_len;
142 - size_t cnt;
142 errno = 0;
144 - cnt = iconv(prec_dir->ic_precompose, &cp, &inleft, &outpos, &outsz);
143 + iconv(prec_dir->ic_precompose, &cp, &inleft, &outpos, &outsz);
144 if (errno || inleft) {
145 /*
146 * iconv() failed and errno could be E2BIG, EILSEQ, EINVAL, EBADF