From: Behdad Esfahbod Date: Wed, 29 Aug 2012 20:58:52 +0000 (-0400) Subject: Fix warning X-Git-Tag: 1.31.1~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8275c1da3db604b67d3ffac5f0143805de1507d9;p=platform%2Fupstream%2Fpango.git Fix warning --- 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) {