aboutsummaryrefslogtreecommitdiffstats
path: root/exynos
diff options
context:
space:
mode:
authorSeung-Woo Kim2017-03-30 22:30:55 -0500
committerEmil Velikov2017-04-03 11:46:06 -0500
commitc9ef5c4a1c691ebcdfa4261b406b8b81f7b5a18f (patch)
tree77aecba8a854a72bd1b4ca9ddb3e0c5ced2314a1 /exynos
parentf5995751b0722bdd3789b1afb48b86d8f075b1e7 (diff)
downloadexternal-libgbm-c9ef5c4a1c691ebcdfa4261b406b8b81f7b5a18f.tar.gz
external-libgbm-c9ef5c4a1c691ebcdfa4261b406b8b81f7b5a18f.tar.xz
external-libgbm-c9ef5c4a1c691ebcdfa4261b406b8b81f7b5a18f.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]; ^ Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com> Reviewed-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Diffstat (limited to 'exynos')
-rw-r--r--exynos/exynos_drm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/exynos/exynos_drm.c b/exynos/exynos_drm.c
index b961e520..f6204f1c 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)
417 417
418 i = 0; 418 i = 0;
419 while (i < len) { 419 while (i < len) {
420 e = (struct drm_event *) &buffer[i]; 420 e = (struct drm_event *)(buffer + i);
421 switch (e->type) { 421 switch (e->type) {
422 case DRM_EVENT_VBLANK: 422 case DRM_EVENT_VBLANK:
423 if (evctx->version < 1 || 423 if (evctx->version < 1 ||