| От | Peter Eisentraut |
|---|---|
| Тема | Re: -Wcast-qual cleanup, part 1 |
| Дата | |
| Msg-id | 1320955063.20692.2.camel@vanquo.pezone.net обсуждение |
| Ответ на | Re: -Wcast-qual cleanup, part 1 (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-hackers |
On mån, 2011-11-07 at 10:07 -0500, Tom Lane wrote: > >> 2. Macros accessing structures should come in two variants: a > "get" > >> version, and a "set"/anything else version, so that the "get" > version > >> can preserve the const qualifier. > > I'm not prepared to buy into that as a general coding rule. > > Maybe it would be better to just add -Wno-cast-qual to CFLAGS. OK, I understand the concerns that have been raised here and in the other thread. I'll work instead on removing "lying" const qualifiers on the upper layers that were the causes of attempting to push the consts down.
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера