Skip to content

Fix unused parameter warning/error in grouped_rolling.cu - #13192

Merged
rapids-bot[bot] merged 1 commit into
NVIDIA:branch-23.06from
davidwendt:debug-grouped-rolling-unused-parm
Apr 24, 2023
Merged

rapids-bot[bot] merged 1 commit into
NVIDIA:branch-23.06from
davidwendt:debug-grouped-rolling-unused-parm

Conversation

@davidwendt

Copy link
Copy Markdown
Contributor

Description

Fixes unused parameter warning/error introduced by #13143 in grouped_rolling.cu

CMakeFiles/cudf.dir/src/rolling/grouped_rolling.cu.o
/cudf/cpp/src/rolling/grouped_rolling.cu(280): error #177-D: parameter "delta" was declared but never referenced

This was found when building with nvcc 11.5.
I was hoping there would be some clever partial specialization or function overloading that could be done here but none were as clean as the current implementation. Solution was to just add [[maybe_unused]] to offending parameter declaration.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@davidwendt davidwendt added bug Something isn't working 3 - Ready for Review Ready for review by team libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change labels Apr 21, 2023
@davidwendt davidwendt self-assigned this Apr 21, 2023
@davidwendt
davidwendt requested a review from a team as a code owner April 21, 2023 13:00
@davidwendt

Copy link
Copy Markdown
Contributor Author

/merge

@rapids-bot
rapids-bot Bot merged commit 9ffd30f into NVIDIA:branch-23.06 Apr 24, 2023
@davidwendt
davidwendt deleted the debug-grouped-rolling-unused-parm branch April 24, 2023 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3 - Ready for Review Ready for review by team bug Something isn't working libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants