Comment by drysine
14 days ago
C attribute: nodiscard (since C23)
[1] https://en.cppreference.com/w/c/language/attributes/nodiscar...
14 days ago
C attribute: nodiscard (since C23)
[1] https://en.cppreference.com/w/c/language/attributes/nodiscar...
FWIW I’ve been using warn_unused_result in both gcc and clang since about 2020.
Yep, partial remedies are available for quite some time.