Closed Bug 1826734 Opened 2 years ago Closed 1 year ago

Replace mozilla::Unused with (void) in DOM: File components

Categories

(Core :: DOM: File, task)

task

Tracking

()

RESOLVED FIXED
115 Branch
Tracking Status
firefox115 --- fixed

People

(Reporter: saschanaz, Assigned: saschanaz)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

No description provided.
Summary: Replace mozilla::Unused with (void) in dom/file → Replace mozilla::Unused with (void) in DOM: File components

There is an r+ patch which didn't land and no activity in this bug for 2 weeks.
:saschanaz, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit BugBot documentation.

Flags: needinfo?(krosylight)
Flags: needinfo?(bugmail)

Two weeks?! No way, time flies!

I wonder it should warn with NS_WARN_IF(FAILED()) or QM_WARNONLY_TRY instead of just fully ignore the result.

Flags: needinfo?(krosylight)
Flags: needinfo?(bugmail)
Pushed by krosylight@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/96e1951eae03
Replace mozilla::Unused with (void) in dom/{file,filesystem} r=dom-storage-reviewers,asuth

(In reply to Kagami [:saschanaz] from comment #3)

I wonder it should warn with NS_WARN_IF(FAILED()) or QM_WARNONLY_TRY instead of just fully ignore the result.

There is already an NS_WARN_IF internally in DispatchToIOThread:

if (NS_WARN_IF(NS_FAILED(rv))) {
  return rv;
}

Ah, that's cool!

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: