Thread: gcc complains about %x

gcc complains about %x

From
Tom Lane
Date:
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

From
Peter Eisentraut
Date:
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/