diff options
author | Cary Coutant <ccoutant@gmail.com> | 2018-06-23 00:26:07 -0700 |
---|---|---|
committer | Cary Coutant <ccoutant@gmail.com> | 2018-06-23 00:26:07 -0700 |
commit | add4131108de4b4a0f3003cb542e9548914fbed1 (patch) | |
tree | 3ecad89ee9609cfcc96e36c4ab23946b86bfbfc3 /gold | |
parent | 750ea5ed38abbda8a6f25e276bff3dfc8e4ce0ee (diff) | |
download | gdb-add4131108de4b4a0f3003cb542e9548914fbed1.zip gdb-add4131108de4b4a0f3003cb542e9548914fbed1.tar.gz gdb-add4131108de4b4a0f3003cb542e9548914fbed1.tar.bz2 |
Fix "may be used uninitialized" warning.
gold/
PR gold/22914
* x86_64.cc (Target_x86_64::record_gnu_property): Initialize val.
Diffstat (limited to 'gold')
-rw-r--r-- | gold/ChangeLog | 5 | ||||
-rw-r--r-- | gold/x86_64.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog index 88ee9a5..1e64eb6 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,5 +1,10 @@ 2018-06-23 Cary Coutant <ccoutant@gmail.com> + PR gold/22914 + * x86_64.cc (Target_x86_64::record_gnu_property): Initialize val. + +2018-06-23 Cary Coutant <ccoutant@gmail.com> + PR gold/22915 * x86_64.cc (Output_data_plt_x86_64_ibt): New class. (Target_x86_64::do_make_data_plt): (All instantiations) Check for diff --git a/gold/x86_64.cc b/gold/x86_64.cc index 9b72597..27f273d 100644 --- a/gold/x86_64.cc +++ b/gold/x86_64.cc @@ -1583,7 +1583,7 @@ Target_x86_64<size>::record_gnu_property( size_t pr_datasz, const unsigned char* pr_data, const Object* object) { - uint32_t val; + uint32_t val = 0; switch (pr_type) { |