hardware/intel/common/libva
リビジョン | f804f0ec3a9c06065ec194c0d888039a6083e6c1 (tree) |
---|---|
日時 | 2018-12-19 18:40:08 |
作者 | Badiuzzaman Iskhandar <badiuzzaman.azzarfan.bin.iskhandar@inte...> |
コミッター | XinfengZhang |
Fix compilation warning (uninit and wrong variable types) for Android O MR1
Signed-off-by: Badiuzzaman Iskhandar <badiuzzaman.azzarfan.bin.iskhandar@intel.com>
@@ -44,7 +44,7 @@ static const struct driver_name_map g_driver_name_map[] = { | ||
44 | 44 | { "nouveau", 7, "nouveau" }, // Mesa Gallium driver |
45 | 45 | { "radeon", 6, "r600" }, // Mesa Gallium driver |
46 | 46 | { "amdgpu", 6, "radeonsi" }, // Mesa Gallium driver |
47 | - { NULL, } | |
47 | + { NULL, 0, NULL } | |
48 | 48 | }; |
49 | 49 | |
50 | 50 | /* Returns the VA driver name for the active display */ |
@@ -406,7 +406,7 @@ static VAStatus va_openDriver(VADisplay dpy, char *driver_name) | ||
406 | 406 | { VA_MAJOR_VERSION, 2 }, |
407 | 407 | { VA_MAJOR_VERSION, 1 }, |
408 | 408 | { VA_MAJOR_VERSION, 0 }, |
409 | - { -1, } | |
409 | + { -1, -1} | |
410 | 410 | }; |
411 | 411 | |
412 | 412 | for (i = 0; compatible_versions[i].major >= 0; i++) { |
@@ -943,7 +943,7 @@ va_impl_query_surface_attributes( | ||
943 | 943 | { VASurfaceAttribMinHeight, VAGenericValueTypeInteger }, |
944 | 944 | { VASurfaceAttribMaxHeight, VAGenericValueTypeInteger }, |
945 | 945 | { VASurfaceAttribMemoryType, VAGenericValueTypeInteger }, |
946 | - { VASurfaceAttribNone, } | |
946 | + { VASurfaceAttribNone, VAGenericValueTypeInteger } | |
947 | 947 | }; |
948 | 948 | |
949 | 949 | if (!out_attribs || !out_num_attribs_ptr) |
@@ -265,7 +265,7 @@ VAStatus va_FoolBufferInfo( | ||
265 | 265 | static int va_FoolFillCodedBufEnc(VADisplay dpy, struct fool_context *fool_ctx) |
266 | 266 | { |
267 | 267 | char file_name[1024]; |
268 | - struct stat file_stat = {0}; | |
268 | + struct stat file_stat = {}; | |
269 | 269 | VACodedBufferSegment *codedbuf; |
270 | 270 | int i, fd = -1; |
271 | 271 | ssize_t ret; |
@@ -311,7 +311,7 @@ static int va_FoolFillCodedBufEnc(VADisplay dpy, struct fool_context *fool_ctx) | ||
311 | 311 | |
312 | 312 | static int va_FoolFillCodedBufJPG(VADisplay dpy, struct fool_context *fool_ctx) |
313 | 313 | { |
314 | - struct stat file_stat = {0}; | |
314 | + struct stat file_stat = {}; | |
315 | 315 | VACodedBufferSegment *codedbuf; |
316 | 316 | int fd = -1; |
317 | 317 | ssize_t ret; |
@@ -1134,7 +1134,7 @@ static void va_TraceSurfaceAttributes( | ||
1134 | 1134 | va_TraceMsg(trace_ctx, "\t\tvalue.value.p = %p\n", p->value.value.p); |
1135 | 1135 | if ((p->type == VASurfaceAttribExternalBufferDescriptor) && p->value.value.p) { |
1136 | 1136 | VASurfaceAttribExternalBuffers *tmp = (VASurfaceAttribExternalBuffers *) p->value.value.p; |
1137 | - int j; | |
1137 | + uint32_t j; | |
1138 | 1138 | |
1139 | 1139 | va_TraceMsg(trace_ctx, "\t\t--VASurfaceAttribExternalBufferDescriptor\n"); |
1140 | 1140 | va_TraceMsg(trace_ctx, "\t\t pixel_format=0x%08x\n", tmp->pixel_format); |
@@ -4629,7 +4629,7 @@ va_TraceProcFilterParameterBuffer( | ||
4629 | 4629 | unsigned int size; |
4630 | 4630 | unsigned int num_elements; |
4631 | 4631 | VAProcFilterParameterBufferBase *base_filter = NULL; |
4632 | - int i; | |
4632 | + unsigned int i; | |
4633 | 4633 | |
4634 | 4634 | DPY2TRACECTX(dpy, context, VA_INVALID_ID); |
4635 | 4635 |
@@ -4694,7 +4694,7 @@ va_TraceVAProcPipelineParameterBuffer( | ||
4694 | 4694 | ) |
4695 | 4695 | { |
4696 | 4696 | VAProcPipelineParameterBuffer *p = (VAProcPipelineParameterBuffer *)data; |
4697 | - int i; | |
4697 | + uint32_t i; | |
4698 | 4698 | |
4699 | 4699 | DPY2TRACECTX(dpy, context, VA_INVALID_ID); |
4700 | 4700 |