• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

hardware/intel/common/libva


Commit MetaInfo

修订版62fa3a1d9925b3a9531a4368ca6eddc136e1336c (tree)
时间2017-08-10 13:48:32
作者Víctor Manuel Jáquez Leal <vjaquez@igal...>
CommiterXiang, Haihao

Log Message

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>

更改概述

差异

--- a/va/va_trace.c
+++ b/va/va_trace.c
@@ -340,7 +340,7 @@ static VAContextID get_ctx_by_buf(
340340 struct trace_buf_manager *pbuf_mgr = &pva_trace->buf_manager;
341341 struct trace_buf_info *pbuf_info = pbuf_mgr->pbuf_info[0];
342342 VAContextID context = VA_INVALID_ID;
343- int i = 0, idx = 0, valid = 0;
343+ int i = 0, idx = 0;
344344
345345 LOCK_RESOURCE(pva_trace);
346346
@@ -734,8 +734,6 @@ static void refresh_log_file(
734734 void va_TraceInit(VADisplay dpy)
735735 {
736736 char env_value[1024];
737- unsigned short suffix = 0xffff & ((unsigned int)time(NULL));
738- FILE *tmp;
739737 struct va_trace *pva_trace = calloc(sizeof(struct va_trace), 1);
740738 struct trace_context *trace_ctx = calloc(sizeof(struct trace_context), 1);
741739
@@ -823,7 +821,7 @@ void va_TraceInit(VADisplay dpy)
823821 void va_TraceEnd(VADisplay dpy)
824822 {
825823 struct va_trace *pva_trace = NULL;
826- int i = 0, j = 0;
824+ int i = 0;
827825
828826 pva_trace = (struct va_trace *)(((VADisplayContextP)dpy)->vatrace);
829827 if(!pva_trace)
@@ -3563,7 +3561,6 @@ static void va_TraceVAEncSequenceParameterBufferVP9(
35633561 {
35643562 VAEncSequenceParameterBufferVP9 *p = (VAEncSequenceParameterBufferVP9 *)data;
35653563 DPY2TRACECTX(dpy, context, VA_INVALID_ID);
3566- int i;
35673564
35683565 va_TraceMsg(trace_ctx, "\t--VAEncSequenceParameterBufferVP9\n");
35693566