NetBSD-Bugs archive

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

lib/45997: Remove unused variables.Remove un



>Number:         45997
>Category:       lib
>Synopsis:       Remove unused variables.Remove un
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 12 11:35:01 +0000 2012
>Originator:     Henning Petersen
>Release:        NetBSD-current
>Organization:
>Environment:
>Description:
Remove unused variables.
Found by cppcheck.
>How-To-Repeat:

>Fix:
diff -u -p -r1.15 citrus_iconv_std.c
--- lib/libc/citrus/modules/citrus_iconv_std.c  13 Nov 2006 19:08:19 -0000      
1.15
+++ lib/libc/citrus/modules/citrus_iconv_std.c  5 Feb 2012 08:14:51 -0000
@@ -418,7 +418,6 @@ _citrus_iconv_std_iconv_init_context(str
 {
        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 -u -p -r1.2 citrus_ues.c
--- lib/libc/citrus/modules/citrus_ues.c        7 Dec 2010 22:01:22 -0000       
1.2
+++ lib/libc/citrus/modules/citrus_ues.c        5 Feb 2012 08:19:58 -0000
@@ -212,7 +212,7 @@ _citrus_UES_mbrtowc_priv(_UESEncodingInf
        _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 -u -p -r1.11 citrus_utf1632.c
--- lib/libc/citrus/modules/citrus_utf1632.c    20 Mar 2010 18:15:32 -0000      
1.11
+++ lib/libc/citrus/modules/citrus_utf1632.c    5 Feb 2012 08:19:59 -0000
@@ -250,7 +250,6 @@ _citrus_UTF1632_wcrtomb_priv(_UTF1632Enc
                             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