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

Warning: token pasting of ',' and __VA_ARGS__ is a GNU extension #27

Open
chrhaase opened this issue Dec 13, 2023 · 0 comments
Open

Warning: token pasting of ',' and __VA_ARGS__ is a GNU extension #27

chrhaase opened this issue Dec 13, 2023 · 0 comments

Comments

@chrhaase
Copy link

Hi, building with juce_recommended_warning_flags I get this warning:

_deps/melatonin_perfetto-src/melatonin_perfetto/melatonin_perfetto.h:249:69: warning: token pasting of ',' and __VA_ARGS__ is a GNU extension [-Wgnu-zero-variadic-macro-arguments]
            TRACE_EVENT ("dsp", perfetto::StaticString (pf.data()), ##__VA_ARGS__)

I had the same issue with my own logging macros and simply removing the ## solved it. I'm building with Clang though, so I thought those might would be needed to make gcc happy, but maybe not actually...

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