aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorMark Harmstone <mark@harmstone.com>2024-09-04 18:52:28 +0100
committerMark Harmstone <mark@harmstone.com>2024-09-05 09:58:47 +0100
commit897a57a12626b8f41490bf62bac212b0e4a7566b (patch)
tree882a7370cab9b7daa9b086b1309b7a76efdeccb9 /bfd
parent8a72d8924a57af56778128c8f6f4ef52f08ad77c (diff)
downloadgdb-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/pdb.c b/bfd/pdb.c
index c4c5287..340cda6 100644
--- a/bfd/pdb.c
+++ b/bfd/pdb.c
@@ -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))