In the function below I'm not using the parameter (void **arg). But since it's unused inside the function compiler gives me the error below:
error: unused parameter 'arg' [-Werror=unused-parameter] bool decodeString(pb_istream_t *stream, const pb_field_t *field, void **arg) I tried to suppress it by writing void(arg) inside the function without any luck. Can anyone help me with the correct way?
bool decodeString(pb_istream_t *stream, const pb_field_t *field, void **arg)becomesbool decodeString(pb_istream_t *stream, const pb_field_t *field, void **)bool decodeString(pb_istream_t *stream, const pb_field_t *field, void ** /*arg*/ )because the name may hold useful information about how the parameter should be used, should that information become important later.