Fix "may be used uninitialized" warning.
gold/ PR gold/22914 * x86_64.cc (Target_x86_64::record_gnu_property): Initialize val.
This commit is contained in:
parent
750ea5ed38
commit
add4131108
@ -1,3 +1,8 @@
|
||||
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
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user