Disable -Wstringop-overflow warning after checking code path of caller.
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 13 Jun 2020 08:04:33 +0000 (10:04 +0200)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 13 Jun 2020 08:04:33 +0000 (10:04 +0200)
commit0cfc34ad1293a5e19f1dc67c461c58d99222ac9d
treeb27cbf349ca11ddc9581070366a4b19fd0192521
parent8e3b453e0877288685695ca3e927a2da3b5f5b78
Disable -Wstringop-overflow warning after checking code path of caller.

The warning that is disabled, only on this single line, has been
inspected and found to be not applicable; it is known that the size
of the buffer is safe.

libgfortran/ChangeLog:

2020-06-13  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR libfortran/95313
* io/write.c (ztoa_big): Disable -Wstringop-overflow for one
line.
gcc/testsuite/gfortran.dg/finalize_36.f90 [new file with mode: 0644]
libgfortran/io/write.c