Closed Bug 1596807 Opened 5 years ago Closed 5 years ago

disable -Wmicrosoft-exception-spec

Categories

(Firefox Build System :: General, task)

All
Windows
task
Not set
normal

Tracking

(firefox72 fixed)

RESOLVED FIXED
mozilla72
Tracking Status
firefox72 --- fixed

People

(Reporter: froydnj, Assigned: froydnj)

References

Details

Attachments

(1 file)

As switching to C++17 starts throwing these warnings all over the place.

Documenting for posterity the error here in a little more detail.

We have headers that declare COM methods like

IFACEMETHOD(DrawGlyphRun)

which expands to

__override virtual COM_DECLSPEC_NOTHROW HRESULT STDMETHODCALLTYPE DrawGlyphRun

but then the definition uses

IFACEMETHODIMP DWriteFontFallbackRenderer::DrawGlyphRun(

which expands to

__override HRESULT STDMETHODCALLTYPE DWriteFontFallbackRenderer::DrawGlyphRun(

Note the missing COM_DECLSPEC_NOTHROW.

See also https://github.com/google/skia/commit/6cb6a07116c986719bb9acb5125b92bd9f3e068a and https://developercommunity.visualstudio.com/content/problem/325764/msvc-1582-generates-warning-c4986-in-atl-header-fi.html

Type: defect → task
Pushed by nfroyd@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f5173fdbd7c6
turn off more exception spec mismatch warnings on Windows; r=dmajor
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72
Assignee: nobody → nfroyd
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: