From 1b82963df736f3ad71b003443a4de1414f3ce2e5 Mon Sep 17 00:00:00 2001 From: David Wendt <45795991+davidwendt@users.noreply.github.com> Date: Wed, 4 Dec 2024 16:33:24 -0500 Subject: [PATCH] Fix libcudf compile error when logging is disabled (#17512) Adds `[[maybe_unused]]` to the `compression_type_name` function to prevent the warning/error. Error/warning introduced in #17431 Closes #17510 Authors: - David Wendt (https://github.com/davidwendt) Approvers: - Muhammad Haseeb (https://github.com/mhaseeb123) - MithunR (https://github.com/mythrocks) - Vukasin Milovanovic (https://github.com/vuule) - Jason Lowe (https://github.com/jlowe) URL: https://github.com/rapidsai/cudf/pull/17512 --- cpp/src/io/comp/nvcomp_adapter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/src/io/comp/nvcomp_adapter.cpp b/cpp/src/io/comp/nvcomp_adapter.cpp index b8bf8be6d2d..9d3cf75a13f 100644 --- a/cpp/src/io/comp/nvcomp_adapter.cpp +++ b/cpp/src/io/comp/nvcomp_adapter.cpp @@ -70,7 +70,7 @@ auto batched_decompress_async(compression_type compression, Args&&... args) } } -std::string compression_type_name(compression_type compression) +[[maybe_unused]] std::string compression_type_name(compression_type compression) { switch (compression) { case compression_type::SNAPPY: return "Snappy";