Open Bug 1249232 Opened 8 years ago Updated 2 years ago

MOZ_MUST_USE_TYPE should also check unused parameter

Categories

(Developer Infrastructure :: Source Code Analysis, defect)

defect

Tracking

(Not tracked)

People

(Reporter: xidorn, Unassigned)

References

Details

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
Product: Core → Firefox Build System
See Also: → 1729598
Product: Firefox Build System → Developer Infrastructure
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.