This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR bootstrap/81638
- From: David Edelsohn <dje dot gcc at gmail dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 2 Aug 2017 08:43:26 -0400
- Subject: Re: [PATCH] Fix PR bootstrap/81638
- Authentication-results: sourceware.org; auth=none
- References: <CAGWvnykoRTQ+ppRy=Eyt50CD6HovHeiNNrCxgibvJGmPk9cEvg@mail.gmail.com>
To fix the false-positive uninitialized warning, this patch
initializes the "incl" variable.
* xcoff.c (xcoff_process_linenos): Initialize incl to NULL.
Index: xcoff.c
===================================================================
--- xcoff.c (revision 250806)
+++ xcoff.c (working copy)
@@ -774,7 +774,7 @@ xcoff_process_linenos (struct backtrace_state *sta
const b_xcoff_lineno *lineno;
const unsigned char *lineptr;
const char *function;
- struct xcoff_incl *incl;
+ struct xcoff_incl *incl = NULL;
uintptr_t lnnoptr;
uintptr_t pc;
uint32_t lnno;