8000 Fix -Wformat compiler warning by michaelortmann · Pull Request #1796 · eggheads/eggdrop · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix -Wformat compiler warning #1796

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

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

michaelortmann
Copy link
Member
@michaelortmann michaelortmann commented Mar 15, 2025

Found by: michaelortmann
Patch by: michaelortmann
Fixes:

One-line summary:

Additional description (if needed):
Fixes the following 2 compiler warnings:

language.c:235:33: warning: format '%x' expects argument of type 'unsigned int *', but argument 3 has type 'int *' [-Wformat=]
language.c:535:21: warning: format '%x' expects argument of type 'unsigned int *', but argument 3 has type 'int *' [-Wformat=]

While at it remove a short for loop (32 instead of sizeof langtab = 64). global static is always initialized to zero.

misc.c:resolve_help() is only used in misc.c, so this PR also makes this function static.

Test cases demonstrating functionality (if applicable):
No functional change

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.

33F7
1 participant
0