summaryrefslogtreecommitdiff
path: root/va/va_trace.c
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2017-08-09 12:47:30 +0200
committerXiang, Haihao <haihao.xiang@intel.com>2017-08-10 12:48:32 +0800
commit62fa3a1d9925b3a9531a4368ca6eddc136e1336c (patch)
tree1f9be15246e0f463458afe99fc1de3af191d1dfc /va/va_trace.c
parentb65a3d9deacb72bd9f96d3e023d4f8ed58bd8d0a (diff)
downloadlibva-62fa3a1d9925b3a9531a4368ca6eddc136e1336c.tar.gz
va_trace: remove unused variables
Remove unused variables detected by clang-3.8 Fixes #89 Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
Diffstat (limited to 'va/va_trace.c')
-rwxr-xr-xva/va_trace.c7
1 files 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");