Closed
Bug 1521685
Opened 5 years ago
Closed 5 years ago
clang build warning: widget/windows/nsDataObj.cpp(864,11): warning: unused variable 'err' [-Wunused-variable]
Categories
(Core :: Widget: Win32, defect)
Tracking
()
RESOLVED
FIXED
mozilla66
Tracking | Status | |
---|---|---|
firefox-esr60 | --- | unaffected |
firefox64 | --- | unaffected |
firefox65 | --- | wontfix |
firefox66 | --- | fixed |
People
(Reporter: masayuki, Assigned: masayuki)
References
Details
(Keywords: regression)
Attachments
(1 file)
15:00.77 In file included from m:/fx64-dbg/widget/windows/Unified_cpp_widget_windows1.cpp:101:
15:00.81 m:/src/widget/windows/nsDataObj.cpp(864,11): warning: unused variable 'err' [-Wunused-variable]
15:00.83 DWORD err = ::GetLastError();
15:00.83 ^
Assignee | ||
Comment 1•5 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=a7e053eb4fd5984c62a6c0fc6e2b57946341730b
Assignee | ||
Comment 2•5 years ago
|
||
nsDataObj::GetDib() calls GetLastError() API immediately after calling
GlobalAlloc() and just return E_FAIL in such case. So, we don't need to
call it.
Pushed by masayuki@d-toybox.com: https://hg.mozilla.org/integration/autoland/rev/607394a48aca Get rid of unused GetLastError() API call in nsDataObj::GetDib() r=aosmond
Comment 4•5 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
status-firefox66:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
Updated•5 years ago
|
Blocks: 1501482
status-firefox64:
--- → unaffected
status-firefox65:
--- → wontfix
status-firefox-esr60:
--- → unaffected
Comment 5•5 years ago
|
||
https://hg.mozilla.org/projects/cedar/rev/607394a48aca3721c9386d975fc2fce29bdcba59 Bug 1521685 - Get rid of unused GetLastError() API call in nsDataObj::GetDib() r=aosmond
You need to log in
before you can comment on or make changes to this bug.
Description
•