-Wuninitialized on clang

Jack Howarth <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CADtEn-2qvuR3j0HpfKqR4O_Av=OOqrp3GveubHHYot4PYsjJew@mail.gmail.com>
The gdb-7.9 build on clang reports variable 'uoffset' is uninitialized
when used in the -Wuninitialized warnings...

./compile/compile-loc2c.c:729:6: warning: variable 'uoffset' is
uninitialized when used here [-Wuninitialized]
            uoffset += dwarf2_per_cu_text_offset (per_cu);
            ^~~~~~~
./compile/compile-loc2c.c:667:23: note: initialize the variable
'uoffset' to silence this warning
      uint64_t uoffset, reg;
                      ^
                       = 0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.