Re: Fixes for compiler warnings

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: Fixes for compiler warnings
Дата
Msg-id 49746B8A.4020601@hagander.net
обсуждение исходный текст
Ответ на Re: Fixes for compiler warnings  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Fixes for compiler warnings  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-hackers
Tom Lane wrote:
> Magnus, you wanna clean up the mess?  And what patch does the "few more"
> comment refer back to?
> 
> A workable solution that both silences the warning and preserves
> localizability is to follow a coding pattern like this:
> 
>     const char *mymsg = gettext_noop("Some text to be localized.");
> 
>     ...
> 
>     errmsg("%s", _(mymsg))        // not just errmsg(mymsg)

For a change like
http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/misc/guc.c?r1=1.480&r2=1.481

Will it work to stick _(hintmsg) around it there?


//Magnus


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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Hot Standby dev build (v8)
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Hot Standby dev build (v8)