summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHoegeun Kwon <hoegeun.kwon@samsung.com>2017-04-18 10:34:38 +0900
committerHoegeun Kwon <hoegeun.kwon@samsung.com>2017-08-07 14:23:44 +0900
commit731f62172c466e93c24825fcf955261a4211987e (patch)
tree49902fd222db83b6f012ced8159eb7d4edf801f0
parentc658fdee7cfd82135efe982996df687e9d57a574 (diff)
downloadlibdrm-731f62172c466e93c24825fcf955261a4211987e.tar.gz
libdrm-731f62172c466e93c24825fcf955261a4211987e.tar.bz2
libdrm-731f62172c466e93c24825fcf955261a4211987e.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 4b22a19d..bf06b3c1 100644
--- a/tests/ipptest/util.c
+++ b/tests/ipptest/util.c
@@ -182,7 +182,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;
@@ -226,8 +225,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:
@@ -240,9 +237,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:
@@ -256,10 +250,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:
@@ -301,8 +291,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;
}