Replies: 1 comment
-
I tried to compile sdbus-c++ tests (where this macro is used several times) with both gcc v12.2 and gcc v13.3 and The gcc docs on this warning mentions unused static function. However, the macro uses inline functions without Anyhow, even when the warning was emitted, I would suggest that clients suppress the warning in their code. I don't think it is good idea to do it generally on sdbus-c++ level. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
I use
SDBUSCPP_REGISTER_STRUCT
to generate code for my struct. The macro generated "more code than necessary" and therefore my-Werror
strikes in.To Reproduce
Expected behavior
No warnings, just compile.
Real (buggy) behavior
Additional context
One way to ignore these errors would be adding pragma inside the macro:
I'm not sure which pragmas msvc would expect and I'm not sure if we want to go this path :/
Tell me what you think about this.
Beta Was this translation helpful? Give feedback.
All reactions