Ignore unknown warning options with clang to make it easier to support more compiler versions.

This commit is contained in:
Patrick 2023-08-21 09:36:47 +02:00
parent d5bfa0ee80
commit d2821a239d

View File

@ -288,7 +288,7 @@ elif env['COMPILER_FAMILY'] == 'cl':
if env['COMPILER_FAMILY'] == 'gcc':
env.Append(CCFLAGS = ['-Wno-volatile'])
elif env['COMPILER_FAMILY'] == 'clang':
env.Append(CCFLAGS = ['-Wno-deprecated-volatile', '-Wno-nested-anon-types'])
env.Append(CCFLAGS = ['-Wno-deprecated-volatile', '-Wno-nested-anon-types', '-Wno-unknown-warning-option'])
env.AddMethod(_cook, 'Cook')
env.AddMethod(_parse_lib_conf, 'ParseLibConf')