Re: clang's static checker report. - Mailing list pgsql-hackers

From Michael Meskes
Subject Re: clang's static checker report.
Date
Msg-id 20090915100601.GA21238@feivel.credativ.lan
Whole thread Raw
In response to Re: clang's static checker report.  (Grzegorz Jaskiewicz <gj@pointblue.com.pl>)
Responses Re: clang's static checker report.
List pgsql-hackers
On Mon, Sep 14, 2009 at 06:39:11PM +0100, Grzegorz Jaskiewicz wrote:
> meanwhile, since quite a lot stuff went in over weekend, and since
> Yesterday, new report at:
> 
> http://zlew.org/postgresql_static_check/scan-build-2009-09-14-1/

Looking at
http://zlew.org/postgresql_static_check/scan-build-2009-09-14-1/report-3LPmKK.html#EndPath
it tells me that the value stored to 'counter' is never used. However, the
"counter++" is called inside a loop and thus will be read the next time the
loop is run.

Looks to me like a bug, or did I miss something?

Michael
-- 
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org
ICQ: 179140304, AIM/Yahoo/Skype: michaelmeskes, Jabber: meskes@jabber.org
Go VfL Borussia! Go SF 49ers! Use Debian GNU/Linux! Use PostgreSQL!


pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: Resjunk sort columns, Heikki's index-only quals patch, and bug #5000
Next
From: Sam Mason
Date:
Subject: Re: [BUGS] BUG #5053: domain constraints still leak