xserver-multidpi/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
..
config Move to autoconf standard function name checks & defines 2011-12-05 14:32:45 -08:00
doc docs: spell "X Server Version" consistently in titles. Add where missing. 2011-11-21 10:34:23 -08:00
doxygen dmx: modernize doxygen generation. 2011-05-13 14:08:07 -07:00
examples dmx: force -fno-strict-aliasing for xinput example 2011-12-19 22:27:17 -08:00
glxProxy dmx: fix distcheck failure, missing compsize.h in Makefile.am 2011-12-15 14:17:16 -08:00
input Replace XmuSnprintf with snprintf. 2011-09-19 15:16:04 -07:00
man Add xkeyboard-config to See Also of man pages referencing xkb 2011-06-21 17:54:43 -07:00
.gitignore .gitignore: use common defaults with custom section #24239 2009-11-11 21:40:20 -08:00
dmx_glxvisuals.c Remove unnecessary parentheses around return values in functions 2010-06-10 06:42:42 -07:00
dmx_glxvisuals.h Update to SGI FreeB 2.0. 2008-09-19 12:02:28 -04:00
dmx-config.h dmx: remove doxygen-generated files. 2009-10-20 13:32:16 +10:00
dmx.c Use correct swap{l,s} (or none at all for CARD8) 2011-09-21 17:14:16 -04:00
dmx.h Remove TriStrip and TriFan from the picture screen 2011-03-14 14:09:07 -04:00
dmxcb.c panoramiX: convert 0->panoramiXNumScreens loops to macro (v3) 2011-03-10 11:01:09 +10:00
dmxcb.h Death to RCS tags. 2007-06-29 14:06:52 -04:00
dmxclient.h Replace XmuSnprintf with snprintf. 2011-09-19 15:16:04 -07:00
dmxcmap.c Remove unnecessary parentheses around return values in functions 2010-06-10 06:42:42 -07:00
dmxcmap.h Change the devPrivates API to require dixRegisterPrivateKey 2010-06-05 19:23:03 -07:00
dmxcursor.c Move each screen's x/y origin into ScreenRec. 2010-06-03 14:03:23 -07:00
dmxcursor.h Eliminate MAXSCREENS-sized CursorScreenKey array. 2011-09-19 22:53:05 -07:00
dmxdpms.c xace: restore the old SaveScreens function and introduce new API, since the 2007-11-19 16:59:34 -05:00
dmxdpms.h Death to RCS tags. 2007-06-29 14:06:52 -04:00
dmxextension.c XineramaInitData ignores its argument. Quit passing one. 2011-09-18 20:11:43 -05:00
dmxextension.h dmx: remove doxygen-generated files. 2009-10-20 13:32:16 +10:00
dmxfont.c Remove unnecessary parentheses around return values in functions 2010-06-10 06:42:42 -07:00
dmxfont.h Death to RCS tags. 2007-06-29 14:06:52 -04:00
dmxgc.c dmx: warning fix 2011-01-20 21:03:26 -05:00
dmxgc.h Change the devPrivates API to require dixRegisterPrivateKey 2010-06-05 19:23:03 -07:00
dmxgcops.c panoramiX: convert 1->panoramiXNumScreens loops to use macro (v2) 2011-03-10 11:01:51 +10:00
dmxgcops.h Death to RCS tags. 2007-06-29 14:06:52 -04:00
dmxinit.c Convert dmxSetDefaultFontPath to use strdup instead of malloc+strncpy 2011-11-23 12:15:05 -08:00
dmxinit.h Death to RCS tags. 2007-06-29 14:06:52 -04:00
dmxinput.c input: free the EQ allocated memory on shutdown (#38634) 2011-07-01 08:46:28 +10:00
dmxinput.h dmx: remove doxygen-generated files. 2009-10-20 13:32:16 +10:00
dmxlog.c Remove all traces of #ifdef XINPUT and the matching bits from the configure.ac 2008-04-25 16:49:35 +09:30
dmxlog.h Remove all traces of #ifdef XINPUT and the matching bits from the configure.ac 2008-04-25 16:49:35 +09:30
dmxpict.c Remove TriStrip and TriFan from the picture screen 2011-03-14 14:09:07 -04:00
dmxpict.h Remove TriStrip and TriFan from the picture screen 2011-03-14 14:09:07 -04:00
dmxpixmap.c Revert "dix: Remove usage_hint from pixmaps, store it in ->drawable.class" 2011-03-17 23:48:52 -07:00
dmxpixmap.h Revert "dix: Remove usage_hint from pixmaps, store it in ->drawable.class" 2011-03-17 23:48:52 -07:00
dmxprop.c Replace XmuSnprintf with snprintf. 2011-09-19 15:16:04 -07:00
dmxprop.h Death to RCS tags. 2007-06-29 14:06:52 -04:00
dmxscrinit.c dix: Remove the backing store leftovers 2010-11-30 13:46:08 -05:00
dmxscrinit.h Change the devPrivates API to require dixRegisterPrivateKey 2010-06-05 19:23:03 -07:00
dmxshadow.c Rename region macros to eliminate screen argument 2010-06-05 18:59:00 -07:00
dmxshadow.h Death to RCS tags. 2007-06-29 14:06:52 -04:00
dmxstat.c Remove more superfluous if(p) checks around free(p) 2010-06-06 20:27:18 +07:00
dmxstat.h Death to RCS tags. 2007-06-29 14:06:52 -04:00
dmxsync.c Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
dmxsync.h Death to RCS tags. 2007-06-29 14:06:52 -04:00
dmxvisual.c Death to RCS tags. 2007-06-29 14:06:52 -04:00
dmxvisual.h Death to RCS tags. 2007-06-29 14:06:52 -04:00
dmxwindow.c dmx: fix warning for doxygen explicit links 2011-05-13 14:08:09 -07:00
dmxwindow.h Change the devPrivates API to require dixRegisterPrivateKey 2010-06-05 19:23:03 -07:00
Makefile.am dmx: split DocBook/XML and Doxygen makefile targets 2011-05-13 14:08:05 -07:00