xserver-multidpi/hw
Jon TURNEY 784c006adb hw/xwin: Fix -Warray-bounds warning in winXCursorToHCURSOR()
Rewrite winXCursorToHCURSOR() so access to BITMAPINFO bmiColors member doesn't
trigger an -Warray-bounds warning.

Note that the underlying storage is allocated as a BITMAPV4HEADER, so has
sufficent room for the extra RGBQUADs bmiColors after the BITMAPINFO bmiHeader.

wincursor.c: In function 'winSetCursor':
wincursor.c:293:24: error: array subscript is above array bounds [-Werror=array-bounds]
wincursor.c:294:24: error: array subscript is above array bounds [-Werror=array-bounds]
wincursor.c:295:24: error: array subscript is above array bounds [-Werror=array-bounds]
wincursor.c:296:24: error: array subscript is above array bounds [-Werror=array-bounds]
wincursor.c:297:24: error: array subscript is above array bounds [-Werror=array-bounds]
wincursor.c:298:24: error: array subscript is above array bounds [-Werror=array-bounds]
wincursor.c:299:24: error: array subscript is above array bounds [-Werror=array-bounds]
wincursor.c:300:24: error: array subscript is above array bounds [-Werror=array-bounds]

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
Reviewed-by: Marc Haesen <marha@users.sourceforge.net>
2013-08-30 12:58:49 +01:00
..
dmx glxproxy: Use _XEatDataWords (from Xlib 1.6) instead of _XEatData 2013-07-17 18:10:41 -07:00
kdrive ephyr: Fix warning about XID vs unsigned long * by changing function args 2013-08-21 09:10:49 -07:00
vfb vfb: Initialize the GLX extension again. 2012-11-21 11:13:55 +11:00
xfree86 xfree86: de-duplicate some AM_CPPFLAGS 2013-08-06 13:14:56 +10:00
xnest Fix typo in header guard. 2013-07-17 18:11:41 -07:00
xquartz Move pseudoramiX code where it can be shared between Xwin and Xquartz 2013-08-30 12:52:30 +01:00
xwin hw/xwin: Fix -Warray-bounds warning in winXCursorToHCURSOR() 2013-08-30 12:58:49 +01:00
Makefile.am Catch errors in recursive relink targets 2010-03-22 00:45:57 -05:00