-
-
Notifications
You must be signed in to change notification settings - Fork 746
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
Remove register keyword according to ISO C++17 for fixing related warning #1893
Conversation
Dear @Ralim . I understand that you are very busy these days so sorry to bother you. But once you will have a bit of some free time, could you, please, briefly look through this little PR and tell me what you think? Much appreciated for your time & experience as always, thanks. Dear @discip , could you, please, very briefly check & test this build on Pinecil V1 (if you have any) just to make sure that there is no any undefined behavior with this little change? As always, much appreciated for your QA help. Thank you, guys. |
I have no issue with the PR; I'll test on hardware this week (nag me if I dont get back to you) |
@ia So far nothing seems to be broken. Is there anything particular to look out for? |
No-no, don't even worry.
Thanks!
Yeah, sorry about that... I saw your comments from another discussion: it seems that yours is half bricked now. I'm sincerely really sorry to hear that :(
Really appreciate your help!
Well, this particular change goes for Pinecil V1 only so if you can check just basic OK behavior on Pinecil V1 then it would be awesome. If not - that's fine, don't worry. |
Thank you! 👍
I'll let you know as soon as I get my hands on it. |
Tested on two units here and works perfectly ❤️ |
What kind of change does this PR introduce?
Fix warning from compiler.
What is the current behavior?
Pinecil
build generates a lot of messages with the same type of warning.What is the new behavior (if this is a feature change)?
register
keyword is removed from source/Core/BSP/Pinecil/Vendor/NMSIS/Core/Include/core_feature_base.h.Other information:
Not an C++ expert but as far as I understand, here is the situation:
Pinecil
build;register
keyword has no any effect (my guess is that now it's up to compiler's decision whether or not to save the variable value in CPU register);register
keyword incore_feature_base.h
;-Wregister
flag for the build;I didn't cross the checklist though since I haven't tried the build on the hardware to make sure that it doesn't break anything on the device but since the keyword has no meaning I guess it should be ok.