Remove a warning on macOS
This removes a clang warning coming from -Wmissing-braces. ChangeLog 2018-07-13 Tom Tromey <tom@tromey.com> * symfile.c (set_objfile_default_section_offset): Use extra braces around initializer.
This commit is contained in:
parent
b84f59efc6
commit
027a4c30d0
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2018-07-13 Tom Tromey <tom@tromey.com>
|
||||
|
||||
* symfile.c (set_objfile_default_section_offset): Use extra braces
|
||||
around initializer.
|
||||
|
||||
2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
||||
|
||||
* s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
|
||||
|
|
|
@ -2088,7 +2088,7 @@ set_objfile_default_section_offset (struct objfile *objf,
|
|||
{
|
||||
/* Add OFFSET to all sections by default. */
|
||||
std::vector<struct section_offsets> offsets (objf->num_sections,
|
||||
{ offset });
|
||||
{ { offset } });
|
||||
|
||||
/* Create sorted lists of all sections in ADDRS as well as all
|
||||
sections in OBJF. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue