mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-16 11:15:31 +00:00
meson: add_global_arguments -> add_project_arguments
https://bugzilla.gnome.org/show_bug.cgi?id=774656
This commit is contained in:
parent
fa3eac2d28
commit
7b29403e06
1 changed files with 7 additions and 2 deletions
|
@ -33,8 +33,13 @@ cc = meson.get_compiler('c')
|
|||
# If a warning is completely useless and spammy, use '/wdXXXX' to suppress it
|
||||
# If a warning is harmless but hard to fix, use '/woXXXX' so it's shown once
|
||||
# NOTE: Only add warnings here if you are sure they're spurious
|
||||
if cc.get_id() == 'msvc' and not meson.is_subproject()
|
||||
add_global_arguments('/wd4018', '/wd4244', '/wd4996', language : 'c')
|
||||
if cc.get_id() == 'msvc'
|
||||
add_project_arguments(
|
||||
'/wd4018', # implicit signed/unsigned conversion
|
||||
'/wd4146', # unary minus on unsigned (beware INT_MIN)
|
||||
'/wd4244', # lossy type conversion (e.g. double -> int)
|
||||
'/wd4305', # truncating type conversion (e.g. double -> float)
|
||||
language : 'c')
|
||||
endif
|
||||
|
||||
cdata = configuration_data()
|
||||
|
|
Loading…
Reference in a new issue