From 4c757534905a6029288767ba25de7751c4860a29 Mon Sep 17 00:00:00 2001 From: David Cortes Date: Sun, 12 Sep 2021 13:21:10 -0300 Subject: [PATCH] one more attempt at not trigger false alarms in static analyzer --- R-package/src/lightgbm_R.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/R-package/src/lightgbm_R.cpp b/R-package/src/lightgbm_R.cpp index a97cf860a25e..bf334b7a3198 100644 --- a/R-package/src/lightgbm_R.cpp +++ b/R-package/src/lightgbm_R.cpp @@ -225,7 +225,7 @@ SEXP LGBM_DatasetSetFeatureNames_R(SEXP handle, } SEXP LGBM_DatasetGetFeatureNames_R(SEXP handle) { - LGBM_WrapperUnwindToken unwind_token = LGBM_WrapperUnwindToken(); + LGBM_WrapperUnwindToken unwind_token; R_API_BEGIN(); SEXP feature_names; int len = 0; @@ -567,7 +567,7 @@ SEXP LGBM_BoosterGetLowerBoundValue_R(SEXP handle, } SEXP LGBM_BoosterGetEvalNames_R(SEXP handle) { - LGBM_WrapperUnwindToken unwind_token = LGBM_WrapperUnwindToken(); + LGBM_WrapperUnwindToken unwind_token; R_API_BEGIN(); SEXP eval_names; int len; @@ -781,7 +781,7 @@ SEXP LGBM_BoosterSaveModel_R(SEXP handle, SEXP LGBM_BoosterSaveModelToString_R(SEXP handle, SEXP num_iteration, SEXP feature_importance_type) { - LGBM_WrapperUnwindToken unwind_token = LGBM_WrapperUnwindToken(); + LGBM_WrapperUnwindToken unwind_token; R_API_BEGIN(); SEXP model_str; int64_t out_len = 0; @@ -805,7 +805,7 @@ SEXP LGBM_BoosterSaveModelToString_R(SEXP handle, SEXP LGBM_BoosterDumpModel_R(SEXP handle, SEXP num_iteration, SEXP feature_importance_type) { - LGBM_WrapperUnwindToken unwind_token = LGBM_WrapperUnwindToken(); + LGBM_WrapperUnwindToken unwind_token; R_API_BEGIN(); SEXP model_str; int64_t out_len = 0;