You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ok, I can fix that, but where to put this macro?
One unused parameter is width in classes.h:602 which does not include ar_internal.h (of course, it's public include)
Another case is object2 in ar_mutex.cpp:15 which ar_internal.h includes...
GCC and armcc support __attribute__((unused)), not sure about IAR.
The unused width parameter on the Channel ctor looks like a bug, actually. It will even cause TypedChannel to not work correctly for any type that is not the same size as void *. Thanks for finding this! 😀
So, probably the best place for an UNUSED macro is at the top of ar_internal.h, next to the other attribute macros.
Hi,
-Wunused
and for me-Wunused-parameter
is sometimes very handy.As title says, it would be nice to have such warnings suppressed on functions, that intentionally not use some parameter.
Possible solutions are explained here on SO.
If you want this solved, which solution do you prefer?
The text was updated successfully, but these errors were encountered: