https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60551
Petr Skocik <pskocik at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pskocik at gmail dot com
--- Comment #3 from Petr Skocik <pskocik at gmail dot com> ---
Same in plain C.
static void dont_warn(void) __attribute((unused));
results in -Wunused-function warning if dont_warn isn't defined.
On clang, the __attribute((unused)) successfully suppresses the warning.
https://godbolt.org/z/5KEqWvaTz