[#3526] Unnecessary warning logs introduced in code generation