gcc complains about %x

Started by Tom Laneabout 20 years ago2 messages
#1Tom 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

#2Peter Eisentraut
peter_e@gmx.net
In reply to: Tom Lane (#1)
Re: gcc complains about %x

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/