]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
K&R compiler fixes.
authorAlan Modra <amodra@gmail.com>
Wed, 19 Apr 2000 11:13:16 +0000 (11:13 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 19 Apr 2000 11:13:16 +0000 (11:13 +0000)
bfd/ChangeLog
bfd/dwarf2.c
bfd/ieee.c

index bd09f453e632885b51cff45475393d44144db8aa..19aef0253f112018663d6c99fab9718d61b4867d 100644 (file)
@@ -1,3 +1,9 @@
+2000-04-19  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
+
+       K&R compiler fixes.
+       * dwarf2.c (concat_filename): Avoid string literal concatenation.
+       * ieee.c (ieee_get_symtab): Don't initialise union in struct.
+
 2000-04-12  Alan Modra  <alan@linuxcare.com.au>
 
        * dep-in.sed: Match space before file name, not after.
index 5710d1adbd0d00b1c09fd2a0572e661adc997ab4..b6de26121896069a4fbcd828479fe9620555254b 100644 (file)
@@ -697,8 +697,8 @@ concat_filename (table, file)
 
   if (file - 1 >= table->num_files)
     {
-      (*_bfd_error_handler) (_("Dwarf Error: mangled line number "
-                              "section (bad file number)."));
+      (*_bfd_error_handler)
+       (_("Dwarf Error: mangled line number section (bad file number)."));
       return "<unknown>";
     }
 
index 82b3bac8367f5251681be88ef0c4243742aebfb8..71b967ac4181b1f7db4c37e26141cce01834f6df 100644 (file)
@@ -1009,8 +1009,17 @@ ieee_get_symtab (abfd, location)
   ieee_symbol_type *symp;
   static bfd dummy_bfd;
   static asymbol empty_symbol =
-  /* the_bfd, name, value, attr, section */
-  {&dummy_bfd, " ieee empty", (symvalue) 0, BSF_DEBUGGING, bfd_abs_section_ptr, { 0 }};
+  {
+    &dummy_bfd,
+    " ieee empty",
+    (symvalue) 0,
+    BSF_DEBUGGING,
+    bfd_abs_section_ptr
+#ifdef __STDC__
+    /* K&R compilers can't initialise unions.  */
+    , { 0 }
+#endif
+  };
 
   if (abfd->symcount)
     {