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 warning about variadic macro #150

Merged
merged 1 commit into from
Feb 2, 2024
Merged

Conversation

hramrach
Copy link
Contributor

@hramrach hramrach commented Feb 2, 2024

For some reason when built with -m32 gcc produces this warning:

test_iniparser.c:19:22: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
19 | #define stringify_2(x...) #x

For the limited use in this test there is no need for variadic stringify.

With this the warning is avoided, and the test passes on both 32bit and 64bit.

For some reason when built with -m32 gcc produces this warning:

test_iniparser.c:19:22: warning: ISO C does not permit named variadic
macros [-Wvariadic-macros]
   19 | #define stringify_2(x...)     #x

For the limited use in this test there is no need for variadic
stringify.

With this the warning is avoided, and the test passes on both 32bit and
64bit.

Signed-off-by: Michal Suchanek <msuchanek@suse.de>
@ndevilla ndevilla merged commit 565bc5d into ndevilla:master Feb 2, 2024
@ndevilla
Copy link
Owner

ndevilla commented Feb 2, 2024

Thanks for the fix!

Repository owner deleted a comment from hramrach Feb 2, 2024
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