xserver-multidpi/hw
Alan Coopersmith 57e08fae82 dmx: attempt to untangle nested loops using same index variable
This doesn't just make gcc sad, it makes my brain sad.

Change from:
    for (i = 0; i < dmxNumScreens; i++) {
        int i;
        for (i = 0; i < nconfigs; i++) {
            for (j = 0; j < dmxScreen->beNumVisuals; j++) {

to the easier to follow:
    for (i = 0; i < dmxNumScreens; i++) {
        for (j = 0; j < nconfigs; j++) {
            for (k = 0; k < dmxScreen->beNumVisuals; k++) {

Gets rid of gcc 4.8 warning:

dmxinit.c: In function ‘InitOutput’:
dmxinit.c:765:17: warning: declaration of ‘i’ shadows a previous local [-Wshadow]
             int i;
                 ^
dmxinit.c:608:9: warning: shadowed declaration is here [-Wshadow]
     int i;
         ^

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Rémi Cardona <remi@gentoo.org>
Reviewed-by: Keith Packard <keithp@keithp.com>
2015-02-10 18:14:44 -08:00
..
dmx dmx: attempt to untangle nested loops using same index variable 2015-02-10 18:14:44 -08:00
kdrive Synchronize capslock in Xnest and Xephyr 2015-01-07 09:22:12 +10:00
vfb vfb: Don't reimplement micmap so much 2014-10-08 10:10:39 +02:00
xfree86 dri2: Set vdpau driver name if ddx does not provide any driver name 2015-01-26 10:42:26 -08:00
xnest Synchronize capslock in Xnest and Xephyr 2015-01-07 09:22:12 +10:00
xquartz Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
xwayland Avoid possible null pointer dereference. 2015-01-23 10:03:57 -08:00
xwin Merge remote-tracking branch 'jturney/master' 2014-12-08 18:04:08 -08:00
Makefile.am Xwayland DDX 2014-04-03 15:19:22 -07:00