summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHoegeun Kwon <hoegeun.kwon@samsung.com>2017-04-18 10:34:38 +0900
committerSeung-Woo Kim <sw0312.kim@samsung.com>2019-04-25 17:58:34 +0900
commit8b30201f1328817e38f65dfbfaf54fa2e93e8c23 (patch)
tree9e525ecc916a85e056291282400a54de9055a649
parent31db2be36700b82b2872c3dab4b27482c5388f9b (diff)
downloadlibdrm-8b30201f1328817e38f65dfbfaf54fa2e93e8c23.tar.gz
libdrm-8b30201f1328817e38f65dfbfaf54fa2e93e8c23.tar.bz2
libdrm-8b30201f1328817e38f65dfbfaf54fa2e93e8c23.zip
ipptest: Fix unused-but-set-variable build warning
util.c:185:8: warning: variable 'planes' set but not used [-Wunused-but-set-variable] void *planes[3] = { 0, }; Change-Id: Ia05c1b6fffa14fa53358b69fa083e7202514f1d0 Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
-rw-r--r--tests/ipptest/util.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/tests/ipptest/util.c b/tests/ipptest/util.c
index fd843d20..0b7a697d 100644
--- a/tests/ipptest/util.c
+++ b/tests/ipptest/util.c
@@ -178,7 +178,6 @@ struct kms_bo *util_kms_gem_create_mmap(struct kms_driver *kms,
unsigned int pitches[4], unsigned int offsets[4])
{
unsigned int virtual_height;
- void *planes[3] = { 0, };
void *virtual;
struct kms_bo *bo;
int ret;
@@ -222,8 +221,6 @@ struct kms_bo *util_kms_gem_create_mmap(struct kms_driver *kms,
offsets[0] = 0;
kms_bo_get_prop(bo, KMS_HANDLE, &handles[0]);
kms_bo_get_prop(bo, KMS_PITCH, &pitches[0]);
-
- planes[0] = virtual;
break;
case DRM_FORMAT_NV12:
@@ -236,9 +233,6 @@ struct kms_bo *util_kms_gem_create_mmap(struct kms_driver *kms,
pitches[1] = pitches[0];
offsets[1] = pitches[0] * height;
kms_bo_get_prop(bo, KMS_HANDLE, &handles[1]);
-
- planes[0] = virtual;
- planes[1] = virtual + offsets[1];
break;
case DRM_FORMAT_YUV420:
@@ -252,10 +246,6 @@ struct kms_bo *util_kms_gem_create_mmap(struct kms_driver *kms,
pitches[2] = pitches[1];
offsets[2] = offsets[1] + pitches[1] * height / 2;
kms_bo_get_prop(bo, KMS_HANDLE, &handles[2]);
-
- planes[0] = virtual;
- planes[1] = virtual + offsets[1];
- planes[2] = virtual + offsets[2];
break;
case DRM_FORMAT_ARGB4444:
@@ -297,8 +287,6 @@ struct kms_bo *util_kms_gem_create_mmap(struct kms_driver *kms,
offsets[0] = 0;
kms_bo_get_prop(bo, KMS_HANDLE, &handles[0]);
kms_bo_get_prop(bo, KMS_PITCH, &pitches[0]);
-
- planes[0] = virtual;
break;
}