Request to fix compiler warnings of comparing floats
Submitted by csukuangfj
Assigned to Nobody
Link to original bugzilla bug (#1520)
Version: 3.5 (future version)
Description
While compiling the Eigen library provided by Open3D (https://github.com/IntelVCL/Open3D), I got the following
compiler warnings
xx/Open3d/src/External/Eigen/Eigen/src/Core/arch/CUDA/Half.h:241:19: warning:
comparing floating point with == or != is unsafe [-Wfloat-equal]
return float(a) == float(b);
~~~~~~~~ ^ ~~~~~~~~
xx/Open3d/src/External/Eigen/Eigen/src/Core/arch/CUDA/Half.h:244:19: warning:
comparing floating point with == or != is unsafe [-Wfloat-equal]
return float(a) != float(b);
~~~~~~~~ ^ ~~~~~~~~
2 warnings generated.
The problem exists also for the current master branch of Eigen.
See the issue on GitHub: https://github.com/IntelVCL/Open3D/issues/154