Closed
Bug 851306
Opened 11 years ago
Closed 11 years ago
Fix MSVC C4244 build warnings (for type conversions) in Telemetry.cpp
Categories
(Toolkit :: Telemetry, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: dholbert, Unassigned)
References
(Blocks 1 open bug)
Details
MSVC has these build warnings for Telemetry.cpp: { e:/builds/moz2_slave/try-w32-d-00000000000000000000/build/toolkit/components/telemetry/Telemetry.cpp(547) : warning C4244: 'argument' : conversion from 'int64_t' to 'double', possible loss of data e:/builds/moz2_slave/try-w32-d-00000000000000000000/build/toolkit/components/telemetry/Telemetry.cpp(815) : warning C4244: 'argument' : conversion from 'int64_t' to 'uint32_t', possible loss of data e:/builds/moz2_slave/try-w32-d-00000000000000000000/build/toolkit/components/telemetry/Telemetry.cpp(2135) : warning C4244: 'initializing' : conversion from 'double' to 'uint32_t', possible loss of data e:/builds/moz2_slave/try-w32-d-00000000000000000000/build/toolkit/components/telemetry/Telemetry.cpp(2393) : warning C4244: 'argument' : conversion from 'int64_t' to 'uint32_t', possible loss of data }
Reporter | ||
Comment 1•11 years ago
|
||
Build log w/ these warnings treated as errors: https://tbpl.mozilla.org/php/getParsedLog.php?id=20652593&tree=Try
Reporter | ||
Comment 2•11 years ago
|
||
Note: bug 851183 just landed, marking this directory as FAIL_ON_WARNINGS for non-MSVC compilers. When the warnings described in this bug here are fixed, we can remove the "_MSC_VER" check (exempting MSVC) there.
Reporter | ||
Comment 3•11 years ago
|
||
We've actually disabled warning C4244 now, in bug 857863, so while the underlying issue presumably remains, the "causes warnings" aspect is WORKSFORME.
Reporter | ||
Comment 4•11 years ago
|
||
(And the _MSC_VER check noted in comment 2 will be going away in bug 858224.)
You need to log in
before you can comment on or make changes to this bug.
Description
•