From 6901b123a01b9efd5cc4ce9d657dfcd61fe9b728 Mon Sep 17 00:00:00 2001 From: Robert Maynard Date: Fri, 13 May 2022 17:26:21 -0400 Subject: [PATCH] Suppress sizeof-array-div warnings in thrust found by gcc-11 (#10840) `sizeof-array-div` is a new warning added in gcc-11 and thrust 1.15 will trigger it when a `T` type is a fixed size array. Nothing is wrong with the thrust logic, so we just suppress the warning while we wait on thrust 1.16 Authors: - Robert Maynard (https://github.com/robertmaynard) Approvers: - Nghia Truong (https://github.com/ttnghia) - Conor Hoekstra (https://github.com/codereport) URL: https://github.com/rapidsai/cudf/pull/10840 --- cpp/src/io/text/multibyte_split.cu | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cpp/src/io/text/multibyte_split.cu b/cpp/src/io/text/multibyte_split.cu index 0166040437b..841302b521a 100644 --- a/cpp/src/io/text/multibyte_split.cu +++ b/cpp/src/io/text/multibyte_split.cu @@ -14,6 +14,11 @@ * limitations under the License. */ +// Can be removed once we use Thrust 1.16+ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wpragmas" +#pragma GCC diagnostic ignored "-Wsizeof-array-div" + #include #include #include @@ -40,6 +45,8 @@ #include #include +#pragma GCC diagnostic pop + #include #include