diff --git a/src/parcsr_ls/par_ge_device.c b/src/parcsr_ls/par_ge_device.c index d56f6d1a5..4e17c937c 100644 --- a/src/parcsr_ls/par_ge_device.c +++ b/src/parcsr_ls/par_ge_device.c @@ -105,9 +105,9 @@ hypre_GaussElimSetupDevice(hypre_ParAMGData *amg_data, #else /* Silence declared but never referenced warnings */ - (A_piv = NULL); - (A_mat = NULL); - (A_work = NULL); + (A_piv += 0); + (A_mat += 0); + (A_work += 0); (buffer_size *= 1); hypre_error_w_msg(HYPRE_ERROR_GENERIC, @@ -309,8 +309,8 @@ hypre_GaussElimSolveDevice(hypre_ParAMGData *amg_data, #else /* Silence declared but never referenced warnings */ - (A_mat = NULL); - (A_piv = NULL); + (A_mat += 0); + (A_piv += 0); (i_one *= 1); (d_one *= 1.0); (zero *= zero); diff --git a/src/utilities/int_array_device.c b/src/utilities/int_array_device.c index 18db29275..b023e155f 100644 --- a/src/utilities/int_array_device.c +++ b/src/utilities/int_array_device.c @@ -152,6 +152,7 @@ hypre_IntArrayNegateDevice( hypre_IntArray *v ) * hypre_IntArraySetInterleavedValuesDevice *--------------------------------------------------------------------------*/ +#if defined(HYPRE_USING_CUDA) || defined(HYPRE_USING_HIP) struct hypre_cycle_functor { HYPRE_Int cycle_length; @@ -163,6 +164,7 @@ struct hypre_cycle_functor return x % cycle_length; } }; +#endif HYPRE_Int hypre_IntArraySetInterleavedValuesDevice( hypre_IntArray *v,