From 5a1300db0a0c6a4588ac49941ed868e1b9276a93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20M=C3=BCller?= <> Date: Tue, 10 Oct 2023 11:16:25 +0200 Subject: [PATCH] glib/tests/meson.build: remove identical build targets If no error with -Werror=sign-conversion, the resulting object file does not differ from compilation without -Werror=sign-conversion. So the -Werror argument is now applied directly to string.c and testing.c. Finally, the currently specific -Werror targets string-macro and testing-macro are removed. --- glib/tests/meson.build | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/glib/tests/meson.build b/glib/tests/meson.build index 2065a75df..d401e759b 100644 --- a/glib/tests/meson.build +++ b/glib/tests/meson.build @@ -127,23 +127,14 @@ glib_tests = { 'extra_programs' : host_machine.system() == 'windows' ? ['spawn-test-win32-gui'] : [], }, 'strfuncs' : {}, - 'string' : {}, - 'string-macro' : { - 'source' : 'string.c', + 'string' : { 'c_args' : cc.get_id() == 'gcc' ? ['-Werror=sign-conversion'] : [], - 'install' : false, }, 'strvbuilder' : {}, 'testing' : { 'args': [ '--verbose' ], 'extra_programs' : ['testing-helper'], - }, - 'testing-macro' : { - 'args': [ '--verbose' ], - 'extra_programs' : ['testing-helper'], - 'source' : 'testing.c', 'c_args' : cc.get_id() == 'gcc' ? ['-Werror=sign-conversion'] : [], - 'install' : false, }, 'test-printf' : {}, 'thread' : {},