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

erasure_code: constify a bunch of "src" args #121

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Hi-Angel
Copy link
Contributor

The reasoning for this commit is to constify ec_encode_data() function.
It is expected that after this function has run, the data that "src"
argument points to has not changed. Hence this argument should really be
const.

All other functions that undergo same changes here are simply called by
ec_encode_data() internally, one way or another.

Signed-off-by: Konstantin Kharlamov [email protected]

@Hi-Angel Hi-Angel force-pushed the constify_ec_encode_data branch 6 times, most recently from ff48ec9 to 708181d Compare December 23, 2019 11:20
The reasoning for this commit is to constify ec_encode_data() function.
It is expected that after this function has run, the data that "src"
argument points to has not changed. Hence this argument should really be
`const`.

All other functions that undergo same changes here are simply called by
ec_encode_data() internally, one way or another.

Signed-off-by: Konstantin Kharlamov <[email protected]>
@Hi-Angel
Copy link
Contributor Author

Okay, I fixed various build errors that CI noticed, which weren't reproducible on my system (various macros compile or not, depending on configuration), now it passes.

@Hi-Angel
Copy link
Contributor Author

Oh, I noticed there're warnings in CI build in a similar vein that are missing on my system. Okay, before I move on to fixing them, I'd like to hear some opinion from maintainers on the changes.

@gbtucker
Copy link
Contributor

Thanks but I don't think we want to change the interface at this time.

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

Successfully merging this pull request may close these issues.

2 participants