Closed Bug 1894423 Opened 11 months ago Closed 10 months ago

[clang-trunk] Perma js/src/threading/ExclusiveData.h:113:29: error: reference to non-static member function must be called

Categories

(Core :: JavaScript Engine, defect)

defect

Tracking

()

RESOLVED FIXED
127 Branch
Tracking Status
firefox127 --- fixed

People

(Reporter: glandium, Assigned: glandium)

References

Details

Attachments

(1 file)

[task 2024-05-01T04:29:00.195Z] 04:29:00    ERROR -  /builds/worker/checkouts/gecko/js/src/threading/ExclusiveData.h:113:29: error: reference to non-static member function must be called
[task 2024-05-01T04:29:00.195Z] 04:29:00     INFO -    113 |       : lock_(std::move(rhs.lock)), value_(std::move(rhs.value_)) {
[task 2024-05-01T04:29:00.195Z] 04:29:00     INFO -        |                         ~~~~^~~~
[task 2024-05-01T04:29:00.195Z] 04:29:00     INFO -  1 error generated.

Because the constructor is actually not used, the compiler used to not
complain about it being broken. Recent changes on clang trunk made it
catch this problem without the constructor being used.

As Mutex doesn't have a move constructor, it's also not only a matter of
adding the missing underscore to lock.

As the constructor is never used, just remove it.

Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/223087fdc29f Remove unused ExclusiveData move constructor. r=spidermonkey-reviewers,jonco
Status: NEW → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
Target Milestone: --- → 127 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: