Re: Questions about warnings

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: Questions about warnings
Дата
Msg-id 20070125134949.GC13744@svana.org
обсуждение исходный текст
Ответ на Re: Questions about warnings  (Gregory Stark <stark@enterprisedb.com>)
Список pgsql-hackers
On Thu, Jan 25, 2007 at 01:20:10PM +0000, Gregory Stark wrote:
> "const char **" means the character at the end of the pointer chain is
> constant. Which means my previous message is misguided, ignore it, sorry. In
> short, yes, this is a limitation of the const syntax in C and you have to cast
> it away in this case.

Well, you can say things like:

char * const *ptr

Which means that *ptr is const, but ptr and **ptr are not. Each of
those can be made const/not const as desired...

What is intended here is quite a different question, the use of pointers
in that part of psql is a bit haphazard at times. FWIW, Coverity
complains about stuff here too, but I just marked it all WONTFIX :).

Have anice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: Questions about warnings
Следующее
От: "Simon Riggs"
Дата:
Сообщение: WAL Record Header Size Reduction