casting away const in comparators

Поиск
Список
Период
Сортировка
От Mark Dilger
Тема casting away const in comparators
Дата
Msg-id 18DB7175-98EA-4C79-8B67-F4A57692DE5D@gmail.com
обсуждение исходный текст
Список pgsql-hackers
Friends,

comparators usually take arguments like

  (const void *a, const void *b)

and do something read-only to a and b.  In our
sources, we typically cast these to something else,
like (char *), and do something read-only.  This
generates a lot of warnings if using -Wcast-qual.
To fix that, I have converted the casts to not cast
away const.  Please find my changes, attached.

Mark Dilger


Вложения

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

Предыдущее
От: Mark Dilger
Дата:
Сообщение: should xlog_outdesc modify its argument?
Следующее
От: Mark Dilger
Дата:
Сообщение: typedef FileName not const?