Skip to content

Commit

Permalink
meson: add_global_arguments -> add_project_arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott D Phillips authored and tp-m committed Nov 18, 2016
1 parent 2c87618 commit abf1f23
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions meson.build
@@ -1,6 +1,6 @@
project('gst-plugins-base', 'c', 'cpp',
version : '1.11.0.1',
meson_version : '>= 0.35.0',
meson_version : '>= 0.36.0',
default_options : [ 'warning_level=1',
'buildtype=debugoptimized' ])

Expand Down Expand Up @@ -35,9 +35,12 @@ if cc.get_id() == 'msvc'
# 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 not meson.is_subproject()
add_global_arguments('/wd4018', '/wd4244', '/wd4996', language : 'c')
endif
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')
# Disable SAFESEH with MSVC for plugins and libs that use external deps that
# are built with MinGW
noseh_link_args = ['/SAFESEH:NO']
Expand Down

0 comments on commit abf1f23

Please sign in to comment.