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

Fix wrong function deprecated warnings with variables (Issue #1435) #3927

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

YelehaUwU
Copy link

@YelehaUwU YelehaUwU commented Jan 5, 2025

This addresses the issue #1435 and fixes the issue by implementing context around the scanned name, ignoring variables.

It is fully tested on a locally hosted server and works fine.

@YelehaUwU YelehaUwU changed the title Fix deprecated function names in variables (PR #1435) Fix deprecated function names in variables (Issue #1435) Jan 5, 2025
Copy link
Contributor

@Fernando-A-Rocha Fernando-A-Rocha left a comment

Choose a reason for hiding this comment

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

Without this PR, banIP = "192.168.1.69" will produce a warning.

I confirm that with these changes, this code no longer produces a warning.

GJ 👍

@YelehaUwU YelehaUwU changed the title Fix deprecated function names in variables (Issue #1435) Fixes wrong deprecated warning with variables (Issue #1435) Jan 5, 2025
@YelehaUwU YelehaUwU changed the title Fixes wrong deprecated warning with variables (Issue #1435) Fix wrong function deprecated warnings with variables (Issue #1435) Jan 5, 2025
@YelehaUwU
Copy link
Author

Screenshot 2025-01-06 071904
Now handles all cases mentioned.

Server/mods/deathmatch/logic/CResourceChecker.cpp Outdated Show resolved Hide resolved
Server/mods/deathmatch/logic/CResourceChecker.cpp Outdated Show resolved Hide resolved
Server/mods/deathmatch/logic/CResourceChecker.cpp Outdated Show resolved Hide resolved
Server/mods/deathmatch/logic/CResourceChecker.cpp Outdated Show resolved Hide resolved
@YelehaUwU
Copy link
Author

All changes needed done.

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.

4 participants