From: Rosen Penev Date: Tue, 4 Nov 2025 18:41:08 +0000 (-0800) Subject: meson: remove useless if X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f565798e2c7784627cbdc5369907bf9a7151c49d;p=thirdparty%2Fjson-c.git meson: remove useless if get_supported_arguments already handles this. Signed-off-by: Rosen Penev --- diff --git a/meson.build b/meson.build index 91c82a4..43a73b4 100644 --- a/meson.build +++ b/meson.build @@ -223,12 +223,10 @@ endif message('target is ' + host_machine.system()) if host_machine.system() == 'windows' # Cover any compiler on Windows attempting to use MSVC's standard library - add_project_arguments(['-D_CRT_NONSTDC_NO_DEPRECATE', '-D_CRT_SECURE_NO_WARNINGS'], language: 'c') + add_project_arguments('-D_CRT_NONSTDC_NO_DEPRECATE', '-D_CRT_SECURE_NO_WARNINGS', language: 'c') endif -if cc.get_id().contains('gcc') or cc.get_id().contains('clang') - add_project_arguments(cc.get_supported_arguments(['-Wno-unused-parameter']), language : 'c') -endif +add_project_arguments(cc.get_supported_arguments('-Wno-unused-parameter'), language : 'c') # Source files sources = files(