| От | Tom Lane |
|---|---|
| Тема | Re: Getting rid of warnings |
| Дата | |
| Msg-id | 20344.1169742830@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Getting rid of warnings (Magnus Hagander <magnus@hagander.net>) |
| Ответы |
Re: Getting rid of warnings
|
| Список | pgsql-patches |
Magnus Hagander <magnus@hagander.net> writes:
> Not sure I understand.
> The header had:
> isort(int4 *a, const int len)
> and the code had
> isort(int4 *a, int len)
Oh, I see. Yeah, that's inconsistent, though my thought would be to
remove the (rather useless) const decoration in the header. I believe
this coding is actually legal per C99, though, precisely because the
version in the header is only decoration --- callers of the function
do not care whether it thinks the parameter value is immutable inside
itself. The one at the function definition site is what counts ...
regards, tom lane
В списке pgsql-patches по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера