Skip to content

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

@rpatters1

Description

@rpatters1

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions