-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Fix MSVC compiler warnings #20022
Fix MSVC compiler warnings #20022
Conversation
0bcd04f
to
dbf7963
Compare
About that other warning: it's indeed a bit cryptical, but might relate to the fact that there's a |
dbf7963
to
75455c4
Compare
I see! And can guess what it really is ment to be, @shoogle, please check |
f147573
to
0bc0440
Compare
0bc0440
to
0849828
Compare
@Jojo-Schmitz, the braille code was written by @TuanLa1972. The |
0849828
to
7f4eea4
Compare
Ah, I see, my guess wasn't just wrong, it was downright bad, thanks! |
Sorry to say that I don't remember what idea was behind
findBrailleCode()function.
Please remove it.
Also, some other findXXX functions in braille.h aren't used anywher and
they can be removed too.
I guess we've changed the algo and they are not necessary anymore.
Vào CN, 19 thg 11, 2023 vào lúc 06:53 Peter Jonas <
***@***.***> đã viết:
… @Jojo-Schmitz <https://github.com/Jojo-Schmitz>, the braille code was
written by @TuanLa1972 <https://github.com/TuanLa1972>. The
findBrailleCode() function doesn't appear to be used anywhere, but my
guess is return br; was correct (i.e. your change is wrong) and the two return
nullptr; lines above were supposed to be continue; instead.
—
Reply to this email directly, view it on GitHub
<#20022 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APTBLS6XJ7H7QMEXLVIANRLYFFC7BAVCNFSM6AAAAAA7KXGJRGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJXGY4DANBWHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
7f4eea4
to
1e3d94e
Compare
OK, removed |
f51f7d7
to
18915e7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm happy with the Braille find...
functions being removed. They are not used anywhere.
The other changes seem reasonable as well.
172d3a6
to
6a477f4
Compare
reg.: 'includeCrossStaffHeight': unreferenced formal parameter (C4100)
reg.: conversion from 'size_t' to 'int', possible loss of data (C4267)
reg. unreachable code (C4702) Fixed by removing the offending and apparently unused code, along with another bunch of unused code.
reg.: declaration of 'item' hides function parameter (C4457)
reg.: 'includeCrossStaffHeight': undeclared identifier (C2065)
6a477f4
to
677e19f
Compare
Now I also got and fixed a compiler error |
Some 1000 warnings C4996, all in internal VS code, 'xutility', lines 1141, 1255 and 1256 and '__msvc_iter_core.hpp', lines 488-492
there's one warning left:
which I don't understand, code in question:
MuseScore/src/braille/internal/braillecode.cpp
Lines 1025 to 1044 in 1df93bb
Possible fix:
And now also a compiler error: