You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I compile with clang-tidy 18, I get the following errors, because we use infinity() in code that is compiled with option -ffast-math. And -ffast-math sets -ffinite-math-only.
Error: /home/runner/work/mixxx/mixxx/src/test/durationutiltest.cpp:118:21: error: use of infinity is undefined behavior due to the currently enabled floating-point options [-Werror,-Wnan-infinity-disabled]
118 | formatTime("?", std::numeric_limits<double>::infinity());
Error: /home/runner/work/mixxx/mixxx/src/test/frametest.cpp:21:41: error: use of infinity is undefined behavior due to the currently enabled floating-point options [-Werror,-Wnan-infinity-disabled]
21 | EXPECT_FALSE(mixxx::audio::FramePos(std::numeric_limits<double>::infinity()).isValid());
Error: /home/runner/work/mixxx/mixxx/src/test/frametest.cpp:57:36: error: use of infinity is undefined behavior due to the currently enabled floating-point options [-Werror,-Wnan-infinity-disabled]
57 | mixxx::audio::FramePos(std::numeric_limits<
| ^~~~~~~~~~~~~~~~~~~~
58 | mixxx::audio::FramePos::value_t>::infinity()));
Error: /home/runner/work/mixxx/mixxx/src/test/frametest.cpp:61:22: error: use of infinity is undefined behavior due to the currently enabled floating-point options [-Werror,-Wnan-infinity-disabled]
61 | -std::numeric_limits<
| ^~~~~~~~~~~~~~~~~~~~
62 | mixxx::audio::FramePos::value_t>::infinity()));
Error: /home/runner/work/mixxx/mixxx/src/test/frametest.cpp:65:36: error: use of infinity is undefined behavior due to the currently enabled floating-point options [-Werror,-Wnan-infinity-disabled]
65 | mixxx::audio::FramePos(std::numeric_limits<
| ^~~~~~~~~~~~~~~~~~~~
66 | mixxx::audio::FramePos::value_t>::infinity()));
Version
main
OS
Clang 18
The text was updated successfully, but these errors were encountered:
Bug Description
If I compile with clang-tidy 18, I get the following errors, because we use infinity() in code that is compiled with option
-ffast-math
. And-ffast-math
sets-ffinite-math-only
.Version
main
OS
Clang 18
The text was updated successfully, but these errors were encountered: