Closed Bug 1133818 Opened 10 years ago Closed 10 years ago

Fix GCC warnings in widget/windows.

Categories

(Core :: Widget: Win32, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla39
Tracking Status
firefox39 --- fixed

People

(Reporter: jacek, Assigned: jacek)

References

Details

Attachments

(2 files)

Attached patch fixSplinter Review
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)
Attached file warnings
Attachment #8565489 - Flags: review?(jmathies) → review+
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
Comment on attachment 8565489 [details] [diff] [review] fix Thanks for review.
Attachment #8565489 - Flags: feedback?(jmuizelaar)
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
Depends on: 1136177
Attachment #8565489 - Flags: feedback?(jmuizelaar)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: