Skip to content

Commit

Permalink
fix MSVC warning about control paths (fixes microsoft#3067) (microsof…
Browse files Browse the repository at this point in the history
…t#3068)

* [R-package] fix MSVC warning about control paths (fixes microsoft#3067)

* linting

* simplify
  • Loading branch information
jameslamb authored and ChipKerchner committed Jun 11, 2020
1 parent 0b147cb commit 56add64
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/boosting/prediction_early_stop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ PredictionEarlyStopInstance CreatePredictionEarlyStopInstance(const std::string&
} else {
Log::Fatal("Unknown early stopping type: %s", type.c_str());
}

// Fix for compiler warnings about reaching end of control
return CreateNone(config);
}

} // namespace LightGBM

0 comments on commit 56add64

Please sign in to comment.