Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add warning for calling pure nothrow functions and ignoring the result
- Loading branch information
9b50184
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.
Just curious – was there a reason for this not to be enabled before?
9b50184
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.
Another thing: What would be the most elegant way to suppress this warning? There are valid use cases where you end up with a
pure
andnothrow
delegate being called, e.g. when just waiting for astd.concurrency
message:receive((ShutdownMessage msg, Tid tid){})
.9b50184
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.
I can't think of an elegant way. If this turns out to be a problem, we'll just remove the warning.
9b50184
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.