Skip to content

Bugfix/lambda capture cleanup - #4185

Open
HakeemAdam wants to merge 6 commits into
PixarAnimationStudios:devfrom
HakeemAdam:bugfix/lambda-capture-cleanup
Open

HakeemAdam wants to merge 6 commits into
PixarAnimationStudios:devfrom
HakeemAdam:bugfix/lambda-capture-cleanup

Conversation

@HakeemAdam

Copy link
Copy Markdown

Description of Change(s)

Removed a few instances of unused lambda captures, which are caught as build warnings on clang.

Link to proposal (if applicable)

Fixes Issue(s)

Checklist

Removed unsused lambda captures to clean up compilation warnings with
CLang
Removed two addtional instances, no occurence on clang build
Comment thread pxr/imaging/hdx/selectionTracker.cpp Outdated
@@ -467,7 +467,7 @@ HdxSelectionTracker::_GetSelectionOffsets(HdSelectionSharedPtr const &selection,

size_t const N = 1000;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious if you should make N constexpr as well.

Comment thread pxr/imaging/hdSt/commandBuffer.cpp Outdated
@@ -526,7 +526,7 @@ HdStCommandBuffer::SyncDrawItemVisibility(unsigned visChangeCount)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious if you should make N constexpr as well.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it makes sense, will amend it. Thanks for the suggestions

Addressing reviewers feedback. Changed removed capture variables to
constexpr in line with modern C++ standards
@sunyab

sunyab commented Aug 20, 2026

Copy link
Copy Markdown
Member

Filed as internal issue #USD-12566

❗ Please make sure that a signed CLA has been submitted!

(This is an automated message. See here for more information.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compiler Warnings: Unused Lamba Captures

3 participants