Remove some warnings from clang. (#7533)
* Unused variable. * Unnecessary virtual function.
This commit is contained in:
@@ -165,9 +165,9 @@ inline float GetMissing(Json const &config) {
|
||||
|
||||
// Safe guard some global variables from being changed by XGBoost.
|
||||
class XGBoostAPIGuard {
|
||||
#if defined(XGBOOST_USE_CUDA)
|
||||
int32_t device_id_ {0};
|
||||
|
||||
#if defined(XGBOOST_USE_CUDA)
|
||||
void SetGPUAttribute();
|
||||
void RestoreGPUAttribute();
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user