Skip to content

Commit

Permalink
Fix libcudf compile error when logging is disabled (#17512)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
davidwendt authored Dec 4, 2024
1 parent 47e49d0 commit 1b82963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/io/comp/nvcomp_adapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 1b82963

Please sign in to comment.