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

Make ReturnMemThruPtr pointers const #453

Merged
merged 3 commits into from
Nov 23, 2023
Merged

Make ReturnMemThruPtr pointers const #453

merged 3 commits into from
Nov 23, 2023

Conversation

NovaNekmit
Copy link
Contributor

@NovaNekmit NovaNekmit commented Aug 9, 2023

Previously, using ReturnMemThruPtr with data defined as const may result in linters warning about discarding const. As the data is just copied by the mock, making the parameter and struct member a pointer-to-const is valid.

This partly addresses #259.

@mvandervoord mvandervoord merged commit 9192a95 into ThrowTheSwitch:master Nov 23, 2023
1 check passed
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