Commit 2b0c3461 authored by Vitja Makarov's avatar Vitja Makarov

Don't report error if position is not set

parent 63abcdc0
......@@ -176,7 +176,7 @@ def message(position, message, level=1):
def warning(position, message, level=0):
if level < LEVEL:
return
if Options.warning_errors:
if Options.warning_errors and position:
return error(position, message)
warn = CompileWarning(position, message)
line = "warning: %s\n" % warn
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment