You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Warnings C4244 and C4305 'argument': truncation / conversion from 'double' to 'RawType' / 'const M' to 'const Element' #949
compiled with Visual Studio 2019 Professional 16.5.1 on windows 10 1903.
`\src\benchmark_runner.cc(267,13): warning C4244: 'initializing': conversion from 'double' to 'benchmark::IterationCount', possible loss of data
\src\benchmark_runner.cc(266,41): warning C4244: 'initializing': conversion from 'double' to 'const benchmark::IterationCount', possible loss of data
\test\statistics_gtest.cc(25,1): warning C4305: 'argument': truncation from 'double' to 'RawType' \test\statistics_gtest.cc(24,1): warning C4244: 'argument': conversion from 'double' to 'RawType', possible loss of data
\test../src/benchmark_register.h(25,1): warning C4244: '*=': conversion from 'int' to 'T', possible loss of data
\src\googlemock\include\gmock/gmock-matchers.h(368,12): warning C4244: 'argument': conversion from 'const M' to 'const Element', possible loss of data
Activity
benvanik commentedon Mar 27, 2020
These would be great to fix - since benchmark overrides default warnings and forces these on it should be warning clean:
benchmark/CMakeLists.txt
Lines 103 to 104 in e30cac6
dmah42 commentedon Mar 30, 2020
Agreed. It used to be (sigh).
I'll take a look.
Fix type conversion warnings.
Fix type conversion warnings. (#951)
LebedevRI commentedon Apr 6, 2020
Why didn't CI fail with that warning?
Is warning-as-error not enabled for that compiler?Edit: because that compiler isn't being tested i guess.
Fix type conversion warnings. (google#951)