Re: Further news on Clang - spurious warnings

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: Further news on Clang - spurious warnings
Дата
Msg-id 4E391622.90802@enterprisedb.com
обсуждение исходный текст
Ответ на Re: Further news on Clang - spurious warnings  (Peter Geoghegan <peter@2ndquadrant.com>)
Ответы Re: Further news on Clang - spurious warnings  (Peter Geoghegan <peter@2ndquadrant.com>)
Список pgsql-hackers
On 03.08.2011 12:25, Peter Geoghegan wrote:
> Attached patch removes the tautologolical part of an evaluated
> expression, fixing the problem flagged by this quite valid warning.

The check is only tautological if the compiler implements enums as 
unsigned integers. Whether enums are signed or not is 
implementation-dependent. Perhaps cast status to unsigned or signed 
explicitly before the checks?

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Peter Geoghegan
Дата:
Сообщение: Re: Further news on Clang - spurious warnings
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: Further news on Clang - spurious warnings