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

From Nicolas Barbier
Subject Re: clang's static checker report.
Date
Msg-id b0f3f5a10909150420p3e60e4cap96386cfd7be430a0@mail.gmail.com
Whole thread Raw
In response to Re: clang's static checker report.  (Michael Meskes <meskes@postgresql.org>)
Responses Re: clang's static checker report.
List pgsql-hackers
2009/9/15 Michael Meskes <meskes@postgresql.org>:

> 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?

I guess that the problem is that the variable "counter" is declared
inside that loop itself.

Nicolas


pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: Streaming Replication patch for CommitFest 2009-09
Next
From: Marcos Luis Ortiz Valmaseda
Date:
Subject: PGCluster-II Progress