Re: clang's static checker report.

Поиск
Список
Период
Сортировка
От Nicolas Barbier
Тема Re: clang's static checker report.
Дата
Msg-id b0f3f5a10909150420p3e60e4cap96386cfd7be430a0@mail.gmail.com
обсуждение исходный текст
Ответ на Re: clang's static checker report.  (Michael Meskes <meskes@postgresql.org>)
Ответы Re: clang's static checker report.  (Grzegorz Jaskiewicz <gj@pointblue.com.pl>)
Список 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 по дате отправления:

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Streaming Replication patch for CommitFest 2009-09
Следующее
От: Marcos Luis Ortiz Valmaseda
Дата:
Сообщение: PGCluster-II Progress