This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] misc: Add twalk_r function
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>
- Cc: Florian Weimer <fweimer at redhat dot com>, <libc-alpha at sourceware dot org>
- Date: Thu, 2 May 2019 16:43:38 +0000
- Subject: Re: [PATCH] misc: Add twalk_r function
- References: <87ef5lezyp.fsf@oldenburg2.str.redhat.com> <7bf390ba-aa66-5c90-b39b-e23f75156131@linaro.org> <87y33q4sbb.fsf@oldenburg2.str.redhat.com> <6082DEAB-9EBE-496F-A0B6-FAEBB15148F9@linaro.org>
I'm seeing (at least with GCC 8):
tst-tsearch.c: In function 'walk_tree.constprop':
tst-tsearch.c:231:3: error: 'first_list_size' may be used uninitialized in this function [-Werror=maybe-uninitialized]
for (size_t i = 0; i < first_list_size && i < walk_trace_size (&walk_trace);
^~~
https://sourceware.org/ml/libc-testresults/2019-q2/msg00121.html
--
Joseph S. Myers
joseph@codesourcery.com