Commit 0605c231 authored by Cosimo Cecchi's avatar Cosimo Cecchi
Browse files

all: fix some unused variables GCC warnings

parent bd6c0d53
...@@ -170,7 +170,7 @@ on_dialog_add_edit_reponse (GtkWidget *dialog, int response_id, ...@@ -170,7 +170,7 @@ on_dialog_add_edit_reponse (GtkWidget *dialog, int response_id,
LogviewFilterManager *manager) LogviewFilterManager *manager)
{ {
GtkWidget *entry_name, *entry_regex; GtkWidget *entry_name, *entry_regex;
GtkWidget *radio_color, *radio_visible; GtkWidget *radio_color;
GtkWidget *check_foreground, *check_background; GtkWidget *check_foreground, *check_background;
GtkWidget *color_foreground, *color_background; GtkWidget *color_foreground, *color_background;
gchar *old_name; gchar *old_name;
...@@ -189,8 +189,6 @@ on_dialog_add_edit_reponse (GtkWidget *dialog, int response_id, ...@@ -189,8 +189,6 @@ on_dialog_add_edit_reponse (GtkWidget *dialog, int response_id,
"entry_regex")); "entry_regex"));
radio_color = GTK_WIDGET (gtk_builder_get_object (builder, radio_color = GTK_WIDGET (gtk_builder_get_object (builder,
"radio_color")); "radio_color"));
radio_visible = GTK_WIDGET (gtk_builder_get_object (builder,
"radio_visible"));
check_foreground = GTK_WIDGET (gtk_builder_get_object (builder, check_foreground = GTK_WIDGET (gtk_builder_get_object (builder,
"check_foreground")); "check_foreground"));
check_background = GTK_WIDGET (gtk_builder_get_object (builder, check_background = GTK_WIDGET (gtk_builder_get_object (builder,
......
...@@ -377,7 +377,6 @@ static gboolean ...@@ -377,7 +377,6 @@ static gboolean
read_gzip_header (GInputStream *is, read_gzip_header (GInputStream *is,
time_t *modification_time) time_t *modification_time)
{ {
gboolean res;
guchar buffer[GZIP_HEADER_SIZE]; guchar buffer[GZIP_HEADER_SIZE];
gssize bytes, to_skip; gssize bytes, to_skip;
guint mode; guint mode;
...@@ -494,7 +493,6 @@ static gboolean ...@@ -494,7 +493,6 @@ static gboolean
fill_buffer (GZHandle *gz, fill_buffer (GZHandle *gz,
gsize num_bytes) gsize num_bytes)
{ {
gboolean res;
gsize count; gsize count;
z_stream * zstream = &gz->zstream; z_stream * zstream = &gz->zstream;
......
...@@ -431,7 +431,6 @@ logview_prefs_remove_stored_log (LogviewPrefs *prefs, GFile *target) ...@@ -431,7 +431,6 @@ logview_prefs_remove_stored_log (LogviewPrefs *prefs, GFile *target)
GFile *stored; GFile *stored;
GPtrArray *new_value; GPtrArray *new_value;
gint idx; gint idx;
gboolean removed = FALSE;
g_assert (LOGVIEW_IS_PREFS (prefs)); g_assert (LOGVIEW_IS_PREFS (prefs));
g_assert (G_IS_FILE (target)); g_assert (G_IS_FILE (target));
......
...@@ -656,7 +656,6 @@ update_filter_menu (LogviewWindow *window) ...@@ -656,7 +656,6 @@ update_filter_menu (LogviewWindow *window)
GList *actions, *l; GList *actions, *l;
guint id; guint id;
GList *filters; GList *filters;
GtkTextBuffer *buffer;
GtkTextTagTable *table; GtkTextTagTable *table;
GtkTextTag *tag; GtkTextTag *tag;
GtkToggleAction *action; GtkToggleAction *action;
...@@ -667,7 +666,6 @@ update_filter_menu (LogviewWindow *window) ...@@ -667,7 +666,6 @@ update_filter_menu (LogviewWindow *window)
g_return_if_fail (priv->filter_action_group != NULL); g_return_if_fail (priv->filter_action_group != NULL);
buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (priv->text_view));
table = priv->tag_table; table = priv->tag_table;
if (priv->filter_merge_id != 0) { if (priv->filter_merge_id != 0) {
......
...@@ -18,7 +18,6 @@ new_lines_cb (LogviewLog *log, ...@@ -18,7 +18,6 @@ new_lines_cb (LogviewLog *log,
gpointer user_data) gpointer user_data)
{ {
int i; int i;
guint8 day;
Day *day_s; Day *day_s;
GSList *days, *l; GSList *days, *l;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment