cvs commit: src/bin/ls extern.h ls.c print.c util.c src/bin/pax
ar_io.c ar_subs.c cache.c cpio.c extern.h gen_subs.c getoldopt.c
options.c pat_rep.c pax.c pax.h src/bin/ps fmt.c src/bin/rcp rcp.c
Giorgos Keramidas
keramida at ceid.upatras.gr
Sun May 4 05:57:00 PDT 2003
On 2003-05-04 00:29, Dag-Erling Smorgrav <des at ofug.org> wrote:
> Giorgos Keramidas <keramida at ceid.upatras.gr> writes:
> > - (void)strftime(buf, sizeof(buf), "%e%b%y", tp);
> > + (void)strftime(buf, sizeof(buf), "%e%b%Y", tp);
>
> [...]
> Anyway, the point is that in this case the warning is wrong. The code
> is not Y2K safe but it can't be made Y2K safe without breaking the
> formatting - and it doesn't even need to be Y2K safe in the first
> place since the date displayed is known to lie between boottime and
> timeofday so you'd have to have a 100-year uptime for it to become a
> problem.
Ah, thanks :)
Then I should look at WARNS and why it doesn't include -Wno-format-y2k
in the case of WARNS=1.
More information about the cvs-all
mailing list