[FFmpeg-devel,1/3] lavu/qsv: remove unused variable

Submitted by Zhong Li on Nov. 20, 2017, 9:14 a.m.

Details

Message ID 1511169274-28005-1-git-send-email-zhong.li@intel.com
State New
Headers show

Commit Message

Zhong Li Nov. 20, 2017, 9:14 a.m.
suppres build warning of "variable 's' is declared but not used"

Signed-off-by: Zhong Li <zhong.li@intel.com>
---
 libavutil/hwcontext_qsv.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Mark Thompson Nov. 20, 2017, 4:09 p.m.
On 20/11/17 09:14, Zhong Li wrote:
> suppres build warning of "variable 's' is declared but not used"
> 
> Signed-off-by: Zhong Li <zhong.li@intel.com>
> ---
>  libavutil/hwcontext_qsv.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/libavutil/hwcontext_qsv.c b/libavutil/hwcontext_qsv.c
> index 8e43420..9b6040b 100644
> --- a/libavutil/hwcontext_qsv.c
> +++ b/libavutil/hwcontext_qsv.c
> @@ -989,7 +989,6 @@ static int qsv_device_derive_from_child(AVHWDeviceContext *ctx,
>                                          int flags)
>  {
>      AVQSVDeviceContext *hwctx = ctx->hwctx;
> -    QSVDeviceContext       *s = ctx->internal->priv;
>  
>      mfxVersion    ver = { { 3, 1 } };
>      mfxHDL        handle;
> 

Set applied.

Thanks,

- Mark
Zhong Li Nov. 21, 2017, 3:34 a.m.
> On 20/11/17 09:14, Zhong Li wrote:

> > suppres build warning of "variable 's' is declared but not used"

> >

> > Signed-off-by: Zhong Li <zhong.li@intel.com>

> > ---

> >  libavutil/hwcontext_qsv.c | 1 -

> >  1 file changed, 1 deletion(-)

> >

> > diff --git a/libavutil/hwcontext_qsv.c b/libavutil/hwcontext_qsv.c

> > index 8e43420..9b6040b 100644

> > --- a/libavutil/hwcontext_qsv.c

> > +++ b/libavutil/hwcontext_qsv.c

> > @@ -989,7 +989,6 @@ static int

> qsv_device_derive_from_child(AVHWDeviceContext *ctx,

> >                                          int flags)  {

> >      AVQSVDeviceContext *hwctx = ctx->hwctx;

> > -    QSVDeviceContext       *s = ctx->internal->priv;

> >

> >      mfxVersion    ver = { { 3, 1 } };

> >      mfxHDL        handle;

> >

> 

> Set applied.

> 

> Thanks,

> 

> - Mark


Got it, thanks very much.
Zhong

Patch hide | download patch | download mbox

diff --git a/libavutil/hwcontext_qsv.c b/libavutil/hwcontext_qsv.c
index 8e43420..9b6040b 100644
--- a/libavutil/hwcontext_qsv.c
+++ b/libavutil/hwcontext_qsv.c
@@ -989,7 +989,6 @@  static int qsv_device_derive_from_child(AVHWDeviceContext *ctx,
                                         int flags)
 {
     AVQSVDeviceContext *hwctx = ctx->hwctx;
-    QSVDeviceContext       *s = ctx->internal->priv;
 
     mfxVersion    ver = { { 3, 1 } };
     mfxHDL        handle;