xserver-multidpi/hw
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
..
dmx dmx: force -fno-strict-aliasing for xinput example 2011-12-19 22:27:17 -08:00
kdrive Remove duplicate declarations of KdAdd*Driver in kdrive.h 2011-12-12 17:03:12 -08:00
vfb Move to autoconf standard function name checks & defines 2011-12-05 14:32:45 -08:00
xfree86 xserver: check for elevated privileges not uid=0 2011-12-16 15:38:13 -08:00
xnest Fix builds of Xnest & Xephyr with Solaris Studio compilers 2011-12-05 14:33:00 -08:00
xquartz Convert strncpy/strncat to strlcpy/strlcat 2011-11-23 12:15:05 -08:00
xwin Move to autoconf standard function name checks & defines 2011-12-05 14:32:45 -08:00
Makefile.am Catch errors in recursive relink targets 2010-03-22 00:45:57 -05:00