| От | Tom Lane |
|---|---|
| Тема | Re: Fix C23 compiler warning |
| Дата | |
| Msg-id | 1333354.1729439815@sss.pgh.pa.us обсуждение |
| Ответы |
Re: Fix C23 compiler warning
|
| Список | pgsql-hackers |
Peter Eisentraut <peter@eisentraut.org> writes:
> This no longer works because in C23, because an empty argument list is
> now equivalent to (void), rather than an indeterminate one as before.
> And so this results in an incompatible function pointer type and
> compiler warnings. (gcc and clang agree on this.)
> I think we can fix this easily with a few struct forward declarations,
> preserving the goal of not including extra header files, like this:
Do the struct declarations themselves need comments? Other
places do this like
struct PlannerInfo; /* avoid including pathnodes.h here */
LGTM other than that nit.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера