There shall be no unused parameters (named or unnamed) in nonvirtual functions
There shall be no unused parameters (named or unnamed) in nonvirtual functions.
Unused parameters often indicate later design changes. You perhaps removed all uses of a specific parameter but forgot to remove the parameter from the parameter list.
Unused parameters constitute an unnecessary overhead. You can also inadvertently call the function with a different number of arguments causing a parameter mismatch.
The checker flags a function that has unused named parameters unless the function body is empty.
Function has unused
parameters. funcName
If you expect a rule violation but do not see it, refer to Coding Standard Violations Not Displayed.
| Group: Language Independent Issues |
| Category: Required |