FYI, there was a recent-ish thread that touched the same topic: [[maybe-unused]] vs __attribute__((unused)) vs (void) var for assert variables
Some handpicked replies: