Closed Bug 1298149 Opened 3 years ago Closed 3 years ago

clang-cl warning: ignoring return value of function declared with warn_unused_result in ContentParent.cpp

Categories

(Core :: DOM: Content Processes, defect)

All
Windows
defect
Not set

Tracking

()

RESOLVED FIXED
mozilla51
Tracking Status
firefox51 --- fixed

People

(Reporter: froydnj, Assigned: froydnj)

References

Details

Attachments

(1 file)

clang-cl complains thusly:

15:02.69 c:/m-c/dom/ipc/ContentParent.cpp(857,5):  warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result]
15:02.69     cp->SendUpdateWindow((uintptr_t)hwnd);
15:02.69     ^~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~
This change doesn't modify the behavior of the code, but it does silence
a clang-cl warning.
Attachment #8789765 - Flags: review?(amarchesini)
Assignee: nobody → nfroyd
Attachment #8789765 - Flags: review?(amarchesini) → review+
Pushed by nfroyd@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/9a0e659b29bb
explicitly ignore the result of SendUpdateWindow in ContentParent::SendAsyncUpdate; r=baku
https://hg.mozilla.org/mozilla-central/rev/9a0e659b29bb
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla51
You need to log in before you can comment on or make changes to this bug.