[Bug 99350] libdrm-2.4.74/xf86drmMode.c:904:15: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Jan 18 07:56:31 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=99350

Thierry Reding <thierry.reding at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Thierry Reding <thierry.reding at gmail.com> ---
This should be fixed by the following commit that I just pushed to master:

commit ecc2a097294dcc773dbe5e2a989f180bedb89b69
Author: Thierry Reding <treding at nvidia.com>
Date:   Mon Apr 13 11:36:59 2015 +0200

    xf86drm: Fix type-punned pointer build warning

          CC       libdrm_la-xf86drmMode.lo
        ../xf86drmMode.c: In function 'drmHandleEvent':
        ../xf86drmMode.c:854:15: warning: dereferencing type-punned pointer
will break strict-aliasing rules [-Wstrict-aliasing]
           e = (struct drm_event *)(&buffer[i]);
                       ^

    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99350
    Reviewed-by: Emil Velikov <emil.velikov at collabora.com>
    Signed-off-by: Thierry Reding <treding at nvidia.com>

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20170118/fd68a195/attachment.html>


More information about the dri-devel mailing list