From 56add64df91b4766b057073ea6af681364c8541f Mon Sep 17 00:00:00 2001 From: James Lamb Date: Sat, 23 May 2020 03:37:02 +0100 Subject: [PATCH] fix MSVC warning about control paths (fixes #3067) (#3068) * [R-package] fix MSVC warning about control paths (fixes #3067) * linting * simplify --- src/boosting/prediction_early_stop.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/boosting/prediction_early_stop.cpp b/src/boosting/prediction_early_stop.cpp index dafc4b225e80..7e21141f6852 100644 --- a/src/boosting/prediction_early_stop.cpp +++ b/src/boosting/prediction_early_stop.cpp @@ -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