diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2020-11-04 16:00:14 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2020-11-04 18:41:36 +0530 |
commit | 81c3c9175b6d0b43204e51aab615bb56e0a29ece (patch) | |
tree | 5ed1ee8ce6fa734b80ab0264d49644ccb5b4cbc3 | |
parent | eba05e57a6485268ae8941d18e4f2eef1de5ebf8 (diff) |
meson: Do not add MSVC warnings flags globally
These get added to *all* subprojects, including ones we do not
maintain such as ffmpeg which then emits thousands of warnings that
completely overwhelm the compile output.
We will add these in each gstreamer subproject separately.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-build/-/merge_requests/223>
-rw-r--r-- | meson.build | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/meson.build b/meson.build index ec582e2..c6e6b2a 100644 --- a/meson.build +++ b/meson.build @@ -57,13 +57,11 @@ if not meson.is_subproject() and cc.get_id() == 'msvc' endif endif endif +endif - # Change some warning which belong to level 3 (production quality) or - # 4 (informational) to level 1 (severe) - add_global_arguments ( - '/w14062', # enumerator 'identifier' in switch of enum 'enumeration' is not handled - '/w14101', # 'identifier' : unreferenced local variable - '/w14189', # 'identifier' : local variable is initialized but not referenced +# Ensure that MSVC interprets all source code as UTF-8 +if cc.get_id() == 'msvc' + add_global_arguments( cc.get_supported_arguments(['/utf-8']), # set the input encoding to utf-8 language: ['c', 'cpp']) endif |