mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 09:13:17 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
40 lines
1.0 KiB
Diff
40 lines
1.0 KiB
Diff
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;
|
|
}
|
|
|