aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-07-13 11:14:57 -0600
committerTom Tromey <tom@tromey.com>2018-07-13 11:14:57 -0600
commit027a4c30d03e3f434ddfa61e7f026e3b15f83daa (patch)
tree624f1c7b4fb7ed0307934581488a57ee2cb8595e /gdb/symfile.c
parentb84f59efc6d6d8e97135a1b92ca224d1b2cffe16 (diff)
downloadgdb-027a4c30d03e3f434ddfa61e7f026e3b15f83daa.zip
gdb-027a4c30d03e3f434ddfa61e7f026e3b15f83daa.tar.gz
gdb-027a4c30d03e3f434ddfa61e7f026e3b15f83daa.tar.bz2
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.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r--gdb/symfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c
index 48eca5c..62b38bd 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<struct section_offsets> offsets (objf->num_sections,
- { offset });
+ { { offset } });
/* Create sorted lists of all sections in ADDRS as well as all
sections in OBJF. */