Comment by drysine
7 hours ago
C attribute: nodiscard (since C23)
[1] https://en.cppreference.com/w/c/language/attributes/nodiscar...
7 hours 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.