Skip to contentSkip to conversation

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

Bug 99350 [email protected] 1 participant 2 messages Jan 10, 2017 – Jan 18, 2017

lore
Share & tools
lore
#0 lore raw

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

Bug ID: 99350
Summary: libdrm-2.4.74/xf86drmMode.c:904:15: warning:
dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
Product: DRI
Version: XOrg git
Hardware: Other
URL: https://bugs.gentoo.org/show_bug.cgi?id=605290
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: libdrm
Assignee: [email protected]
Reporter: [email protected]

not much to say other than it fails to work on some stricter QA checks

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

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

Thierry Reding <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Thierry Reding <[email protected]> --- This should be fixed by the following commit that I just pushed to master:

commit ecc2a097294dcc773dbe5e2a989f180bedb89b69

Author: Thierry Reding <[email protected]>
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 <[email protected]>
    Signed-off-by: Thierry Reding <[email protected]>
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel