sufst/vcu-gui

build(windows): C4244 `int` to `float` conversion warning

niketa282 opened this issue · 2 comments

Description

While executing msbuild ./VCU-GUI.sln on windows 27 warnings observed

warning C4244: 'initializing': conversion from 'int' to 'float', possible loss of data

https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-levels-3-and-4-c4244?view=msvc-170

t-bre commented

I think we can safely suppress most of these warnings, in whatever way we choose to. In most cases these are int -> float narrowing conversions relating to GUI code and the integer values from GUI dimensions are never going to be big enough to cause a problem.