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

Unused arguments in stock functions are now triggering warnings #938

Merged
merged 2 commits into from
Dec 11, 2023

Conversation

elymination
Copy link
Contributor

These changes fix #784

tests/compile-only/warn-unused-arg.sp adds coverage for unused arguments in public, static, stock and regular functions

Note that tests/compile-only/ok-argument-shadows-function.sp had to be modified (#pragma unused added) to take into account that arguments should now be used in stock functions.

Feel free to tell me if I missed anything!

@dvander
Copy link
Member

dvander commented Dec 11, 2023

Thanks for the change, and for adding tests!

@dvander dvander merged commit 96ce325 into alliedmodders:master Dec 11, 2023
19 checks passed
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.

"Stock" hides unused variable warning
2 participants