tags 646488 +patch
thanks

patch is attatched.
diff -ur wmtemp-0.0.6/dockapp.c wmtemp-0.0.6.new/dockapp.c
--- wmtemp-0.0.6/dockapp.c	2004-03-08 15:57:32.000000000 +0000
+++ wmtemp-0.0.6.new/dockapp.c	2011-10-30 00:38:39.000000000 +0000
@@ -49,7 +49,6 @@
 {
     XClassHint	    *classhint;
     XWMHints	    *wmhints;
-    Status	    stat;
     XTextProperty   title;
     XSizeHints	    sizehints;
     Window	    root;
@@ -132,7 +131,7 @@
     XSetWMNormalHints(display, icon_window, &sizehints);
 
     /* Set WindowTitle for AfterStep Wharf */
-    stat = XStringListToTextProperty(&appname, 1, &title);
+    XStringListToTextProperty(&appname, 1, &title);
     XSetWMName(display, window, &title);
     XSetWMName(display, icon_window, &title);
 
diff -ur wmtemp-0.0.6/temp.c wmtemp-0.0.6.new/temp.c
--- wmtemp-0.0.6/temp.c	2011-10-30 00:41:16.000000000 +0000
+++ wmtemp-0.0.6.new/temp.c	2011-10-30 00:39:55.000000000 +0000
@@ -36,7 +36,6 @@
 	int chip_nr = 0, f1, f2;
 
 	char str[256];
-	int len;
 
 	char *feattext = NULL;
 	const sensors_subfeature *subfeature;
@@ -63,7 +62,7 @@
 		f1 = f2 = 0;
 		DEBUG(printf("chip_nr=%d %d\n",chip_nr,__LINE__);)
 
-		len = sensors_snprintf_chip_name(str, 256, name);
+		sensors_snprintf_chip_name(str, 256, name);
 		DEBUG(printf("chip name = %s (%d)\n",str,__LINE__);)
 
 		while ((feature = sensors_get_features( name, &f1)) != NULL) {

Reply via email to