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
[x] Commit messages follow the project guidelines.
N/A Tests that thoroughly check the new feature have been added/Regression tests checking the bug and its fix have been added; the added tests pass locally
N/A New feature has been documented/Current behavior is correctly described in the documentation.
N/A Applicable backports have been included in the description.
Reviewer Checklist
[x] The PR has a milestone assigned.
[x] The title and description correctly express the PR's purpose.
[x] Check contributor checklist is correct.
[x] Check CI results: changes do not issue any warning.
[x] Check CI results: failing tests are unrelated with the changes.
Description
This PR fixes next warning:
Contributor Checklist
Reviewer Checklist