mirror of
https://github.com/json-c/json-c.git
synced 2026-04-07 06:19:07 +08:00
meson: remove useless if
get_supported_arguments already handles this. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -223,12 +223,10 @@ endif
|
|||||||
message('target is ' + host_machine.system())
|
message('target is ' + host_machine.system())
|
||||||
if host_machine.system() == 'windows'
|
if host_machine.system() == 'windows'
|
||||||
# Cover any compiler on Windows attempting to use MSVC's standard library
|
# 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
|
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')
|
||||||
add_project_arguments(cc.get_supported_arguments(['-Wno-unused-parameter']), language : 'c')
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Source files
|
# Source files
|
||||||
sources = files(
|
sources = files(
|
||||||
|
|||||||
Reference in New Issue
Block a user