Merge branch 'disable_mem-overflow_test_link_warning' into 'master'

tests: Disable link-time warning for mem-overflow

See merge request GNOME/glib!1405
This commit is contained in:
Philip Withnall 2020-03-04 10:17:40 +00:00
commit b72acc9c6e

View File

@ -47,7 +47,10 @@ glib_tests = {
'markup-collect' : {},
'markup-escape' : {},
'markup-subparser' : {},
'mem-overflow' : {},
'mem-overflow' : {
'link_args' : cc.get_id() == 'gcc' and cc.version().version_compare('> 6')
? ['-Wno-alloc-size-larger-than'] : [],
},
'mutex' : {},
'node' : {},
'once' : {},
@ -220,6 +223,7 @@ foreach test_name, extra_args : glib_tests
exe = executable(test_name, source,
c_args : test_cargs + extra_args.get('c_args', []),
link_args : extra_args.get('link_args', []),
dependencies : test_deps + extra_args.get('dependencies', []),
install_dir: installed_tests_execdir,
install: install,