This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Initialize strtok_r's saveptr to NULL


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]