summaryrefslogtreecommitdiff
blob: 70116ff66d2b67898e1889fef70bf0b9a920d6c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
--- a/main.c
+++ b/main.c
@@ -293,7 +293,6 @@
 static void
 set_docking_ewmh_info(Display *dpy, Window w, int dock) {
 	unsigned long strut[12] = { 0 };
-	unsigned long strut_s[4] = { 0 };
 	XWindowAttributes wa;
 	Atom type;
 	unsigned int desktop;
@@ -339,8 +338,6 @@
 		strut[2] = si.y + wa.height;
 		strut[8] = wa.x;
 		strut[9] = wa.x + wa.width - 1;
-
-		strut_s[2] = strut[2];
 	}
 	else if((wa.y - si.y + wa.height) == si.height) {
 #ifdef DZEN_XINERAMA
@@ -358,8 +355,6 @@
 #endif
 		strut[10] = wa.x;
 		strut[11] = wa.x + wa.width - 1;
-
-		strut_s[3] = strut[3];
 	}
 
 	if(strut[2] != 0 || strut[3] != 0) {
@@ -832,11 +827,9 @@
 		XFreeStringList(missing);
 
 	if(dzen.fnpl[p].set) {
-		XFontSetExtents *font_extents;
 		XFontStruct **xfonts;
 		char **font_names;
 		dzen.fnpl[p].ascent = dzen.fnpl[p].descent = 0;
-		font_extents = XExtentsOfFontSet(dzen.fnpl[p].set);
 		n = XFontsOfFontSet(dzen.fnpl[p].set, &xfonts, &font_names);
 		for(i = 0, dzen.fnpl[p].ascent = 0, dzen.fnpl[p].descent = 0; i < n; i++) {
 			if(dzen.fnpl[p].ascent < (*xfonts)->ascent)
--- a/gadgets/textwidth.c
+++ b/gadgets/textwidth.c
@@ -62,11 +62,9 @@
 	if(missing)
 		XFreeStringList(missing);
 	if(font.set) {
-		XFontSetExtents *font_extents;
 		XFontStruct **xfonts;
 		char **font_names;
 		font.ascent = font.descent = 0;
-		font_extents = XExtentsOfFontSet(font.set);
 		n = XFontsOfFontSet(font.set, &xfonts, &font_names);
 		for(i = 0, font.ascent = 0, font.descent = 0; i < n; i++) {
 			if(font.ascent < (*xfonts)->ascent)
--- a/gadgets/gcpubar.c
+++ b/gadgets/gcpubar.c
@@ -40,7 +40,6 @@
 
 int main(int argc, char *argv[]) {
 	int i, t;
-	double total;
 	struct cpu_info mcpu;
 	FILE *statfp;
 	char buf[256], *ep;
@@ -149,7 +148,6 @@
 		while(fgets(buf, sizeof buf, statfp)) {
 			if(!strncmp(buf, "cpu ", 4)) {
 				unsigned long long unice;
-				double myload;
 				/* linux >= 2.6 */
 				if((sscanf(buf, "cpu %llu %llu %llu %llu %llu", 
 								&ncpu.user, &unice, &ncpu.sys, &ncpu.idle, &ncpu.iowait)) < 5) {