https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113769
--- Comment #1 from SymbioticFemale <symbioticfemale at cumallover dot me> --- Notably, it occurs with -Wall -Wextra -O2, etc. Integer size is irrelevant. Changing the function do_nothing to 'static inline' does not make a difference. It occurs with either pthread_mutex_t or pthread_rwlock_t.