diff options
author | Seung-Woo Kim <sw0312.kim@samsung.com> | 2017-03-30 11:16:33 +0900 |
---|---|---|
committer | Seung-Woo Kim <sw0312.kim@samsung.com> | 2017-03-31 12:50:02 +0900 |
commit | 27978ecb0a207b449ff78c2a990cb0011947ea5d (patch) | |
tree | bef099773c87cf929efe667559478da1f9dc4c02 | |
parent | b0eafd09235de70637df13a4376ccdcec932895e (diff) | |
download | libdrm-27978ecb0a207b449ff78c2a990cb0011947ea5d.tar.gz libdrm-27978ecb0a207b449ff78c2a990cb0011947ea5d.tar.bz2 libdrm-27978ecb0a207b449ff78c2a990cb0011947ea5d.zip |
exynos: fix type-punned pointer build warning
As like the commit ecc2a097294d ("xf86drm: Fix type-punned pointer
build warning"), this fixes following build warning.
exynos_drm.c: In function 'exynos_handle_event':
exynos_drm.c:420:15: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
e = (struct drm_event *) &buffer[i];
^
Change-Id: I83c7816d946b2d9234b7c5a01a415912418dde2c
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
-rw-r--r-- | exynos/exynos_drm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/exynos/exynos_drm.c b/exynos/exynos_drm.c index 2ca4f0af..b1786f32 100644 --- a/exynos/exynos_drm.c +++ b/exynos/exynos_drm.c @@ -417,7 +417,7 @@ exynos_handle_event(struct exynos_device *dev, struct exynos_event_context *ctx) i = 0; while (i < len) { - e = (struct drm_event *) &buffer[i]; + e = (struct drm_event *)(buffer + i); switch (e->type) { case DRM_EVENT_VBLANK: if (evctx->version < 1 || |