[#2844] Emit a better warning, but emit it only once