aboutsummaryrefslogtreecommitdiff
path: root/gdb/yy-remap.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-02-28 10:53:13 -0700
committerTom Tromey <tromey@adacore.com>2022-02-28 10:53:13 -0700
commit29928b8e3b79e14abb11cfa78daec447158b79d4 (patch)
tree9fa232a699ac985238981721159626cc1614982b /gdb/yy-remap.h
parentc9f66f0005000492739dd063ea2949045bf70bc6 (diff)
downloadgdb-29928b8e3b79e14abb11cfa78daec447158b79d4.zip
gdb-29928b8e3b79e14abb11cfa78daec447158b79d4.tar.gz
gdb-29928b8e3b79e14abb11cfa78daec447158b79d4.tar.bz2
Fix maybe-uninitialized warning in py-infthread.c
I got this warning from py-infthread.c using the Fedora 34 system GCC: ../../binutils-gdb/gdb/python/py-infthread.c:102:30: warning: ‘extra_info’ may be used uninitialized in this function [-Wmaybe-uninitialized] I think this happens because GDB_PY_HANDLE_EXCEPTION expands to an 'if' whose condition is always true -- but GCC can't know this. This patch avoids the warning by adding a harmless initialization.
Diffstat (limited to 'gdb/yy-remap.h')
0 files changed, 0 insertions, 0 deletions