Closed
Bug 1256552
Opened 9 years ago
Closed 9 years ago
gfx/2d/RadialGradientEffectD2D1.cpp(162): warning C4838: conversion from 'int' to 'float' requires a narrowing conversion
Categories
(Core :: Graphics, defect)
Core
Graphics
Tracking
()
RESOLVED
FIXED
mozilla48
Tracking | Status | |
---|---|---|
firefox48 | --- | fixed |
People
(Reporter: gps, Unassigned)
References
Details
(Whiteboard: gfx-noted)
Attachments
(1 file, 2 obsolete files)
1.73 KB,
patch
|
jrmuizel
:
review+
|
Details | Diff | Splinter Review |
This warning is turned into an error when compiling on Visual Studio 2015 Update 1 in automation.
Reporter | ||
Comment 1•9 years ago
|
||
As part of unblocking building with VS2015u1 in automation, I'm mass
disabling compiler warnings that are turned into errors. This is not
the preferred mechanism to fix compilation warnings. So hopefully
this patch never lands because someone insists on fixing the underlying
problem instead. But if it does land, hopefully the workaround is
only temporary.
Review commit: https://reviewboard.mozilla.org/r/39989/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/39989/
Attachment #8730548 -
Flags: review?(jmuizelaar)
Reporter | ||
Comment 2•9 years ago
|
||
Comment on attachment 8730548 [details]
MozReview Request: Bug 1256552 - Disable C4838 to unblock compilation on VS2015; r?jrmuizel
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/39989/diff/1-2/
Reporter | ||
Comment 3•9 years ago
|
||
As part of unblocking building with VS2015u1 in automation, I'm mass
disabling compiler warnings that are turned into errors. This is not
the preferred mechanism to fix compilation warnings. So hopefully
this patch never lands because someone insists of fixing the underlying
problem instead. But if it does land, hopefully the workaround is
only temporary.
Review commit: https://reviewboard.mozilla.org/r/40001/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/40001/
Attachment #8730561 -
Flags: review?(jmuizelaar)
Comment 4•9 years ago
|
||
Can you post the compile warnings/errors that these fix so that we have a better chance of fixing them properly?
Reporter | ||
Comment 5•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=ef4999fe0980 should unmask the warnings. It may not get all of them because build will fail after first warning turned error. But you should be able to pull down that head (hg pull -r 388e18377a7f https://hg.mozilla.org/try) and test your changes on top of that.
Reporter | ||
Comment 6•9 years ago
|
||
So far we only found 1 warning turned error:
10:41:40 INFO - c:/builds/moz2_slave/try-w32-d-00000000000000000000/build/src/gfx/2d/RadialGradientEffectD2D1.cpp(162): error C2220: warning treated as error - no 'object' file generated
10:41:40 INFO - Warning: C4838 in c:\builds\moz2_slave\try-w32-d-00000000000000000000\build\src\gfx\2d\RadialGradientEffectD2D1.cpp: conversion from 'int' to 'float' requires a narrowing conversion
10:41:40 INFO - c:/builds/moz2_slave/try-w32-d-00000000000000000000/build/src/gfx/2d/RadialGradientEffectD2D1.cpp(162): warning C4838: conversion from 'int' to 'float' requires a narrowing conversion
10:41:40 INFO - c:/builds/moz2_slave/try-w32-d-00000000000000000000/build/src/gfx/2d/RadialGradientEffectD2D1.cpp(162): note: to simplify migration, consider the temporary use of /Wv:18 flag with the version of the compiler with which you used to build without warnings
10:41:40 INFO - c:/builds/moz2_slave/try-w32-d-00000000000000000000/build/src/config/rules.mk:918: recipe for target 'RadialGradientEffectD2D1.obj' failed
There /might/ be more. But we won't know until this is patched.
Updated•9 years ago
|
Whiteboard: gfx-noted
Comment 7•9 years ago
|
||
Attachment #8732967 -
Flags: review?(jmuizelaar)
Updated•9 years ago
|
Attachment #8732967 -
Flags: review?(jmuizelaar) → review+
Reporter | ||
Updated•9 years ago
|
Attachment #8730548 -
Attachment is obsolete: true
Attachment #8730548 -
Flags: review?(jmuizelaar)
Reporter | ||
Updated•9 years ago
|
Attachment #8730561 -
Attachment is obsolete: true
Attachment #8730561 -
Flags: review?(jmuizelaar)
Comment 9•9 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox48:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
Comment 10•9 years ago
|
||
Comment 11•9 years ago
|
||
bugherder |
You need to log in
before you can comment on or make changes to this bug.
Description
•