eProsima / Fast-DDS-Gen

Fast-DDS IDL code generator tool. Looking for commercial support? Contact info@eprosima.com
Apache License 2.0
82 stars 62 forks source link

[21625] Fix warning on Windows #396

Closed richiware closed 2 months ago

richiware commented 2 months ago

Description

This PR fixes next warning:

constantsPubSubTypes.cxx
  D:\a\Fast-DDS\Fast-DDS\src\fastdds\test\dds-types-test\constants.hpp(60,31): error C2220: the following warning is treated as an error (compiling source file D:\a\Fast-DDS\Fast-DDS\src\fastdds\test\dds-types-test\constantsPubSubTypes.cxx) [D:\a\Fast-DDS\Fast-DDS\build\fastdds\test\dds\xtypes\DDSXtypesCommunication.vcxproj]
  [Processing: fastdds]
  D:\a\Fast-DDS\Fast-DDS\src\fastdds\test\dds-types-test\constants.hpp(60,31): warning C4305: 'initializing': truncation from 'double' to 'float' (compiling source file D:\a\Fast-DDS\Fast-DDS\src\fastdds\test\dds-types-test\constantsPubSubTypes.cxx) [D:\a\Fast-DDS\Fast-DDS\build\fastdds\test\dds\xtypes\DDSXtypesCommunication.vcxproj]
    constantsTypeObjectSupport.cxx
    declarationsPubSubTypes.cxx
  D:\a\Fast-DDS\Fast-DDS\src\fastdds\test\dds-types-test\constants.hpp(60,31): error C2220: the following warning is treated as an error (compiling source file D:\a\Fast-DDS\Fast-DDS\src\fastdds\test\dds-types-test\constantsTypeObjectSupport.cxx) [D:\a\Fast-DDS\Fast-DDS\build\fastdds\test\dds\xtypes\DDSXtypesCommunication.vcxproj]
  D:\a\Fast-DDS\Fast-DDS\src\fastdds\test\dds-types-test\constants.hpp(60,31): warning C4305: 'initializing': truncation from 'double' to 'float' (compiling source file D:\a\Fast-DDS\Fast-DDS\src\fastdds\test\dds-types-test\constantsTypeObjectSupport.cxx) [D:\a\Fast-DDS\Fast-DDS\build\fastdds\test\dds\xtypes\DDSXtypesCommunication.vcxproj]

Contributor Checklist

Reviewer Checklist