-
Notifications
You must be signed in to change notification settings - Fork 202
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
error: explicitly assigning value of variable of type 'ola::DmxBuffer' to itself #1564
Comments
https://github.com/OpenLightingProject/ola/blob/master/common/utils/DmxBufferTest.cpp#L197 However I miss there any explicit checks for consistency after self assignment. Only implicit ones are present (i.e. the code does not crash). |
I think that's the idea based on the comment @janosvitok .
Do you mean checking the contents of buffer is still equal to what it was initialised to? Do you fancy trying to add some further tests around this? I think to workaround the warning/error we might need to add this flag to the relevant bit of test code (but ideally just that bit, not everywhere), although I think when I looked before, GCC complains if passed this flag (or LLVM if it was GCC throwing it): |
We may be able to workaround this problem using the push/pop idea @yoe is using here: |
@kecramer or anyone else, which compiler does this happen on, I think it should be a fairly simple fix but it would be nice to test it. |
Yeah agreed.
I've worked around the issue, and added some basic tests in https://github.com/OpenLightingProject/ola/pull/1426/files was that the sort of thing you meant @janosvitok ?
We already had it in #1426 so ignore that! |
Yes, something like that. |
Great, I'll close this then @janosvitok ! |
Is the error when I am up to date with origin/master (and for this branch as well)
Originally posted by @kecramer in #1561 (comment)
The text was updated successfully, but these errors were encountered: