Re: pgsql: Silence some Coverity warnings and improve code consistency.
В списке pgsql-committers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: pgsql: Silence some Coverity warnings and improve code consistency. |
| Дата | |
| Msg-id | 2786228.1618236061@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: pgsql: Silence some Coverity warnings and improve code consistency. (Peter Eisentraut <peter.eisentraut@enterprisedb.com>) |
| Список | pgsql-committers |
Peter Eisentraut <peter.eisentraut@enterprisedb.com> writes:
> On 11.04.21 23:02, Tom Lane wrote:
>> ... or more accurately, with an LL constant, which is not project
>> style. Make all of these use INT64CONST(), as we do elsewhere.
> I think this style could be considered obsolete because C99 requires LL
> constants, and configure checks for it.
I'm not worried about whether compilers will take LL --- after all, we
also make free use of "long long" these days. I am worried that
it does not necessarily equate to int64 exactly.
In any case, I'm not a fan of TIMTOWTDI. If we want to remove
[U]INT64CONST in favor of [U]LL, we should do so across the board,
so as to maintain a consistent project style.
regards, tom lane
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера