From: Tom Tromey Date: Fri, 13 Jul 2018 17:14:57 +0000 (-0600) Subject: Remove a warning on macOS X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=027a4c30d03e3f434ddfa61e7f026e3b15f83daa;p=deliverable%2Fbinutils-gdb.git Remove a warning on macOS This removes a clang warning coming from -Wmissing-braces. ChangeLog 2018-07-13 Tom Tromey * symfile.c (set_objfile_default_section_offset): Use extra braces around initializer. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7b808eb3a7..66b7c3681e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2018-07-13 Tom Tromey + + * symfile.c (set_objfile_default_section_offset): Use extra braces + around initializer. + 2018-07-13 Andreas Arnez * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a diff --git a/gdb/symfile.c b/gdb/symfile.c index 48eca5cc0e..62b38bd618 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -2088,7 +2088,7 @@ set_objfile_default_section_offset (struct objfile *objf, { /* Add OFFSET to all sections by default. */ std::vector offsets (objf->num_sections, - { offset }); + { { offset } }); /* Create sorted lists of all sections in ADDRS as well as all sections in OBJF. */