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

error: must specify at least one argument for '...' parameter of variadic macro #89

Open
rpatters1 opened this issue Dec 15, 2024 · 0 comments

Comments

@rpatters1
Copy link
Contributor

I am working on a new project and would like to use refl.hpp. I am compiling it with the most stringent warning options, and this is what I get:

refl.hpp:4398:5: error: must specify at least one argument for '...' parameter of variadic macro [-Werror,-Wgnu-zero-variadic-macro-arguments]
    REFL_DETAIL_PRIMITIVE(char)
    ^
refl.hpp:4394:23: note: expanded from macro 'REFL_DETAIL_PRIMITIVE'
    REFL_TYPE(TypeName) \
                      ^
refl.hpp:4299:9: note: macro 'REFL_TYPE' defined here
#define REFL_TYPE(TypeName, ...) \
        ^

and lots more like it. I can work around the issue by pushing and popping warnings, but it would be nice if they didn't happen.

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

No branches or pull requests

1 participant