diff options
author | Charles Strahan <charles.c.strahan@gmail.com> | 2015-07-03 22:54:03 -0400 |
---|---|---|
committer | Charles Strahan <charles.c.strahan@gmail.com> | 2015-07-03 22:55:10 -0400 |
commit | 44594e851cc64e0e85c7d1d04042c00ba583d342 (patch) | |
tree | 22ad2c3e2808015753b9cba7f2f132b1eaef2af7 /pkgs/os-specific/linux/xsensors/remove-unused-variables.patch | |
parent | 4726690a7454de8cc956df0cfef3b779ede5bdb9 (diff) | |
download | nixpkgs-44594e851cc64e0e85c7d1d04042c00ba583d342.tar nixpkgs-44594e851cc64e0e85c7d1d04042c00ba583d342.tar.gz nixpkgs-44594e851cc64e0e85c7d1d04042c00ba583d342.tar.bz2 nixpkgs-44594e851cc64e0e85c7d1d04042c00ba583d342.tar.lz nixpkgs-44594e851cc64e0e85c7d1d04042c00ba583d342.tar.xz nixpkgs-44594e851cc64e0e85c7d1d04042c00ba583d342.tar.zst nixpkgs-44594e851cc64e0e85c7d1d04042c00ba583d342.zip |
xsensors: init at 0.70
Diffstat (limited to 'pkgs/os-specific/linux/xsensors/remove-unused-variables.patch')
-rw-r--r-- | pkgs/os-specific/linux/xsensors/remove-unused-variables.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/xsensors/remove-unused-variables.patch b/pkgs/os-specific/linux/xsensors/remove-unused-variables.patch new file mode 100644 index 00000000000..7da97a0e56e --- /dev/null +++ b/pkgs/os-specific/linux/xsensors/remove-unused-variables.patch @@ -0,0 +1,39 @@ +Author: Nanley Chery <nanleychery@gmail.com> +From: Jean Delvare <khali@linux-fr.org> +Subject: Remove declared, but unused variables +Bug-Debian: http://bugs.debian.org/625435 +--- +--- a/src/gui.c ++++ b/src/gui.c +@@ -257,10 +257,9 @@ + + /* Start the sensor info update timer. */ + gint start_timer( GtkWidget *widget, gpointer data ) { +- gint timer; + + /* Setup timer for updates. */ +- timer = g_timeout_add( update_time * 1000, ++ g_timeout_add( update_time * 1000, + (GtkFunction) update_sensor_data, + (gpointer) data ); + +@@ -287,7 +286,7 @@ + + /* feature data */ + updates *head = NULL; +- updates *current = NULL, *prev = NULL; ++ updates *current = NULL; + + const sensors_feature *feature; + +@@ -347,10 +346,8 @@ + new_node->pbar = featpbar; + + if ( head == NULL ) { +- prev = head; + head = current = new_node; + } else { +- prev = current; + current = current->next = new_node; + } + |