Silent some warnings for unused variable. (#7548)
This commit is contained in:
parent
c635d4c46a
commit
2db808021d
@ -43,6 +43,9 @@ class EllpackPageSource : public PageSourceIncMixIn<EllpackPage> {
|
||||
|
||||
#if !defined(XGBOOST_USE_CUDA)
|
||||
inline void EllpackPageSource::Fetch() {
|
||||
// silent the warning about unused variables.
|
||||
(void)(row_stride_);
|
||||
(void)(is_dense_);
|
||||
common::AssertGPUSupport();
|
||||
}
|
||||
#endif // !defined(XGBOOST_USE_CUDA)
|
||||
|
||||
@ -79,6 +79,10 @@ class IterativeDeviceDMatrix : public DMatrix {
|
||||
|
||||
#if !defined(XGBOOST_USE_CUDA)
|
||||
inline void IterativeDeviceDMatrix::Initialize(DataIterHandle iter, float missing, int nthread) {
|
||||
// silent the warning about unused variables.
|
||||
(void)(proxy_);
|
||||
(void)(reset_);
|
||||
(void)(next_);
|
||||
common::AssertGPUSupport();
|
||||
}
|
||||
inline BatchSet<EllpackPage> IterativeDeviceDMatrix::GetEllpackBatches(const BatchParam& param) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user