mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 05:28:48 +00:00
meson: Enable some msvc warnings
Enable following warnings - unused variable - unhandled enum value in switch/case Those warnings might cause build error on CI pipeline, but not enabled by default. For development environment, let's enable them to save CI (and developer's time) resource. Fixes: https://gitlab.freedesktop.org/gstreamer/gst-build/issues/31
This commit is contained in:
parent
1ee4c316c1
commit
df0808f493
1 changed files with 8 additions and 0 deletions
|
@ -43,6 +43,14 @@ if not meson.is_subproject() and cc.get_id() == 'msvc'
|
||||||
endif
|
endif
|
||||||
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
|
||||||
|
language: 'c')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Ordered list of subprojects (dict has no ordering guarantees)
|
# Ordered list of subprojects (dict has no ordering guarantees)
|
||||||
|
|
Loading…
Reference in a new issue