From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mo-p00-ob.rzone.de (mo-p00-ob.rzone.de [81.169.146.161]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id p9BEv6UI000153 for ; Tue, 11 Oct 2011 10:57:07 -0400 (EDT) X-RZG-AUTH: :JiIXek6mfvEEUpFQdo7Fj1/zg48CFjWjQv0cW+St/nW/avgusCdvwXOZ/NA7x/bslxlDPy6G726REW7piU2JIqNTwRM= X-RZG-CLASS-ID: mo00 Received: from britannica.bec.de ([2001:6f8:13f0:0:5e26:aff:fe1e:99a9]) by smtp.strato.de (fruni mo41) (RZmta 26.10 AUTH) with (DHE-RSA-AES128-SHA encrypted) ESMTPA id i0483fn9BE75TU for ; Tue, 11 Oct 2011 16:56:43 +0200 (MEST) Received: by britannica.bec.de (sSMTP sendmail emulation); Tue, 11 Oct 2011 16:56:41 +0200 Date: Tue, 11 Oct 2011 16:56:41 +0200 From: Joerg Sonnenberger To: discuss@mdocml.bsd.lv Subject: Re: mdocml version 1.12.0 available Message-ID: <20111011145641.GA25314@britannica.bec.de> References: <4E90B130.3080008@bsd.lv> X-Mailinglist: mdocml-discuss Reply-To: discuss@mdocml.bsd.lv MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="liOOAslEiF7prFVr" Content-Disposition: inline In-Reply-To: <4E90B130.3080008@bsd.lv> User-Agent: Mutt/1.5.21 (2010-09-15) --liOOAslEiF7prFVr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, Oct 08, 2011 at 10:23:12PM +0200, Kristaps Dzonsons wrote: > I'm pleased to announce mdocml 1.12.0, now at http://mdocml.bsd.lv/. Attached is the report from clang -analyze. Food for thought ;) Joerg --liOOAslEiF7prFVr Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="clang.txt" /home/joerg/work/NetBSD/cvs/src/external/bsd/mdocml/lib/libmandoc/../../dist/man_validate.c:217:10: warning: Assigned value is always the same as the existing value for (cp = p; NULL != (p = strchr(p, '\t')); p++) { ~~ ^ ~ /home/joerg/work/NetBSD/cvs/src/external/bsd/mdocml/lib/libmandoc/../../dist/man_validate.c:216:2: warning: Value stored to 'cp' is never read cp = p = n->string; ^ ~~~~~~~~~~~~~ /home/joerg/work/NetBSD/cvs/src/external/bsd/mdocml/lib/libmandoc/../../dist/man_validate.c:476:2: warning: Value stored to 'n' is never read n = n->child; ^ ~~~~~~~~ 3 warnings generated. /home/joerg/work/NetBSD/cvs/src/external/bsd/mdocml/lib/libmandoc/../../dist/mdoc_macro.c:1449:3: warning: Value stored to 'head' is never read head = m->last; ^ ~~~~~~~ /home/joerg/work/NetBSD/cvs/src/external/bsd/mdocml/lib/libmandoc/../../dist/mdoc_macro.c:1457:3: warning: Value stored to 'body' is never read body = m->last; ^ ~~~~~~~ 2 warnings generated. /home/joerg/work/NetBSD/cvs/src/external/bsd/mdocml/lib/libmandoc/../../dist/mdoc_validate.c:549:10: warning: Assigned value is always the same as the existing value for (cp = p; NULL != (p = strchr(p, '\t')); p++) { ~~ ^ ~ /home/joerg/work/NetBSD/cvs/src/external/bsd/mdocml/lib/libmandoc/../../dist/mdoc_validate.c:548:2: warning: Value stored to 'cp' is never read cp = p; ^ ~ 2 warnings generated. /home/joerg/work/NetBSD/cvs/src/external/bsd/mdocml/lib/libmandoc/../../dist/tbl_data.c:152:29: warning: The left operand to '+' is always 0 if (p[pos] == 'T' && p[pos + 1] == '}') { ~~~ ^ 1 warning generated. /home/joerg/work/NetBSD/cvs/src/external/bsd/mdocml/lib/libmandoc/../../dist/mandoc.c:311:2: warning: Value stored to 'rlim' is never read rlim = -1; ^ ~~ 1 warning generated. /home/joerg/work/NetBSD/cvs/src/external/bsd/mdocml/bin/mandoc/../../dist/main.c:136:2: warning: Value stored to 'argc' is never read argc -= optind; ^ ~~~~~~ 1 warning generated. /home/joerg/work/NetBSD/cvs/src/external/bsd/mdocml/bin/mandoc/../../dist/mdoc_html.c:502:3: warning: Value stored to 't' is never read t = print_otag(h, TAG_TABLE, 3, tag); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/joerg/work/NetBSD/cvs/src/external/bsd/mdocml/bin/mandoc/../../dist/mdoc_html.c:507:3: warning: Value stored to 't' is never read t = print_otag(h, TAG_TABLE, 2, tag); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 warnings generated. /home/joerg/work/NetBSD/cvs/src/external/bsd/mdocml/bin/mandoc/../../dist/mdoc_term.c:617:7: warning: Access to field 'prev' results in a dereference of a null pointer (loaded from variable 'n') if (n->prev && MDOC_It == n->prev->tok) { ^ /home/joerg/work/NetBSD/cvs/src/external/bsd/mdocml/bin/mandoc/../../dist/mdoc_term.c:611:7: warning: Access to field 'prev' results in a dereference of a null pointer (loaded from variable 'n') if (n->prev && MDOC_It == n->prev->tok) ^ 2 warnings generated. /home/joerg/work/NetBSD/cvs/src/external/bsd/mdocml/bin/mandoc/../../dist/term.c:615:3: warning: Value stored to 'c' is never read c = 0; ^ ~ 1 warning generated. /home/joerg/work/NetBSD/cvs/src/external/bsd/mdocml/bin/mandoc/../../dist/term_ps.c:492:3: warning: Value stored to 'pp' is never read pp = "letter"; ^ ~~~~~~~~ /home/joerg/work/NetBSD/cvs/src/external/bsd/mdocml/bin/mandoc/../../dist/term_ps.c:579:2: warning: Value stored to 'len' is never read len = vsnprintf(&p->ps->psmarg[pos], PS_BUFSLOP, fmt, ap); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 warnings generated. --liOOAslEiF7prFVr-- -- To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv