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

Mark Result and MaybeResult [[nodiscard]] #7083

Merged
merged 1 commit into from
Nov 15, 2024
Merged

Mark Result and MaybeResult [[nodiscard]] #7083

merged 1 commit into from
Nov 15, 2024

Conversation

tlively
Copy link
Member

@tlively tlively commented Nov 15, 2024

Since these types may be carrying errors that need to be handled or
propagated, it is always an error not to use them in some way. Adding
the [[nodiscard]] attribute caused the compiler to find a few instances
where we were incorrectly ignoring results. Fix these places.

Since these types may be carrying errors that need to be handled or
propagated, it is always an error not to use them in some way. Adding
the [[nodiscard]] attribute caused the compiler to find a few instances
where we were incorrectly ignoring results. Fix these places.
@tlively tlively requested a review from dschuff November 15, 2024 20:27
@tlively tlively merged commit 368c1ed into main Nov 15, 2024
13 checks passed
@tlively tlively deleted the result-nodiscard branch November 15, 2024 21:18
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