use correct warning code