Remove a warning on macOS
authorTom Tromey <tom@tromey.com>
Fri, 13 Jul 2018 17:14:57 +0000 (11:14 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 13 Jul 2018 17:14:57 +0000 (11:14 -0600)
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.

gdb/ChangeLog
gdb/symfile.c

index 7b808eb3a7601140f707fb9a232791f93aa8bb5b..66b7c3681e251310a27d206123d4f836bf495e3e 100644 (file)
@@ -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
index 48eca5cc0ea5b9c8c7310207fceba87b0c17758b..62b38bd618251708d9d62195e6b355ad3e43fe24 100644 (file)
@@ -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.  */
This page took 0.03204 seconds and 4 git commands to generate.