That warning is disabled on mainline clang correctly, but note there is a TODO here: https://github.com/mamedev/mame/blob/mame0224/scripts/genie.lua#L1085

Apple makes life hard by fucking with clang version numbers. It needs to detect whatever Apple clang version corresponds to clang 10 as well.