Instantiate j var outside #ifdef XINEMARA directive because it is used in loop outside directive
84a1bc5d
1 file(s) · +2 −3
| 541 | 541 | static void |
|
| 542 | 542 | setup(void) |
|
| 543 | 543 | { |
|
| 544 | - | int x, y, i = 0; |
|
| 544 | + | int x, y, i, j = 0; |
|
| 545 | 545 | unsigned int du; |
|
| 546 | 546 | XSetWindowAttributes swa; |
|
| 547 | 547 | XIM xim; |
|
| 551 | 551 | #ifdef XINERAMA |
|
| 552 | 552 | XineramaScreenInfo *info; |
|
| 553 | 553 | Window pw; |
|
| 554 | - | int a, j, di, n, area = 0; |
|
| 554 | + | int a, di, n, area = 0; |
|
| 555 | 555 | #endif |
|
| 556 | - | ||
| 557 | 556 | /* init appearance */ |
|
| 558 | 557 | for (j = 0; j < SchemeLast; j++) |
|
| 559 | 558 | scheme[j] = drw_scm_create(drw, colors[j], 2); |
|