Re: DTrace compiler warnings

Поиск
Список
Период
Сортировка
От Zdenek Kotala
Тема Re: DTrace compiler warnings
Дата
Msg-id 1258208725.1456.27.camel@localhost
обсуждение исходный текст
Ответ на DTrace compiler warnings  (Bernd Helmle <mailings@oopsware.de>)
Ответы Re: DTrace compiler warnings
Список pgsql-hackers
Hmm, const is also problem on solaris. dtrace generates probe.h file and
eats const. It generates following noise on solaris build:

"postgres.c", line 554: warning: argument #1 is incompatible with
prototype:prototype: pointer to char : "../../../src/include/utils/probes.h",
line 582argument : pointer to const char

IIRC, it was discussed. I cc Robert. He should know answer why const is
ignored.
Zdenek


Bernd Helmle píše v so 14. 11. 2009 v 14:54 +0100:
> I'm just seeing these kind of compiler warnings in current HEAD:
> 
> pgstat.c: In function ‘pgstat_report_activity’:
> pgstat.c:2276: warning: passing argument 1 of 
> ‘__dtrace_probe$postgresql$statement__status$v1$63686172202a’ discards 
> qualifiers from pointer target type
> 
> There are more of them (e.g. postgres.c), all passing a const char pointer.
> 
> Platform is Snow Leopard, 10.6.2, gcc 4.2.1
> 
> -- 
> Thanks
> 
>     Bernd
> 




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

Предыдущее
От: Bernd Helmle
Дата:
Сообщение: DTrace compiler warnings
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: Patch committers