This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Initialize strtok_r's saveptr to NULL
- From: Pedro Alves <palves at redhat dot com>
- To: Manish Goregaokar <manish at mozilla dot com>, gdb-patches at sourceware dot org
- Date: Wed, 29 Jun 2016 16:54:57 +0100
- Subject: Re: [PATCH] Initialize strtok_r's saveptr to NULL
- Authentication-results: sourceware.org; auth=none
- References: <CAFOnWknprKQpWy3TU1x7cZZ7n+=nJyw7nhHme9KtLxiv8GasbQ at mail dot gmail dot com> <faa72bac-65a0-ad08-b00c-ae95c2ec44f6 at redhat dot com>
On 06/29/2016 03:25 PM, Pedro Alves wrote:
> gcc 7 shows a bit more detail, though it's still not very clear:
>
> /home/pedro/gdb/mygit/src/gdb/rust-lang.c: In function ârust_get_disr_info.isra.5â:
> /home/pedro/gdb/mygit/src/gdb/rust-lang.c:173:15: error: â__sâ may be used uninitialized in this function [-Werror=maybe-uninitialized]
> ret.name = concat (TYPE_NAME (type), "::", token, (char *) NULL);
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> cc1: some warnings being treated as errors
>
>
> The mention of "__s" is a hint.
Filed this one as:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71701
Thanks,
Pedro Alves