From 0b81772cb422f8064294338a1edcac964ae1e31d Mon Sep 17 00:00:00 2001 From: Yuuichi Asahi Date: Thu, 4 Jul 2024 15:40:39 +0900 Subject: [PATCH] Cleaning up some warnings with nvcc --- common/src/KokkosFFT_transpose.hpp | 2 +- fft/src/KokkosFFT_Cuda_plans.hpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/common/src/KokkosFFT_transpose.hpp b/common/src/KokkosFFT_transpose.hpp index 56e8476b..5fb24af5 100644 --- a/common/src/KokkosFFT_transpose.hpp +++ b/common/src/KokkosFFT_transpose.hpp @@ -74,7 +74,7 @@ auto get_map_axes(const ViewType& view, axis_type _axes) { } using full_axis_type = axis_type; - full_axis_type array_map, array_map_inv; + full_axis_type array_map = {0}, array_map_inv = {0}; std::copy(map.begin(), map.end(), array_map.begin()); std::copy(map_inv.begin(), map_inv.end(), array_map_inv.begin()); diff --git a/fft/src/KokkosFFT_Cuda_plans.hpp b/fft/src/KokkosFFT_Cuda_plans.hpp index cd08e759..816c797e 100644 --- a/fft/src/KokkosFFT_Cuda_plans.hpp +++ b/fft/src/KokkosFFT_Cuda_plans.hpp @@ -194,7 +194,9 @@ void _destroy_plan(std::unique_ptr& plan) { template , std::nullptr_t> = nullptr> -void _destroy_info(InfoType& plan) {} +void _destroy_info(InfoType&) { + // not used, no finalization is required +} } // namespace Impl } // namespace KokkosFFT