On Sep 30 2019, Jerry DeLisle <jvdeli...@charter.net> wrote: > The first attempt to fix (above) is completely off. I have tried various > combinations of code changes and I am beginning to think the warning is > bogus: > > In function ‘btoa_big’, > inlined from ‘write_b’ at ../../../trunk/libgfortran/io/write.c:1217:11: > ../../../trunk/libgfortran/io/write.c:1052:6: warning: writing 1 byte into > a region of size 0 [-Wstringop-overflow=] > 1052 | *q = '\0'; > | ~~~^~~~~~
If len > sizeof (GFC_UINTEGER_LARGEST), then you are writing more than GFC_BTOA_BUF_SIZE, don't you? Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."