diff options
author | Nick Alcock <nick.alcock@oracle.com> | 2023-03-13 17:32:53 +0000 |
---|---|---|
committer | Nick Alcock <nick.alcock@oracle.com> | 2023-03-24 13:37:32 +0000 |
commit | cce0bb8ff8a4922da4318a3654f68cfabb4c3ec8 (patch) | |
tree | 50d669a4370fded21ddefcfb19370377890c6640 /gdb/python/lib | |
parent | ca96e367f057c068fb9f016dd7beba55d5d29d81 (diff) | |
download | binutils-cce0bb8ff8a4922da4318a3654f68cfabb4c3ec8.zip binutils-cce0bb8ff8a4922da4318a3654f68cfabb4c3ec8.tar.gz binutils-cce0bb8ff8a4922da4318a3654f68cfabb4c3ec8.tar.bz2 |
libctf: work around an uninitialized variable warning
GCC 11+ complains that sym is uninitialized in ctf_symbol_next. It
isn't, but it's not quite smart enough to figure that out (it requires
domain-specific knowledge of the state of the ctf_next_t iterator
over multiple calls).
libctf/
* ctf-lookup.c (ctf_symbol_next): Initialize sym to a suitable
value for returning if never reset during the function.
Diffstat (limited to 'gdb/python/lib')
0 files changed, 0 insertions, 0 deletions