Skip to content

Commit

Permalink
fix MSVC warning about control paths (fixes #3067) (#3068)
Browse files Browse the repository at this point in the history
* [R-package] fix MSVC warning about control paths (fixes #3067)

* linting

* simplify
  • Loading branch information
jameslamb authored May 23, 2020
1 parent 7fe10fa commit 74e5ec4
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 74e5ec4

Please sign in to comment.