[gtk] quiet a compiler warning in release builds
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] quiet a compiler warning in release builds
- Date: Tue, 14 Jan 2020 23:32:51 +0000 (UTC)
commit dccb83c9ec9ae55dd5af2c52589710e4e8cb1379
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jan 13 12:42:29 2020 -0500
quiet a compiler warning in release builds
gtk/gtkicontheme.c | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c
index 4a79febdee..8a2231e6e1 100644
--- a/gtk/gtkicontheme.c
+++ b/gtk/gtkicontheme.c
@@ -3638,7 +3638,6 @@ gtk_icon_info_load_symbolic_svg (GtkIconInfo *icon_info,
gchar *width;
gchar *height;
char *escaped_file_data;
- gint symbolic_size;
double alpha;
gchar alphastr[G_ASCII_DTOSTR_BUF_SIZE];
@@ -3707,9 +3706,8 @@ gtk_icon_info_load_symbolic_svg (GtkIconInfo *icon_info,
g_object_unref (pixbuf);
}
- symbolic_size = MAX (icon_info->symbolic_width, icon_info->symbolic_height);
-
- GTK_NOTE (ICONTHEME,
+ GTK_NOTE (ICONTHEME, {
+ int symbolic_size = MAX (icon_info->symbolic_width, icon_info->symbolic_height);
if (icon_info->dir_type == ICON_THEME_DIR_UNTHEMED)
g_message ("Symbolic icon %s is not in an icon theme directory",
icon_info->key.icon_names ? icon_info->key.icon_names[0] : icon_info->filename);
@@ -3717,8 +3715,8 @@ gtk_icon_info_load_symbolic_svg (GtkIconInfo *icon_info,
g_message ("Symbolic icon %s of size %d is in an icon theme directory of size %d",
icon_info->key.icon_names ? icon_info->key.icon_names[0] : icon_info->filename,
symbolic_size,
- icon_info->dir_size * icon_info->dir_scale)
- );
+ icon_info->dir_size * icon_info->dir_scale);
+ });
width = g_strdup_printf ("%d", icon_info->symbolic_width);
height = g_strdup_printf ("%d", icon_info->symbolic_height);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]