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

clang-cl warnings #85

Open
gvanem opened this issue Oct 13, 2022 · 0 comments
Open

clang-cl warnings #85

gvanem opened this issue Oct 13, 2022 · 0 comments

Comments

@gvanem
Copy link

gvanem commented Oct 13, 2022

While using clang-cl to build Jaero on Windows, I noticed these important warnings:

JAERO/burstmskdemodulator.cpp(724,22): warning: use of unary operator that may be intended as compound assignment (-=)
                real =- real;
                     ^~

Wasn't a real -= real; intended? But that seems a bit strange (resulting in almost zero?).

The same warning in several places:

JAERO/DSP.cpp(549,16): warning: use of unary operator that may be intended as compound assignment (-=)
        retval =- lastsoftstate;
               ^~

JAERO/mskdemodulator.cpp(461,18): warning: use of unary operator that may be intended as compound assignment (-=)
            real =- real;
                 ^~

JAERO/oqpskdemodulator.cpp(246,30): warning: use of unary operator that may be intended as compound assignment (-=)
        st_iir_resonator.b[2]=- 0.0012845857864470789;
                             ^~

Not sure about that last warning. But the first should be fixed by retval -= lastsoftstate;.

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

1 participant