aboutsummaryrefslogtreecommitdiff
path: root/bfd/ieee.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2000-04-19 10:53:01 +0000
committerAlan Modra <amodra@gmail.com>2000-04-19 10:53:01 +0000
commitdcdea4f4b3a6638bf5dce30fc4862f1e0c00091e (patch)
tree6601d5fd3d77b0487d7b9ada2e03e79c3e4084f5 /bfd/ieee.c
parentc2d1645f06c6cae112e31a512f54f82edf40e944 (diff)
downloadgdb-dcdea4f4b3a6638bf5dce30fc4862f1e0c00091e.zip
gdb-dcdea4f4b3a6638bf5dce30fc4862f1e0c00091e.tar.gz
gdb-dcdea4f4b3a6638bf5dce30fc4862f1e0c00091e.tar.bz2
K&R compiler fixes
Diffstat (limited to 'bfd/ieee.c')
-rw-r--r--bfd/ieee.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/bfd/ieee.c b/bfd/ieee.c
index 82b3bac..71b967a 100644
--- a/bfd/ieee.c
+++ b/bfd/ieee.c
@@ -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)
{