Do not report 3rd party library warnings

This commit is contained in:
o9000 2017-12-21 12:27:57 +01:00
parent 328a35f949
commit 5cea67171b

View file

@ -296,12 +296,12 @@ def compile_remotely_and_report(host):
print("Status: Failed!", error)
print("Output:")
print("```\n" + out.strip() + "\n```")
if "warning:" in out:
warnings = [ line for line in out.split("\n") if "warning:" in line and ".so." not in line.split(":", 1)[0] ]
if warnings:
print("Status: Succeeded with warnings!", warning)
print("Warnings:")
print("```", end="")
for line in out.split("\n"):
if "warning:" in line:
for line in warnings:
print(line, end="")
print("```", end="")
else: