Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails on armv7: non-constant-expression cannot be narrowed from type 'double' to 'float' in initializer list #353

Closed
yurivict opened this issue Jul 28, 2022 · 1 comment

Comments

@yurivict
Copy link

/wrkdirs/usr/ports/audio/qtractor/work/qtractor-qtractor_0_9_27/src/qtractorAudioMonitor.cpp:167:3: error: non-constant-expression cannot be narrowed from type 'double' to 'float' in initializer list [-Wc++11-narrowing]
                fGainIter + 2.0 * fGainStepSingle,
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/audio/qtractor/work/qtractor-qtractor_0_9_27/src/qtractorAudioMonitor.cpp:167:3: note: insert an explicit cast to silence this issue
                fGainIter + 2.0 * fGainStepSingle,
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                static_cast<float>(              )
/wrkdirs/usr/ports/audio/qtractor/work/qtractor-qtractor_0_9_27/src/qtractorAudioMonitor.cpp:168:3: error: non-constant-expression cannot be narrowed from type 'double' to 'float' in initializer list [-Wc++11-narrowing]
                fGainIter + 3.0 * fGainStepSingle };
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/audio/qtractor/work/qtractor-qtractor_0_9_27/src/qtractorAudioMonitor.cpp:168:3: note: insert an explicit cast to silence this issue
                fGainIter + 3.0 * fGainStepSingle };
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                static_cast<float>(              )
2 errors generated.

The failure is spotted on armv7 but this is likely a general problem that should be fixed.

Version: 0.9.27
clang-11
FreeBSD 13.0-RELEASE

@rncbc
Copy link
Owner

rncbc commented Jul 28, 2022

the case is only on (old) armv7/neon builds, maybe fixed in da1609cfb

@rncbc rncbc closed this as completed Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants