Closed
Bug 1133818
Opened 10 years ago
Closed 10 years ago
Fix GCC warnings in widget/windows.
Categories
(Core :: Widget: Win32, defect)
Tracking
()
RESOLVED
FIXED
mozilla39
Tracking | Status | |
---|---|---|
firefox39 | --- | fixed |
People
(Reporter: jacek, Assigned: jacek)
References
Details
Attachments
(2 files)
20.78 KB,
patch
|
jimm
:
review+
|
Details | Diff | Splinter Review |
25.83 KB,
text/plain
|
Details |
With this patch set, mingw build of widget/windows is clean of warnings.
- In WinUtils::LogW the warning was about wrong size passed to memset. However, there is no need for memset at all. Also, wcslen is not the right way to get buffer size after wctmb conversion, so I changed that as well.
- I'm not sure about nsDataObjCollection.h. This fixes hidden virtuals, but maybe in some cases we should change them to real overrides.
- nsWindow::GetPreferredCompositorBackends removal of unused ID3D11Device getter call removes side effect of initializiing D3D11 devices. I'm not sure if it was intended.
try push seems green so far:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=a89b5fc871cc
Attachment #8565489 -
Flags: review?(jmathies)
Assignee | ||
Comment 1•10 years ago
|
||
![]() |
||
Updated•10 years ago
|
Attachment #8565489 -
Flags: review?(jmathies) → review+
![]() |
||
Comment 2•10 years ago
|
||
Comment on attachment 8565489 [details] [diff] [review]
fix
Review of attachment 8565489 [details] [diff] [review]:
-----------------------------------------------------------------
::: widget/windows/nsWindow.cpp
@@ -6584,5 @@
> if (prefs.mPreferOpenGL) {
> aHints.AppendElement(LayersBackend::LAYERS_OPENGL);
> }
>
> - ID3D11Device* device = gfxWindowsPlatform::GetPlatform()->GetD3D11Device();
Flag jrmuizel on this. Looks like this should have been removed, hard to tell.
http://hg.mozilla.org/mozilla-central/rev/6e4cb51583f6
http://hg.mozilla.org/mozilla-central/rev/695772d145a0
Assignee | ||
Comment 3•10 years ago
|
||
Comment on attachment 8565489 [details] [diff] [review]
fix
Thanks for review.
Attachment #8565489 -
Flags: feedback?(jmuizelaar)
Assignee | ||
Comment 4•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
Assignee | ||
Updated•10 years ago
|
Attachment #8565489 -
Flags: feedback?(jmuizelaar)
You need to log in
before you can comment on or make changes to this bug.
Description
•