[gtk+] iconcache: Fix gcc warning
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] iconcache: Fix gcc warning
- Date: Mon, 3 Oct 2011 16:29:19 +0000 (UTC)
commit 78ddecab0cf8be30ad4a9d83b7b8fe4915cff1aa
Author: Benjamin Otte <otte redhat com>
Date: Mon Oct 3 18:03:57 2011 +0200
iconcache: Fix gcc warning
gtk/gtkiconcache.c | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkiconcache.c b/gtk/gtkiconcache.c
index 855b270..932f540 100644
--- a/gtk/gtkiconcache.c
+++ b/gtk/gtkiconcache.c
@@ -91,7 +91,6 @@ _gtk_icon_cache_new_for_path (const gchar *path)
gint fd = -1;
GStatBuf st;
GStatBuf path_st;
- CacheInfo info;
/* Check if we have a cache file */
cache_filename = g_build_filename (path, "icon-theme.cache", NULL);
@@ -129,14 +128,16 @@ _gtk_icon_cache_new_for_path (const gchar *path)
if (!map)
goto done;
- info.cache = g_mapped_file_get_contents (map);
- info.cache_size = g_mapped_file_get_length (map);
- info.n_directories = 0;
- info.flags = CHECK_OFFSETS|CHECK_STRINGS;
-
#ifdef G_ENABLE_DEBUG
if (gtk_get_debug_flags () & GTK_DEBUG_ICONTHEME)
{
+ CacheInfo info;
+
+ info.cache = g_mapped_file_get_contents (map);
+ info.cache_size = g_mapped_file_get_length (map);
+ info.n_directories = 0;
+ info.flags = CHECK_OFFSETS|CHECK_STRINGS;
+
if (!_gtk_icon_cache_validate (&info))
{
g_mapped_file_unref (map);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]