summaryrefslogtreecommitdiffstats
path: root/src/import/hwpf
diff options
context:
space:
mode:
authorDean Sanner <dsanner@us.ibm.com>2016-08-26 13:18:07 -0500
committerSachin Gupta <sgupta2m@in.ibm.com>2016-09-16 10:18:10 -0400
commitf4763c3a97727a97827b5a09c4cfb55f3276fbe6 (patch)
tree1f48b002d9f8a0c24d099fb3acd7d088ba3f8292 /src/import/hwpf
parentdebaaf2c1b2ad9409b5e9b4ebd82d38709df2714 (diff)
downloadtalos-sbe-f4763c3a97727a97827b5a09c4cfb55f3276fbe6.tar.gz
talos-sbe-f4763c3a97727a97827b5a09c4cfb55f3276fbe6.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/28859 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Diffstat (limited to 'src/import/hwpf')
-rw-r--r--src/import/hwpf/fapi2/include/error_info.H7
-rw-r--r--src/import/hwpf/fapi2/include/error_info_defs.H2
2 files changed, 8 insertions, 1 deletions
diff --git a/src/import/hwpf/fapi2/include/error_info.H b/src/import/hwpf/fapi2/include/error_info.H
index 9152bc6e..7659e29b 100644
--- a/src/import/hwpf/fapi2/include/error_info.H
+++ b/src/import/hwpf/fapi2/include/error_info.H
@@ -685,4 +685,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 e40af7f9..9852afe5 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
};
///
OpenPOWER on IntegriCloud