Bug 20029

Summary: symfile.c ambiguous else warning
Product: gdb Reporter: nightstrike <nightstrike>
Component: buildAssignee: Pedro Alves <palves>
Status: RESOLVED FIXED    
Severity: normal CC: palves
Priority: P2    
Version: 7.11   
Target Milestone: 7.11.1   
Host: Target:
Build: Last reconfirmed:

Description nightstrike 2016-05-01 19:58:25 UTC
Saw these warnings during build:

../../../gdb/gdb/symfile.c: In function 'find_pc_overlay':
../../../gdb/gdb/symfile.c:3295:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
   if (overlay_debugging)
      ^
../../../gdb/gdb/symfile.c: In function 'find_pc_mapped_section':
../../../gdb/gdb/symfile.c:3322:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
   if (overlay_debugging)
      ^
../../../gdb/gdb/symfile.c: In function 'list_overlays_command':
../../../gdb/gdb/symfile.c:3340:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
   if (overlay_debugging)
      ^
Comment 2 Pedro Alves 2016-05-03 10:19:20 UTC
The fix is in both master and 7.11.1, so tentatively closing.  If this still triggers, please reopen.
Comment 3 Pedro Alves 2016-05-03 10:20:13 UTC
Assigning to self, for release-fix point of contact.