Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop superfluous enum forward declaration #17455

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented Jan 12, 2025

Besides that it is not needed, it is not proper C, and Clang warns that "forward references to 'enum' types are a Microsoft extension" (-Wmicrosoft-enum-forward-reference).


Frankly, I have no idea what that forward declaration is supposed to do, and that this apparently hasn't come up so far.

Besides that it is not needed, it is not proper C, and Clang warns that
"forward references to 'enum' types are a Microsoft extension"
(`-Wmicrosoft-enum-forward-reference`).
Copy link
Contributor

@youkidearitai youkidearitai left a comment

Choose a reason for hiding this comment

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

LGTM.
I think maybe forgot remove when change from mbfl_no_encoding to mbfl_encoding this line at b3c1d9d.

@cmb69 cmb69 merged commit 36b8a69 into php:master Jan 17, 2025
10 checks passed
@cmb69 cmb69 deleted the cmb/enum-forward-decl branch January 17, 2025 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants