hardware/intel/common/libva
修订版 | 62fa3a1d9925b3a9531a4368ca6eddc136e1336c (tree) |
---|---|
时间 | 2017-08-10 13:48:32 |
作者 | Víctor Manuel Jáquez Leal <vjaquez@igal...> |
Commiter | Xiang, Haihao |
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>
@@ -340,7 +340,7 @@ static VAContextID get_ctx_by_buf( | ||
340 | 340 | struct trace_buf_manager *pbuf_mgr = &pva_trace->buf_manager; |
341 | 341 | struct trace_buf_info *pbuf_info = pbuf_mgr->pbuf_info[0]; |
342 | 342 | VAContextID context = VA_INVALID_ID; |
343 | - int i = 0, idx = 0, valid = 0; | |
343 | + int i = 0, idx = 0; | |
344 | 344 | |
345 | 345 | LOCK_RESOURCE(pva_trace); |
346 | 346 |
@@ -734,8 +734,6 @@ static void refresh_log_file( | ||
734 | 734 | void va_TraceInit(VADisplay dpy) |
735 | 735 | { |
736 | 736 | char env_value[1024]; |
737 | - unsigned short suffix = 0xffff & ((unsigned int)time(NULL)); | |
738 | - FILE *tmp; | |
739 | 737 | struct va_trace *pva_trace = calloc(sizeof(struct va_trace), 1); |
740 | 738 | struct trace_context *trace_ctx = calloc(sizeof(struct trace_context), 1); |
741 | 739 |
@@ -823,7 +821,7 @@ void va_TraceInit(VADisplay dpy) | ||
823 | 821 | void va_TraceEnd(VADisplay dpy) |
824 | 822 | { |
825 | 823 | struct va_trace *pva_trace = NULL; |
826 | - int i = 0, j = 0; | |
824 | + int i = 0; | |
827 | 825 | |
828 | 826 | pva_trace = (struct va_trace *)(((VADisplayContextP)dpy)->vatrace); |
829 | 827 | if(!pva_trace) |
@@ -3563,7 +3561,6 @@ static void va_TraceVAEncSequenceParameterBufferVP9( | ||
3563 | 3561 | { |
3564 | 3562 | VAEncSequenceParameterBufferVP9 *p = (VAEncSequenceParameterBufferVP9 *)data; |
3565 | 3563 | DPY2TRACECTX(dpy, context, VA_INVALID_ID); |
3566 | - int i; | |
3567 | 3564 | |
3568 | 3565 | va_TraceMsg(trace_ctx, "\t--VAEncSequenceParameterBufferVP9\n"); |
3569 | 3566 |