Skip to content

Commit 1b82963

Browse files
authored
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: #17512
1 parent 47e49d0 commit 1b82963

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/src/io/comp/nvcomp_adapter.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ auto batched_decompress_async(compression_type compression, Args&&... args)
7070
}
7171
}
7272

73-
std::string compression_type_name(compression_type compression)
73+
[[maybe_unused]] std::string compression_type_name(compression_type compression)
7474
{
7575
switch (compression) {
7676
case compression_type::SNAPPY: return "Snappy";

0 commit comments

Comments
 (0)