logoalt Hacker News

comexlast Sunday at 10:16 PM1 replyview on HN

It does work in GCC to suppress unused variable warnings. Just not for function calls I guess.


Replies

cminminlast Monday at 8:16 AM

__attribute__((maybe_unused)) or [[maybe_unused]] or such things (dependin on ur spec version i guess?) can be used not to disable a whole line of errors.