From e5c634ce0b4252e231119d87bf174c8194ecd311 Mon Sep 17 00:00:00 2001 From: Giovanni Mascellani Date: Tue, 3 Nov 2020 14:07:22 +0100 Subject: [PATCH] Silence expected and harmless errors --- lsteamclient/gen_wrapper.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lsteamclient/gen_wrapper.py b/lsteamclient/gen_wrapper.py index 8fde253e..66e1f16e 100755 --- a/lsteamclient/gen_wrapper.py +++ b/lsteamclient/gen_wrapper.py @@ -1237,8 +1237,10 @@ for sdkver in sdk_versions: diagnostics = list(linux_build.diagnostics) if len(diagnostics) > 0: - print('There were parse errors') - pprint.pprint(diagnostics) + # Ignore known and harmless issues + 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: 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'])