Compiler warnings (#6286)

* Fix warnings for json.h

* Fix warnings for metric.h

* Fix warnings for updater_quantile_hist.cc.

* Fix warnings for updater_histmaker.cc.

Co-authored-by: Hyunsu Cho <chohyu01@cs.washington.edu>
This commit is contained in:
vcarpani
2020-10-28 13:46:15 -07:00
committed by GitHub
co-authored by Hyunsu Cho
parent e8884c4637
commit 671971e12e
4 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -250,7 +250,7 @@ class JsonNull : public Value {
public:
JsonNull() : Value(ValueKind::kNull) {}
JsonNull(std::nullptr_t) : Value(ValueKind::kNull) {} // NOLINT
JsonNull(JsonNull&& that) : Value(ValueKind::kNull) {}
JsonNull(JsonNull&&) : Value(ValueKind::kNull) {}
void Save(JsonWriter* writer) override;
+1 -1
View File
@@ -34,7 +34,7 @@ class Metric : public Configurable {
* \param args arguments to the objective function.
*/
virtual void Configure(
const std::vector<std::pair<std::string, std::string> >& args) {}
const std::vector<std::pair<std::string, std::string> >&) {}
/*!
* \brief Load configuration from JSON object
* By default, metric has no internal configuration;