summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Long <ryan.long@oarcorp.com>2021-08-18 14:53:20 -0400
committerJoel Sherrill <joel@rtems.org>2021-09-01 10:31:25 -0500
commit2cf693aee9e8575ff693c8833b639237e12f61b2 (patch)
tree09fce138536ed6563f2703c9d29863a6ae7b8f4b
parentGcovData.cc: Initialize gcnoPreamble (diff)
downloadrtems-tools-2cf693aee9e8575ff693c8833b639237e12f61b2.tar.bz2
rld-dwarf.cpp: Initialize member variables
Initialize member variables not listed. CID 1503019: Uninitialized scalar field. Closes #4500
-rw-r--r--rtemstoolkit/rld-dwarf.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/rtemstoolkit/rld-dwarf.cpp b/rtemstoolkit/rld-dwarf.cpp
index 1eae50c..2d6f306 100644
--- a/rtemstoolkit/rld-dwarf.cpp
+++ b/rtemstoolkit/rld-dwarf.cpp
@@ -679,12 +679,18 @@ namespace rld
machine_code_ (false),
external_ (false),
declaration_ (false),
+ prototyped_ (false),
inline_ (DW_INL_not_inlined),
entry_pc_ (0),
has_entry_pc_ (false),
pc_low_ (0),
pc_high_ (0),
ranges_ (debug),
+ name_ (),
+ linkage_name_ (),
+ decl_file_ (),
+ decl_line_ (0),
+ call_file_ (),
call_line_ (0)
{
dwarf_bool db;
@@ -819,6 +825,7 @@ namespace rld
machine_code_ (orig.machine_code_),
external_ (orig.external_),
declaration_ (orig.declaration_),
+ prototyped_ (orig.prototyped_),
inline_ (orig.inline_),
entry_pc_ (orig.entry_pc_),
has_entry_pc_ (orig.has_entry_pc_),
@@ -827,6 +834,8 @@ namespace rld
ranges_ (orig.ranges_),
name_ (orig.name_),
linkage_name_ (orig.linkage_name_),
+ decl_file_ (orig.decl_file_),
+ decl_line_ (orig.decl_line_),
call_file_ (orig.call_file_),
call_line_ (orig.call_line_)
{
@@ -986,7 +995,10 @@ namespace rld
ranges_ = rhs.ranges_;
name_ = rhs.name_;
linkage_name_ = rhs.linkage_name_;
+ decl_file_ = rhs.decl_file_;
+ decl_line_ = rhs.decl_line_;
call_file_ = rhs.call_file_;
+ call_line_ = rhs.call_line_;
}
return *this;
}