MOZ_MUST_USE_TYPE should also check unused parameter

NEW
Unassigned

Status

Firefox Build System
Source Code Analysis
2 years ago
3 months ago

People

(Reporter: xidorn, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

2 years ago
Like return value, if a parameter with type marked as MOZ_MUST_USE is not used in some of code paths, it could also indicate potential bugs.

It seems this kind of code has already existed, so it would need some more work to enforce that.
Bug 1267550 renamed MOZ_MUST_USE as MOZ_MUST_USE_TYPE.
Summary: MOZ_MUST_USE should also check unused parameter → MOZ_MUST_USE_TYPE should also check unused parameter

Updated

3 months ago
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.