Closed Bug 1521690 Opened 5 years ago Closed 5 years ago

clang build warning: widget/windows/nsWindow.cpp(4951,7): warning: expression result unused; should this cast be to 'void'? [-Wunused-value]

Categories

(Core :: Widget: Win32, enhancement)

65 Branch
All
Windows
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla67
Tracking Status
firefox67 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

Details

Attachments

(1 file)

15:06.45 m:/src/widget/windows/nsWindow.cpp(4951,7): warning: expression result unused; should this cast be to 'void'? [-Wunused-value]
15:06.48 (void*)GetAccessible();
15:06.51 ^ ~

Casting non-void result to void* causes warning of clang. Additionally,
perhaps, we should use Unused << because of modern style.

Pushed by masayuki@d-toybox.com:
https://hg.mozilla.org/integration/autoland/rev/8a968b7beaba
Use `Unused <<` instead of `(void*)` in nsWindow.cpp r=aklotz,jmathies
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: