Silence expected and harmless errors

This commit is contained in:
Giovanni Mascellani 2020-11-03 14:07:22 +01:00 committed by Andrew Eikum
parent 16992af05c
commit e5c634ce0b

View File

@ -1237,8 +1237,10 @@ for sdkver in sdk_versions:
diagnostics = list(linux_build.diagnostics) diagnostics = list(linux_build.diagnostics)
if len(diagnostics) > 0: if len(diagnostics) > 0:
print('There were parse errors') # Ignore known and harmless issues
pprint.pprint(diagnostics) if not(len(diagnostics) == 1 and "This file isn't used any more" in diagnostics[0].spelling):
print('There were parse errors')
pprint.pprint(diagnostics)
else: else:
windows_build = index.parse(input_name, args=['-x', 'c++', '-m32', '-Isteamworks_sdk_%s/' % sdkver, '-I' + CLANG_PATH + '/include/', '-mms-bitfields', '-U__linux__', '-Wno-incompatible-ms-struct']) windows_build = index.parse(input_name, args=['-x', 'c++', '-m32', '-Isteamworks_sdk_%s/' % sdkver, '-I' + CLANG_PATH + '/include/', '-mms-bitfields', '-U__linux__', '-Wno-incompatible-ms-struct'])
windows_build64 = index.parse(input_name, args=['-x', 'c++', '-Isteamworks_sdk_%s/' % sdkver, '-I' + CLANG_PATH + '/include/', '-mms-bitfields', '-U__linux__', '-Wno-incompatible-ms-struct']) windows_build64 = index.parse(input_name, args=['-x', 'c++', '-Isteamworks_sdk_%s/' % sdkver, '-I' + CLANG_PATH + '/include/', '-mms-bitfields', '-U__linux__', '-Wno-incompatible-ms-struct'])