Re: pgsql: Remove unnecessary casts in free() and pfree()

Поиск
Список
Период
Сортировка
От Justin Pryzby
Тема Re: pgsql: Remove unnecessary casts in free() and pfree()
Дата
Msg-id 20220827112304.GL2342@telsasoft.com
обсуждение исходный текст
Ответ на pgsql: Remove unnecessary casts in free() and pfree()  (Peter Eisentraut <peter@eisentraut.org>)
Ответы Re: pgsql: Remove unnecessary casts in free() and pfree()  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-committers
On Fri, Aug 26, 2022 at 02:02:33PM +0000, Peter Eisentraut wrote:
> Remove unnecessary casts in free() and pfree()

This seems to be breaking cfbot's "warnings" test.

[07:49:48.983] label.c:665:10: error: passing argument 1 of ‘pfree’ discards ‘const’ qualifier from pointer target type
[-Werror=discarded-qualifiers]
[07:49:48.983]   665 |    pfree(temp);

I imagine it would've been reported earlier, except that this commit was within
60min of the commit that broke perl.

-- 
Justin



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

Предыдущее
От: John Naylor
Дата:
Сообщение: pgsql: Be more careful to avoid including system headers after perl.h
Следующее
От: Alexander Korotkov
Дата:
Сообщение: pgsql: Fix typo in comment for writetuple() function