Skip to content

[arch] Ignore unused-result warning from debugger.cpp#3925

Closed
nvidia-jomiller wants to merge 1 commit intoPixarAnimationStudios:devfrom
nvidia-jomiller:dev-fix-warnings-arch-debugger
Closed

[arch] Ignore unused-result warning from debugger.cpp#3925
nvidia-jomiller wants to merge 1 commit intoPixarAnimationStudios:devfrom
nvidia-jomiller:dev-fix-warnings-arch-debugger

Conversation

@nvidia-jomiller
Copy link
Copy Markdown
Collaborator

Description of Change(s)

On gcc, or clang, write() from unistd.h will issue a warning if the result is not checked. In debugger.cpp, write() is being called and the result is not being used (understandably, since the process is exited immediately after). This warning can not be suppressed using a void cast so the changes here will will explicitly ignore the result via std::ignore.

Fixes Issue(s)

Checklist

@nvidia-jomiller nvidia-jomiller changed the title [arch] Address unused-result warning from debugger.cpp [arch] Ignore unused-result warning from debugger.cpp Dec 12, 2025
@jesschimein
Copy link
Copy Markdown
Collaborator

Filed as internal issue #USD-11718

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

On gcc, or clang, write() from unistd.h will issue a warning if the result is not checked.
This warning can not be suppressed using a void cast so the changes here will
will explicity ignore the result via std::ignore.
@nvidia-jomiller nvidia-jomiller force-pushed the dev-fix-warnings-arch-debugger branch from 85f1f32 to b428d71 Compare March 17, 2026 17:07
@pixar-oss pixar-oss closed this in ba2e981 Mar 27, 2026
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.

2 participants