Reduce compile warnings (#6198)

Co-authored-by: Hyunsu Cho <chohyu01@cs.washington.edu>
This commit is contained in:
vcarpani
2020-10-08 17:14:59 +02:00
committed by GitHub
parent a4ce0eae43
commit 6bc9747df5
6 changed files with 40 additions and 21 deletions

View File

@@ -157,7 +157,10 @@ class Transform {
/*! \brief Dummy funtion defined when compiling for CPU. */
template <typename std::enable_if<!CompiledWithCuda>::type* = nullptr,
typename... HDV>
void LaunchCUDA(Functor _func, HDV*... _vectors) const {
void LaunchCUDA(Functor _func, HDV*...) const {
// Remove unused parameter compiler warning.
(void) _func;
LOG(FATAL) << "Not part of device code. WITH_CUDA: " << WITH_CUDA();
}
#endif // defined(__CUDACC__)