Bug 20029 - symfile.c ambiguous else warning
Summary: symfile.c ambiguous else warning
Status: RESOLVED FIXED
Alias: None
Product: gdb
Classification: Unclassified
Component: build (show other bugs)
Version: 7.11
: P2 normal
Target Milestone: 7.11.1
Assignee: Pedro Alves
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-01 19:58 UTC by nightstrike
Modified: 2016-05-03 10:20 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.