[hackers] [dmenu] removed compiler warning if XINERAMA is disabled

From: Anselm R Garbe <garbeam_AT_gmail.com>
Date: Thu, 17 Jul 2008 16:41:41 +0000 (UTC)

changeset: 269:cdfd63d89c09
tag: tip
user: Anselm R Garbe <garbeam_AT_gmail.com>
date: Thu Jul 17 17:40:42 2008 +0100
files: dmenu.c
description:
removed compiler warning if XINERAMA is disabled

diff -r 99dd0b9fab6b -r cdfd63d89c09 dmenu.c
--- a/dmenu.c Wed Jul 16 18:38:53 2008 +0100
+++ b/dmenu.c Thu Jul 17 17:40:42 2008 +0100
@@ -586,7 +586,7 @@
 
 void
 setup(Bool topbar) {
- int i, j, n, x, y;
+ int i, j, x, y;
         XModifierKeymap *modmap;
         XSetWindowAttributes wa;
 #if XINERAMA
@@ -619,6 +619,7 @@
         mh = dc.font.height + 2;
 #if XINERAMA
         if(XineramaIsActive(dpy)) {
+ int n;
                 i = 0;
                 info = XineramaQueryScreens(dpy, &n);
                 if(n > 1) {
Received on Thu Jul 17 2008 - 16:41:41 UTC

This archive was generated by hypermail 2.2.0 : Thu Jul 17 2008 - 16:48:03 UTC