Skip to content

Commit

Permalink
one more attempt at not trigger false alarms in static analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
david-cortes committed Sep 12, 2021
1 parent 6a064bf commit 4c75753
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R-package/src/lightgbm_R.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 4c75753

Please sign in to comment.