开发过程中所写的代码在编译过程中不能避免出现warning的情况,而编译器将warning当做错误会对我们的开发造成一定的影响,故将/scripts/gcc-wrapper.py的interpret_warning(line.decode(“utf-8”))注释
try:
proc = subprocess.Popen(args, stderr=subprocess.PIPE)
for line in proc.stderr:
print (line.decode("utf-8"), end="")
# interpret_warning(line.decode("utf-8")) //将这里注释这在编译过程中编译器会将warning给忽略
if do_exit:
sys.exit(1)
result = proc.wait()