Skip to content

Commit

Permalink
fix a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
guolinke committed Jan 22, 2018
1 parent f8cf0d2 commit 79edd9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/metric/regression_metric.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ class GammaDevianceMetric : public RegressionMetric<GammaDevianceMetric> {
inline static const char* Name() {
return "gamma-deviance";
}
inline static double AverageLoss(double sum_loss, double sum_weights) {
inline static double AverageLoss(double sum_loss, double) {
return sum_loss * 2;
}
};
Expand Down

0 comments on commit 79edd9a

Please sign in to comment.