diff options
author | Thibault Saunier <thibault.saunier@osg.samsung.com> | 2016-11-23 06:05:26 -0800 |
---|---|---|
committer | Thibault Saunier <tsaunier@gnome.org> | 2016-11-25 13:22:34 -0300 |
commit | 56941cc92011c77a2933b349605f3474de6a44f1 (patch) | |
tree | c0088cd2390879cb41cf44e8576248a3a7c71f15 /meson.build | |
parent | 863f2c7bb10b8c701bb05d8f1dcd34edd5de9034 (diff) | |
download | gst-libav-56941cc92011c77a2933b349605f3474de6a44f1.tar.gz |
meson: Ignore spurious issues when building with msvc
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/meson.build b/meson.build index c77cdcf..fdf9348 100644 --- a/meson.build +++ b/meson.build @@ -57,7 +57,22 @@ libm = cc.find_library('m', required : false) configure_file(output : 'config.h', configuration : cdata) -gst_libav_args = ['-DHAVE_CONFIG_H', '-Wno-deprecated-declarations'] +gst_libav_args = ['-DHAVE_CONFIG_H'] +if cc.get_id() != 'msvc' + gst_libav_args += ['-Wno-deprecated-declarations'] +else + # Ignore several spurious warnings for things gstreamer does very commonly + # 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 + 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 + configinc = include_directories('.') plugins_install_dir = '@0@/gstreamer-1.0'.format(get_option('libdir')) subdir('ext/libav/') |