Files
xserver_xsdl/hw/dmx
Peter Hutterer 3aca819940 dmx: force -fno-strict-aliasing for xinput example
Compiler warning:
xinput.c:272: warning: dereferencing pointer 'e' does break strict-aliasing
rules

The code itself is the usual XInput client-side code:
        XEvent event;
        XDeviceMotionEvent *e = (XDeviceMotionEvent *)&event;
        XNextEvent(display, &event);
        printf("%d\n", e->type);

Since XDeviceMotionEvent is not guaranteed the same size as XEvent, clients
must use pointer aliasing as above when using the XNextEvent API. Disable
strict aliasing for this example.

Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Signed-off-by: Keith Packard <keithp@keithp.com>
2011-12-19 22:27:17 -08:00
..
2011-09-19 15:16:04 -07:00
2008-09-19 12:02:28 -04:00
2007-06-29 14:06:52 -04:00
2011-09-19 15:16:04 -07:00
2007-06-29 14:06:52 -04:00
2007-06-29 14:06:52 -04:00
2011-01-20 21:03:26 -05:00
2007-06-29 14:06:52 -04:00
2007-06-29 14:06:52 -04:00
2011-09-19 15:16:04 -07:00
2007-06-29 14:06:52 -04:00
2007-06-29 14:06:52 -04:00
2007-06-29 14:06:52 -04:00
2007-06-29 14:06:52 -04:00
2007-06-29 14:06:52 -04:00
2007-06-29 14:06:52 -04:00