Skip to content

Do not increase pointer after last enum constant#2670

Open
zbynek wants to merge 1 commit intogoogle:masterfrom
zbynek:enum-ptr-skip
Open

Do not increase pointer after last enum constant#2670
zbynek wants to merge 1 commit intogoogle:masterfrom
zbynek:enum-ptr-skip

Conversation

@zbynek
Copy link

@zbynek zbynek commented Feb 10, 2026

The last occurence of ptr += objSize in enum declaration is redundant and produces warnings with xcodebuild ... analyze.

This PR makes sure this extra assignment is skipped.

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.

1 participant