vcpkg/ports/gstreamer/gstreamer-disable-no-unused.patch

14 lines
511 B
Diff
Raw Normal View History

diff --git a/subprojects/gstreamer/meson.build b/subprojects/gstreamer/meson.build
2024-09-16 19:26:09 +00:00
index 3b2cbba..18dd8d0 100644
--- a/subprojects/gstreamer/meson.build
+++ b/subprojects/gstreamer/meson.build
2024-09-16 19:26:09 +00:00
@@ -493,7 +493,7 @@ if cc.has_header('execinfo.h')
endif
gst_debug = get_option('gst_debug')
-if not gst_debug
+if not gst_debug and cc.has_argument('-Wno-unused')
2024-09-16 19:26:09 +00:00
if cc.get_argument_syntax() == 'msvc'
msvc_args = cc.get_supported_arguments([
'/wd4101', # 'identifier' : unreferenced local variable