<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def warning(lineno, msg):
 """ Generic warning error routine """

    msg = "%s:%i: warning: %s" % (global_.FILENAME, lineno, msg)
    msg_output(msg)
    global_.has_warnings += 1