https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71684
nsz at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nsz at gcc dot gnu.org --- Comment #1 from nsz at gcc dot gnu.org --- on a posix platform pthread_mutex_destroy should be called for a mutex if its life time ends, so the ifdef logic seems wrong (the initializer does not make a difference).