diff options
author | Mark Harmstone <mark@harmstone.com> | 2024-09-04 18:52:28 +0100 |
---|---|---|
committer | Mark Harmstone <mark@harmstone.com> | 2024-09-05 09:58:47 +0100 |
commit | 897a57a12626b8f41490bf62bac212b0e4a7566b (patch) | |
tree | 882a7370cab9b7daa9b086b1309b7a76efdeccb9 /bfd | |
parent | 8a72d8924a57af56778128c8f6f4ef52f08ad77c (diff) | |
download | gdb-897a57a12626b8f41490bf62bac212b0e4a7566b.zip gdb-897a57a12626b8f41490bf62bac212b0e4a7566b.tar.gz gdb-897a57a12626b8f41490bf62bac212b0e4a7566b.tar.bz2 |
bfd/pdb: fix -Wmaybe-uninitialized warning
Initialize stream0_start to fix spurious -Wmaybe-uninitialized warning
on some versions of gcc.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/pdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -718,7 +718,7 @@ pdb_write_contents (bfd *abfd) uint32_t num_blocks; uint32_t num_files = 0; uint32_t num_directory_bytes = sizeof (uint32_t); - uint32_t stream0_start; + uint32_t stream0_start = 0; bfd *arelt; if (bfd_write (pdb_magic, sizeof (pdb_magic), abfd) != sizeof (pdb_magic)) |