I'd like to use the -Wunused-result
option in GCC to detect unused/ignored return values in my code. But this requires marking the function declarations either with an attribute, or with attribute specifier sequence.
Doing this by hand could be very time consuming and error-prone. I was wondering if there is a way to tell GCC to set attributes for all functions (or set a default attribute), so that I could use the warning flag.