Potential False Positive with __attribute__ ((unused)) - c:S995

Hello @Adrianh,

This is the intended behavior of the rule. We currently don’t have another rule that considers the attribute. Is there a reason why you don’t want to make the type const char * for the unused parameter? At the end S995_trigger should be able to accept an argument of type const char*.

If you have a specific reason why you don’t want to apply the rule in such a situation, you should just mark them as won’t fix.

Thanks,

1 Like