From 9539eecf209652111552bbbf944ddbdb0943db90 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Sun, 3 May 2020 09:59:45 +0000 Subject: [PATCH] nvcodec: fix compiler warning in certain setups MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes gstnvh264dec.c:648:12: warning: unused variable ‘ret’ compiler warning on raspbian where HAVE_NVCODEC_GST_GL is not defined. Part-of: --- sys/nvcodec/gstnvh264dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/nvcodec/gstnvh264dec.c b/sys/nvcodec/gstnvh264dec.c index 940bbef..9db36d9 100644 --- a/sys/nvcodec/gstnvh264dec.c +++ b/sys/nvcodec/gstnvh264dec.c @@ -645,7 +645,7 @@ gst_nv_h264_dec_output_picture (GstH264Decoder * decoder, GstVideoCodecFrame *frame = NULL; GstBuffer *output_buffer = NULL; GstNvDecoderFrame *decoder_frame; - gboolean ret = FALSE; + gboolean ret G_GNUC_UNUSED = FALSE; GST_LOG_OBJECT (self, "Outputting picture %p (poc %d)", picture, picture->pic_order_cnt); -- 2.7.4