Skip to content

Elevate C4013 to level 1 #16986

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

Merged
merged 1 commit into from
Nov 29, 2024
Merged

Elevate C4013 to level 1 #16986

merged 1 commit into from
Nov 29, 2024

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented Nov 28, 2024

C4013 warns about undefined functions[1], but for some reason is only a level 3 warning, and such suppressed by default (usually there will be link error afterwards, though). It appears to be sensible to elevate the warning to level 1, so it will be converted to a compile error.

[1] https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-3-c4013


Note that PHP-8.4 and master are already C4013 clean, but PHP-8.3 (or only PHP-8.2) are not.

C4013 warns about undefined functions[1], but for some reason is only a
level 3 warning, and such suppressed by default (usually there will be
link error afterwards, though).  It appears to be sensible to elevate
the warning to level 1, so it will be converted to a compile error.

[1] <https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-3-c4013>
@cmb69 cmb69 merged commit 2473f57 into php:master Nov 29, 2024
10 checks passed
@cmb69 cmb69 deleted the cmb/w14013 branch November 29, 2024 11:16
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