Re: [PATCH] Silent -Wformat-truncation warnings in date_and_time.c.

2019-05-03 Thread Steve Kargl
On Fri, May 03, 2019 at 12:53:06PM +0200, Martin Liška wrote: > > The patch is about suppression of the following warning: > > /home/gcc/buildworker/zenith-gcc-trunk-weekly/build/libgfortran/intrinsics/date_and_time.c:165:33: > warning: ‘%04d’ directive output may be truncated writing between 4

Re: [PATCH] Silent -Wformat-truncation warnings in date_and_time.c.

2019-05-03 Thread Dominique d'Humières
Martin, With your patch I still see ../../../work/libgfortran/intrinsics/date_and_time.c:168:33: warning: '%03d' directive output may be truncated writing between 3 and 8 bytes into a region of size between 0 and 4 [-Wformat-truncation=] TIA Dominique

[PATCH] Silent -Wformat-truncation warnings in date_and_time.c.

2019-05-03 Thread Martin Liška
Hi. The patch is about suppression of the following warning: /home/gcc/buildworker/zenith-gcc-trunk-weekly/build/libgfortran/intrinsics/date_and_time.c:165:33: warning: ‘%04d’ directive output may be truncated writing between 4 and 11 bytes into a region of size 9 [-Wformat-truncation=]