You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be good if clang would warn if the return type of a compartment call is void. Compartment calls can fail unexpectedly and return -1 (e.g. due to trusted stack exhaustion). Callers should be aware of and check for this, therefore it is never appropriate for a compartment call to return void. For the same reason we should also consider automatically adding the nodiscard attribute to compartment calls.
The text was updated successfully, but these errors were encountered:
It would be good if
clang
would warn if the return type of a compartment call isvoid
. Compartment calls can fail unexpectedly and return-1
(e.g. due to trusted stack exhaustion). Callers should be aware of and check for this, therefore it is never appropriate for a compartment call to returnvoid
. For the same reason we should also consider automatically adding thenodiscard
attribute to compartment calls.The text was updated successfully, but these errors were encountered: