[pango] Fix warning



commit 8275c1da3db604b67d3ffac5f0143805de1507d9
Author: Behdad Esfahbod <behdad behdad org>
Date:   Wed Aug 29 16:58:52 2012 -0400

    Fix warning

 pango/pango-attributes.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/pango/pango-attributes.c b/pango/pango-attributes.c
index 778a282..4f9b1d5 100644
--- a/pango/pango-attributes.c
+++ b/pango/pango-attributes.c
@@ -70,10 +70,11 @@ PangoAttrType
 pango_attr_type_register (const gchar *name)
 {
   static guint current_type = 0x1000000; /* MT-safe */
+  guint type;
 
   G_LOCK (attr_type);
 
-  guint type = current_type++;
+  type = current_type++;
 
   if (name)
     {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]