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

VX_TRACKER: Use prefix string correctly #939

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

osm
Copy link
Contributor

@osm osm commented Sep 12, 2024

No description provided.

@dsvensson
Copy link
Collaborator

Nice...

/.../ezquake-source/src/vx_tracker.c:331:37: error: format specifies type 'char *' but the argument has type 'cvar_t' (aka 'struct cvar_s') [-Werror,-Wformat]
                        Com_Printf("%s%s%s%s%s%s%s%s\n", amf_tracker_string_inconsole_prefix, text1 ? text1 : "", text1 && text2 ? " " : "", text2 ? text2 : "", text2 && text3 ? " " : "", text3 ? text3 : "", text3 && text4 ? " " : "", text4 ? text4 : "");

from

void Com_Printf (char *fmt, ...) __attribute__ ((format(printf, 1, 2)));
void Com_DPrintf (char *fmt, ...) __attribute__ ((format(printf, 1, 2)));;

Guess some compiler consideration is needed, I'll fix later.

@dsvensson dsvensson merged commit bcbf931 into QW-Group:master Sep 12, 2024
5 checks passed
@osm osm deleted the fix-inconsole-prefix branch September 12, 2024 18:51
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