| От | Tom Lane |
|---|---|
| Тема | Re: Compiler warnings with --enable-dtrace |
| Дата | |
| Msg-id | 25055.1525713006@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Compiler warnings with --enable-dtrace (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-hackers |
I wrote:
> Thomas Munro <thomas.munro@enterprisedb.com> writes:
>> Maybe we should do what the Perl people do[2] and post-process the
>> generated header file to add const qualifiers? Please see attached.
> +1 for the idea. I notice that Perl's version of this is careful
> not to munge lines that already contain "const" ... do we need to
> worry about that?
Oh, I take that back --- on closer look, I see that you're getting
the same effect by checking for a preceding paren or comma. That's
arguably better than their way because it works if there's a mix of
const and not-const parameters on one input line, though likely no
dtrace implementation actually emits such things.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера