diff options
author | Santosh Puranik <santosh.puranik@in.ibm.com> | 2016-11-28 00:31:55 -0600 |
---|---|---|
committer | spashabk-in <shakeebbk@in.ibm.com> | 2016-12-20 05:18:47 -0600 |
commit | a9ccee0a1c4b876f1e990f601ae59f27740611e3 (patch) | |
tree | 8594185d439fe5cc066c29343876347740f05711 /src/hwpf/include/plat | |
parent | 361016907f34a41073e6834b9d40bf7f101157d1 (diff) | |
download | talos-sbe-a9ccee0a1c4b876f1e990f601ae59f27740611e3.tar.gz talos-sbe-a9ccee0a1c4b876f1e990f601ae59f27740611e3.zip |
Disable FAPI_TRY for attribute accesses
Change-Id: Ie69e7bb2a91d477077b74391bb434539af03b31b
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/33019
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Shakeeb A. Pasha B K <shakeebbk@in.ibm.com>
Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Reviewed-by: AMIT J. TENDOLKAR <amit.tendolkar@in.ibm.com>
Diffstat (limited to 'src/hwpf/include/plat')
-rw-r--r-- | src/hwpf/include/plat/plat_error_scope.H | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/hwpf/include/plat/plat_error_scope.H b/src/hwpf/include/plat/plat_error_scope.H index ff03769d..bc5ad9f5 100644 --- a/src/hwpf/include/plat/plat_error_scope.H +++ b/src/hwpf/include/plat/plat_error_scope.H @@ -32,11 +32,19 @@ /// @cond #define PLAT_FAPI_TRY_NO_TRACE( __operation__ ) \ + if(std::is_same<decltype((__operation__)), fapi2::AttributeRC>::value) \ + { \ + (void)((__operation__)); \ + } \ + else \ + { \ if ((fapi2::current_err = (__operation__)) != fapi2::FAPI2_RC_SUCCESS) \ { \ goto fapi_try_exit; \ + } \ } + #define PLAT_FAPI_TRY_TRACE( __operation__, ... ) \ if ((fapi2::current_err = (__operation__)) != fapi2::FAPI2_RC_SUCCESS) \ { \ @@ -59,8 +67,8 @@ FAPI_ERR(__VA_ARGS__); \ goto fapi_try_exit; \ } - - + + /// /// @brief Temporary macro for error label until all are removed. /// @todo REMOVE this in time. |