From 62fa3a1d9925b3a9531a4368ca6eddc136e1336c Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Wed, 9 Aug 2017 12:47:30 +0200 Subject: [PATCH] va_trace: remove unused variables MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Remove unused variables detected by clang-3.8 Fixes #89 Signed-off-by: Víctor Manuel Jáquez Leal --- va/va_trace.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/va/va_trace.c b/va/va_trace.c index 59b9e12..9162929 100755 --- a/va/va_trace.c +++ b/va/va_trace.c @@ -340,7 +340,7 @@ static VAContextID get_ctx_by_buf( struct trace_buf_manager *pbuf_mgr = &pva_trace->buf_manager; struct trace_buf_info *pbuf_info = pbuf_mgr->pbuf_info[0]; VAContextID context = VA_INVALID_ID; - int i = 0, idx = 0, valid = 0; + int i = 0, idx = 0; LOCK_RESOURCE(pva_trace); @@ -734,8 +734,6 @@ static void refresh_log_file( void va_TraceInit(VADisplay dpy) { char env_value[1024]; - unsigned short suffix = 0xffff & ((unsigned int)time(NULL)); - FILE *tmp; struct va_trace *pva_trace = calloc(sizeof(struct va_trace), 1); struct trace_context *trace_ctx = calloc(sizeof(struct trace_context), 1); @@ -823,7 +821,7 @@ void va_TraceInit(VADisplay dpy) void va_TraceEnd(VADisplay dpy) { struct va_trace *pva_trace = NULL; - int i = 0, j = 0; + int i = 0; pva_trace = (struct va_trace *)(((VADisplayContextP)dpy)->vatrace); if(!pva_trace) @@ -3563,7 +3561,6 @@ static void va_TraceVAEncSequenceParameterBufferVP9( { VAEncSequenceParameterBufferVP9 *p = (VAEncSequenceParameterBufferVP9 *)data; DPY2TRACECTX(dpy, context, VA_INVALID_ID); - int i; va_TraceMsg(trace_ctx, "\t--VAEncSequenceParameterBufferVP9\n"); -- 2.11.0