Fix 'obj' may be used uninitialized warning in symtab.c:matching_obj_sections.
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sat, 12 Jan 2019 06:37:36 +0000 (07:37 +0100)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sat, 12 Jan 2019 06:40:46 +0000 (07:40 +0100)
commit9d7c67bfbde3b948704b46f8a6fd479e98ecf2c8
tree0804132a16e3218b2d897ff4c46046a3c806bfdc
parent7d62943cd492bb502f0d335cc695be15ae50cea3
Fix 'obj' may be used uninitialized warning in symtab.c:matching_obj_sections.

Fix warning:

gdb/symtab.c: In function ‘int matching_obj_sections(obj_section*, obj_section*)’:
gdb/symtab.c:1024:12: warning: ‘obj’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   if (obj->separate_debug_objfile_backlink != NULL

2019-01-12  Philippe Waroquiers  <philippe.waroquiers@skynet.be>

* symtab.c (matching_obj_sections): Initialize obj,
declare it closer to its usage.
gdb/ChangeLog
gdb/symtab.c
This page took 0.024055 seconds and 4 git commands to generate.