Fix "may be used uninitialized" warning.
authorCary Coutant <ccoutant@gmail.com>
Sat, 23 Jun 2018 07:26:07 +0000 (00:26 -0700)
committerCary Coutant <ccoutant@gmail.com>
Sat, 23 Jun 2018 07:26:07 +0000 (00:26 -0700)
gold/
PR gold/22914
* x86_64.cc (Target_x86_64::record_gnu_property): Initialize val.

gold/ChangeLog
gold/x86_64.cc

index 88ee9a53b0b1b015e05c3564d574cecefca25c93..1e64eb6e02d100396e5db8610d364b3e442bf117 100644 (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
index 9b725970f0360d87025ba2559910ddf13c42737c..27f273d64b30b49e4fa16e99ab4f1a1a43c38ae5 100644 (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)
     {
This page took 0.026187 seconds and 4 git commands to generate.