Return '0' in warning function