Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/citrus/modules Remove unused variables. From cppche...



details:   https://anonhg.NetBSD.org/src/rev/623acb2920af
branches:  trunk
changeset: 773665:623acb2920af
user:      wiz <wiz%NetBSD.org@localhost>
date:      Sun Feb 12 13:51:29 2012 +0000

description:
Remove unused variables. From cppcheck via Henning Petersen in PR 45997.

diffstat:

 lib/libc/citrus/modules/citrus_iconv_std.c |  5 ++---
 lib/libc/citrus/modules/citrus_ues.c       |  6 +++---
 lib/libc/citrus/modules/citrus_utf1632.c   |  5 ++---
 3 files changed, 7 insertions(+), 9 deletions(-)

diffs (79 lines):

diff -r 2226a9a95479 -r 623acb2920af lib/libc/citrus/modules/citrus_iconv_std.c
--- a/lib/libc/citrus/modules/citrus_iconv_std.c        Sun Feb 12 13:48:45 2012 +0000
+++ b/lib/libc/citrus/modules/citrus_iconv_std.c        Sun Feb 12 13:51:29 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: citrus_iconv_std.c,v 1.15 2006/11/13 19:08:19 tnozaki Exp $    */
+/*     $NetBSD: citrus_iconv_std.c,v 1.16 2012/02/12 13:51:29 wiz Exp $        */
 
 /*-
  * Copyright (c)2003 Citrus Project,
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: citrus_iconv_std.c,v 1.15 2006/11/13 19:08:19 tnozaki Exp $");
+__RCSID("$NetBSD: citrus_iconv_std.c,v 1.16 2012/02/12 13:51:29 wiz Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include <assert.h>
@@ -418,7 +418,6 @@
 {
        const struct _citrus_iconv_std_shared *is = cv->cv_shared->ci_closure;
        struct _citrus_iconv_std_context *sc;
-       int ret;
        size_t szpssrc, szpsdst, sz;
        char *ptr;
 
diff -r 2226a9a95479 -r 623acb2920af lib/libc/citrus/modules/citrus_ues.c
--- a/lib/libc/citrus/modules/citrus_ues.c      Sun Feb 12 13:48:45 2012 +0000
+++ b/lib/libc/citrus/modules/citrus_ues.c      Sun Feb 12 13:51:29 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: citrus_ues.c,v 1.2 2010/12/07 22:01:22 joerg Exp $ */
+/* $NetBSD: citrus_ues.c,v 1.3 2012/02/12 13:51:29 wiz Exp $ */
 
 /*-
  * Copyright (c)2006 Citrus Project,
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: citrus_ues.c,v 1.2 2010/12/07 22:01:22 joerg Exp $");
+__RCSID("$NetBSD: citrus_ues.c,v 1.3 2012/02/12 13:51:29 wiz Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include <assert.h>
@@ -212,7 +212,7 @@
        _UESState * __restrict psenc, size_t * __restrict nresult)
 {
        const char *s0;
-       int ch, head, tail, i, num;
+       int ch, head, tail, num;
        wchar_t hi, wc;
 
        _DIAGASSERT(ei != NULL);
diff -r 2226a9a95479 -r 623acb2920af lib/libc/citrus/modules/citrus_utf1632.c
--- a/lib/libc/citrus/modules/citrus_utf1632.c  Sun Feb 12 13:48:45 2012 +0000
+++ b/lib/libc/citrus/modules/citrus_utf1632.c  Sun Feb 12 13:51:29 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: citrus_utf1632.c,v 1.11 2010/03/20 18:15:32 tnozaki Exp $      */
+/*     $NetBSD: citrus_utf1632.c,v 1.12 2012/02/12 13:51:29 wiz Exp $  */
 
 /*-
  * Copyright (c)2003 Citrus Project,
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: citrus_utf1632.c,v 1.11 2010/03/20 18:15:32 tnozaki Exp $");
+__RCSID("$NetBSD: citrus_utf1632.c,v 1.12 2012/02/12 13:51:29 wiz Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include <assert.h>
@@ -250,7 +250,6 @@
                             wchar_t wc, _UTF1632State *psenc,
                             size_t *nresult)
 {
-       int ret;
        wchar_t wc2;
        static const char _bom[4] = {
 #if BYTE_ORDER == BIG_ENDIAN



Home | Main Index | Thread Index | Old Index