]> git.ipfire.org Git - thirdparty/glibc.git/commit
Fix string/bug-strncat1.c build with GCC 8.
authorJoseph Myers <joseph@codesourcery.com>
Tue, 14 Nov 2017 17:50:36 +0000 (17:50 +0000)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 22 Oct 2018 12:16:02 +0000 (14:16 +0200)
commit6ae2ca620a955f1e3465e58b5180c5a7fd596dd0
tree3c90de7e26acf1868056ade1f46477b50a176c3b
parentfe5978e1a5d7419de3a779823fb5ed0d1dcee8ff
Fix string/bug-strncat1.c build with GCC 8.

GCC 8 warns about strncat calls with truncated output.
string/bug-strncat1.c tests such a call; this patch disables the
warning for it.

Tested (compilation) with GCC 8 for x86_64-linux-gnu with
build-many-glibcs.py (in conjunction with Martin's patch to allow
glibc to build).

* string/bug-strncat1.c: Include <libc-diag.h>.
(main): Disable -Wstringop-truncation for strncat call for GCC 8.

(cherry picked from commit ec72135e5f1d061cb5cf7cd1b855fd6290be10d9)
ChangeLog
string/bug-strncat1.c