The #pragma that was removed in commit e255837eaf (MDEV-34266) turns out to be necessary for silencing all cases of -Wstringop-truncation.
e255837eaf