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:
Cary Coutant 2018-06-23 00:26:07 -07:00
parent 750ea5ed38
commit add4131108
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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)
{