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

Elevate C4013 to level 1 #16986

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Elevate C4013 to level 1 #16986

wants to merge 1 commit into from

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