gcc complains about %x

Поиск
Список
Период
Сортировка
Искать

gcc complains about %x

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
CVS tip is giving me this warning:

initdb.c: In function `locale_date_order':
initdb.c:2101: warning: `%x' yields only last 2 digits of year in some locales

I realize that the code does not care about that, but I care about not
seeing warnings.  Is there a way to avoid this construct?
		regards, tom lane

Re: gcc complains about %x

От:
Peter Eisentraut <peter_e@gmx.net>
Дата:
Tom Lane wrote:
> CVS tip is giving me this warning:
>
> initdb.c: In function `locale_date_order':
> initdb.c:2101: warning: `%x' yields only last 2 digits of year in
> some locales

This is fixed in GCC 3.4 (released April 2004) and later.

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/

FAQ