diff options
author | nagurram-in <nagendra.g@in.ibm.com> | 2017-02-27 05:32:55 -0600 |
---|---|---|
committer | William G. Hoffa <wghoffa@us.ibm.com> | 2017-03-22 09:39:25 -0400 |
commit | a89ef1040290c7f25fa17f393acdba9a73b67e0a (patch) | |
tree | 90f335dbb83abb0eb388aecd5449ed55e7587bc1 /src/usr | |
parent | 09077cb29ecdc7515052ea533476797369a81290 (diff) | |
download | talos-hostboot-a89ef1040290c7f25fa17f393acdba9a73b67e0a.tar.gz talos-hostboot-a89ef1040290c7f25fa17f393acdba9a73b67e0a.zip |
Fixes for GCC6 exposed bugs
Change-Id: I98e657de4786189dfc51cd3afeaf81626a5b7317
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/37084
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Reviewed-by: Jayashankar Padath <jayashankar.padath@in.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/usr')
-rw-r--r-- | src/usr/hdat/hdatutil.C | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/usr/hdat/hdatutil.C b/src/usr/hdat/hdatutil.C index 99c4024ec..d17116f04 100644 --- a/src/usr/hdat/hdatutil.C +++ b/src/usr/hdat/hdatutil.C @@ -546,8 +546,7 @@ errlHndl_t hdatGetAsciiKwdForPvpd(TARGETING::Target * i_target, o_kwd = NULL; o_kwdSize = 0; - //size_t theSize[i_num]; - memset (theSize,0, sizeof(theSize)); + memset (theSize,0, sizeof(size_t) * i_num); do { @@ -698,7 +697,7 @@ errlHndl_t hdatGetPvpdFullRecord(TARGETING::Target * i_target, o_kwd = NULL; o_kwdSize = 0; - memset (theSize,0, sizeof(theSize)); + memset (theSize,0, sizeof(size_t) * i_num); do { |