Michael Stefaniuc mstefani@redhat.com wrote:
afair the fix is to disable the int truncation warnings in MSVC. For whatever reason they seem to enable those bogus warnings.
The warnings are not bogus, the PSDK compiler also emits a warning when truncating from double to float while gcc keeps silence for instance. Anyway, the patch shouldn't hurt, PSDK headers have similar casts. This patch also helps to pay more attention to warnings: when there are lots of existing ones, it's hard to recognize new and possibly real problems in the code.