Skip to content

VertexFitter: fix clang warnings

Marco Cattaneo requested to merge fixClangWarnings-LoKiFitters into 2018-patches

Fixes the warnings

Phys/LoKiFitters/src/VertexFitter.cpp:194:10: warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value]
    if ( abs ( d2 ) < std::min ( m_DistanceChi2  , 0.01 ) || s_equal ( d2 , 0 ) )
         ^
Phys/LoKiFitters/src/VertexFitter.cpp:194:10: note: use function 'std::abs' instead
    if ( abs ( d2 ) < std::min ( m_DistanceChi2  , 0.01 ) || s_equal ( d2 , 0 ) )
         ^~~
         std::abs
Phys/LoKiFitters/src/VertexFitter.cpp:658:10: warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value]
    if ( abs ( chi2 ) < std::min ( m_DistanceChi2 , 0.01 ) || s_equal ( chi2 , 0 ) )
         ^
Phys/LoKiFitters/src/VertexFitter.cpp:658:10: note: use function 'std::abs' instead
    if ( abs ( chi2 ) < std::min ( m_DistanceChi2 , 0.01 ) || s_equal ( chi2 , 0 ) )
         ^~~
         std::abs

Merge request reports