Re: patch: Use pg_assume in jsonb_util.c to fix GCC 15 warnings
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: patch: Use pg_assume in jsonb_util.c to fix GCC 15 warnings |
| Дата | |
| Msg-id | 85365.1752343493@sss.pgh.pa.us обсуждение |
| Ответ на | Re: patch: Use pg_assume in jsonb_util.c to fix GCC 15 warnings (Andres Freund <andres@anarazel.de>) |
| Ответы |
Re: patch: Use pg_assume in jsonb_util.c to fix GCC 15 warnings
|
| Список | pgsql-hackers |
Andres Freund <andres@anarazel.de> writes:
> On 2025-07-12 13:42:54 -0400, Tom Lane wrote:
>> I don't care for this patch: replacing an Assert with pg_assume just
>> seems like a very bad idea.
> That shouldn't be a problem - pg_assume() is defined to be an Assert() in
> USE_ASSERT_CHECKING builds.
Ah, my bad. But there's still the question of exactly what reasoning
the compiler is using to arrive at the conclusion that it need not
warn given these assertions, and whether we want to rely on that
reasoning not changing. I'd prefer to simplify matters.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера