Previously, there is the warning even if there is no unused parameter, which can be confusing. Change to only show the warning if there are actually unused parameters.