Re: clang's static checker report.

From: Nicolas Barbier <nicolas(dot)barbier(at)gmail(dot)com>
To: Michael Meskes <meskes(at)postgresql(dot)org>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: clang's static checker report.
Date: 2009-09-15 11:20:16
Message-ID: b0f3f5a10909150420p3e60e4cap96386cfd7be430a0@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

2009/9/15 Michael Meskes <meskes(at)postgresql(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Marcos Luis Ortiz Valmaseda 2009-09-15 11:29:48 PGCluster-II Progress
Previous Message Heikki Linnakangas 2009-09-15 10:53:52 Re: Streaming Replication patch for CommitFest 2009-09