Skip to content

exec: silence compiler warnings by providing a default value - #4172

Open
davvid wants to merge 1 commit into
PixarAnimationStudios:devfrom
davvid:build/exec-default-value
Open

davvid wants to merge 1 commit into
PixarAnimationStudios:devfrom
davvid:build/exec-default-value

Conversation

@davvid

@davvid davvid commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Although exec uses a zero allocator, gcc (Debian 15.3.0-1) 15.3.0 emits warnings for the Exec_NodeRecompilationInfoTable::_Storage struct because it does not have visibility into these details.

GCC warns that the struct is used uninitialized in the expansion of !TF_VERIFY(!storage->isInfoConstructed, ...).

Provide a default value to silence the diagnostic.

Description of Change(s)

Fixes Issue(s)

  • Compilation warnings with GCC 15 and others.

Checklist

Although exec uses a zero allocator, gcc (Debian 15.3.0-1) 15.3.0 emits
warnings for the Exec_NodeRecompilationInfoTable::_Storage struct
because it does not have visibility into these details.

GCC warns that the struct is used uninitialized in the expansion of
!TF_VERIFY(!storage->isInfoConstructed, ...).

Provide a default value to silence the diagnostic.
@jesschimein

Copy link
Copy Markdown
Collaborator

Filed as internal issue #USD-12501

❗ 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.

2 participants