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