diff options
| author | Dean Sanner <dsanner@us.ibm.com> | 2016-08-26 13:18:07 -0500 |
|---|---|---|
| committer | William G. Hoffa <wghoffa@us.ibm.com> | 2016-09-15 16:27:25 -0400 |
| commit | 3a286ee8ced093e6e0cd07010c12a9f6a5a8fd48 (patch) | |
| tree | 1c8dd17d9b2cf43d51c94f4718acbde4c05ec607 /src/import/hwpf/fapi2 | |
| parent | ae742fbc7622f37d42bd892dac67115b85fcf071 (diff) | |
| download | blackbird-hostboot-3a286ee8ced093e6e0cd07010c12a9f6a5a8fd48.tar.gz blackbird-hostboot-3a286ee8ced093e6e0cd07010c12a9f6a5a8fd48.zip | |
Explicitly declare FFDC shared_ptr for space savings
Change-Id: Icb5bddd0e07aa8c98b928829c7381f8a0914051f
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28856
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Reviewed-by: Brian R. Silver <bsilver@us.ibm.com>
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Reviewed-by: Richard J. Knight <rjknight@us.ibm.com>
Reviewed-by: Matt K. Light <mklight@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28860
Reviewed-by: Hostboot Team <hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/import/hwpf/fapi2')
| -rw-r--r-- | src/import/hwpf/fapi2/include/error_info.H | 7 | ||||
| -rw-r--r-- | src/import/hwpf/fapi2/include/error_info_defs.H | 2 | ||||
| -rw-r--r-- | src/import/hwpf/fapi2/src/error_info.C | 4 |
3 files changed, 12 insertions, 1 deletions
diff --git a/src/import/hwpf/fapi2/include/error_info.H b/src/import/hwpf/fapi2/include/error_info.H index 73c309005..28c6945c4 100644 --- a/src/import/hwpf/fapi2/include/error_info.H +++ b/src/import/hwpf/fapi2/include/error_info.H @@ -683,4 +683,11 @@ struct ErrorInfoEntry }; #endif // !defined(FAPI2_NO_FFDC) && !defined(MINIMUM_FFDC) } + +#if !defined(FAPI2_NO_FFDC) && !defined(MINIMUM_FFDC) + //explicitly declare for space as these templates are used everywhere + extern template class std::shared_ptr<fapi2::ErrorInfo>; + extern template class std::shared_ptr<fapi2::ErrorInfoFfdc>; +#endif + #endif // FAPI2_ERRORINFO_H_ diff --git a/src/import/hwpf/fapi2/include/error_info_defs.H b/src/import/hwpf/fapi2/include/error_info_defs.H index f08caba61..92a46d81e 100644 --- a/src/import/hwpf/fapi2/include/error_info_defs.H +++ b/src/import/hwpf/fapi2/include/error_info_defs.H @@ -120,7 +120,7 @@ class ffdc_t } private: - struct ffdc_struct iv_value; + struct ffdc_struct iv_value = {}; //init to zero }; /// diff --git a/src/import/hwpf/fapi2/src/error_info.C b/src/import/hwpf/fapi2/src/error_info.C index e59ac383e..a5dce44f4 100644 --- a/src/import/hwpf/fapi2/src/error_info.C +++ b/src/import/hwpf/fapi2/src/error_info.C @@ -33,6 +33,10 @@ #include <error_info.H> #include <buffer.H> +//explicitly declare for space as these templates are used everywhere +template class std::shared_ptr<fapi2::ErrorInfo>; +template class std::shared_ptr<fapi2::ErrorInfoFfdc>; + namespace fapi2 { /// |

