-
Notifications
You must be signed in to change notification settings - Fork 70
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
Add copy constructor & assignment operator to acl_device_binary_t #236
Conversation
Thanks @IlanTruanovsky for tackling this. Unless there is a specific reason to have a copyable object, you may |
@IlanTruanovsky It's been a while, but I submitted a fix for the same issue in #207 and ran into this Klocwork issue. Klocwork's analysis is flawed here since the returned value is a reference into |
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.
Thanks @IlanTruanovsky. This looks good; you can drop the extra empty lines since this code is boilerplate.
Thanks @pcolberg for catching this false positive. I agree we should merge it. |
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.
Thanks @IlanTruanovsky. You can go ahead and squash the commits together into a single commit and force-push your branch. Revise the commit subject to match the actual changes, and in the commit message state why the change was done (to fix a Coverity issue).
Necessary to fix a coverity issue
a2c6522
to
7d522ea
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.
Thanks @IlanTruanovsky!
Add default copy constructor to acl_device_binary_t to fix a Coverity issue.
Coverity issue: