vcpkg/ports/gstreamer/gstreamer-disable-no-unused.patch
2024-09-16 12:26:09 -07:00

14 lines
511 B
Diff

diff --git a/subprojects/gstreamer/meson.build b/subprojects/gstreamer/meson.build
index 3b2cbba..18dd8d0 100644
--- a/subprojects/gstreamer/meson.build
+++ b/subprojects/gstreamer/meson.build
@@ -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')
if cc.get_argument_syntax() == 'msvc'
msvc_args = cc.get_supported_arguments([
'/wd4101', # 'identifier' : unreferenced local variable