[PATCH] scripts: Fix the parameter of warning function