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
{{ message }}
Repository navigation
[BUG] -Wunused-result warnings in generated code #7934
This is happening because write is declared with an attribute that says "this really really shouldn't be ignored". And that attribute is strong enough to bypass the (void) cast. If that's the case then surely the warning is appropriate and so Cython shouldn't go to great lengths to override it - it's a genuine error in your code and if you care enough to set -Werror=unused-result then you should want to see it.
Activity
da-woods commentedon Aug 26, 2026
This is happening because
writeis declared with an attribute that says "this really really shouldn't be ignored". And that attribute is strong enough to bypass the(void)cast. If that's the case then surely the warning is appropriate and so Cython shouldn't go to great lengths to override it - it's a genuine error in your code and if you care enough to set-Werror=unused-resultthen you should want to see it.