This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Fix warning from latest GCC in tst-printf.c
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Steve Ellcey <sellcey at caviumnetworks dot com>
- Cc: <libc-alpha at sourceware dot org>
- Date: Tue, 1 Nov 2016 17:37:37 +0000
- Subject: Re: [PATCH] Fix warning from latest GCC in tst-printf.c
- Authentication-results: sourceware.org; auth=none
- References: <1477003405.8523.21.camel@caviumnetworks.com> <1478020891.2891.45.camel@caviumnetworks.com>
On Tue, 1 Nov 2016, Steve Ellcey wrote:
> Ping. One of the snprintf statements in this test is using a %.999999u
> format so it is obvious that the test wants to test formats that would
> go beyond the limit of the snprintf buffer and so we should ignore the
> warnings in this test.
OK provided you've tested that this change works with older GCC that lack
the new option (otherwise it would need to be conditional on the GCC
version).
--
Joseph S. Myers
joseph@codesourcery.com