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

parcall: simplify usage print #68

Merged
merged 1 commit into from
Feb 11, 2025

Conversation

cspiel1
Copy link
Collaborator

@cspiel1 cspiel1 commented Feb 7, 2025

@maximilianfridrich and me think that the re_hprintf(pf, "%s", usage); form was only to avoid the gnu-zero-variadic-macro-arguments warning of clang compiler.

For the shorter form re_hprintf(pf, usage);, I hope that I am right with the assumption that the warning can be suppressed without any risk. Like it is done now with the -Wno-gnu-zero-variadic-macro-arguments switch.

The warning is still printed in editors that use LSP clangd if compile_commands.json was generated by gcc. We assume that for this purpose we should switch to clang compiler.

@sreimers am I right with these assumptions?

@cspiel1 cspiel1 requested a review from sreimers February 7, 2025 10:20
@cspiel1 cspiel1 merged commit 0dfa3a1 into baresip:main Feb 11, 2025
6 checks passed
@cspiel1 cspiel1 deleted the parcall_simplify_printf branch February 11, 2025 10:42
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.

1 participant