aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--conditions.c2
-rw-r--r--fileset.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/conditions.c b/conditions.c
index 8b8dbd9197..7a1e9ee63a 100644
--- a/conditions.c
+++ b/conditions.c
@@ -143,7 +143,7 @@ gboolean cnd_register_class(const char* class_id,
/* check if hash table is already initialized */
_cnd_init();
/* check for unique class id */
- if((cls = (_cnd_class*)g_hash_table_lookup(classes, class_id)) != NULL) {
+ if(g_hash_table_lookup(classes, class_id) != NULL) {
g_warning("cnd_register_class: Duplicate class ID \"%s\"", class_id);
return FALSE;
}
diff --git a/fileset.c b/fileset.c
index 55e227627a..b7cb105bb0 100644
--- a/fileset.c
+++ b/fileset.c
@@ -246,7 +246,6 @@ fileset_add_dir(const char *fname)
WS_DIR *dir; /* scanned directory */
WS_DIRENT *file; /* current file */
const char *name;
- fileset_entry *entry;
GString *dirname;
gchar *fname_dup;
@@ -275,7 +274,7 @@ fileset_add_dir(const char *fname)
} /* if */
} else {
/* no, this is a "standalone file", just add this one */
- entry = fileset_add_file(dirname->str, get_basename(fname), TRUE /* current */);
+ fileset_add_file(dirname->str, get_basename(fname), TRUE /* current */);
/* don't add the file to the dialog here, this will be done in fileset_update_dlg() below */
}