From bec013b2c965880a6dc50a0d3a12b52d07b30352 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Thu, 12 Jul 2018 17:02:18 +0200 Subject: fix unused warning --- test/gpu_common.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/gpu_common.h') diff --git a/test/gpu_common.h b/test/gpu_common.h index 3030af6dc..60a78ccd7 100644 --- a/test/gpu_common.h +++ b/test/gpu_common.h @@ -88,6 +88,9 @@ void run_and_compare_to_gpu(const Kernel& ker, int n, const Input& in, Output& o #if !defined(__CUDA_ARCH__) && !defined(__HIP_DEVICE_COMPILE__) in_ref = in_gpu = in; out_ref = out_gpu = out; + #else + EIGEN_UNUSED_VARIABLE(in); + EIGEN_UNUSED_VARIABLE(out); #endif run_on_cpu (ker, n, in_ref, out_ref); run_on_gpu(ker, n, in_gpu, out_gpu); -- cgit v1.2.3