Fix warnings from g++5 or higher (#1510)

This commit is contained in:
Tianqi Chen
2016-08-26 16:14:10 -07:00
committed by GitHub
parent 0627213544
commit df38f251be
6 changed files with 9 additions and 6 deletions

View File

@@ -736,4 +736,4 @@ XGB_DLL int XGBoosterSaveRabitCheckpoint(BoosterHandle handle) {
}
// force link rabit
static int XGBOOST_LINK_RABIT_C_API_ = RabitLinkTag();
static DMLC_ATTRIBUTE_UNUSED int XGBOOST_LINK_RABIT_C_API_ = RabitLinkTag();