From f89222a9fd7c605d9f73a482dc38f5590128fb17 Mon Sep 17 00:00:00 2001 From: Allison Vacanti Date: Mon, 17 Jan 2022 10:14:08 -0500 Subject: [PATCH] Initialize padding member to silence warning. Fixes #419 and gpuCI gcc10 builds. --- cub/iterator/discard_output_iterator.cuh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cub/iterator/discard_output_iterator.cuh b/cub/iterator/discard_output_iterator.cuh index fe2ccca7e9..ac47a3ff34 100644 --- a/cub/iterator/discard_output_iterator.cuh +++ b/cub/iterator/discard_output_iterator.cuh @@ -87,7 +87,7 @@ private: #if defined(_WIN32) || !defined(_WIN64) // Workaround for win32 parameter-passing bug (ulonglong2 argmin DeviceReduce) - OffsetT pad[CUB_MAX(1, (16 / sizeof(OffsetT) - 1))]; + OffsetT pad[CUB_MAX(1, (16 / sizeof(OffsetT) - 1))] = {}; #endif public: