summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2012-08-29 16:58:52 -0400
committerBehdad Esfahbod <behdad@behdad.org>2012-08-29 16:58:52 -0400
commit8275c1da3db604b67d3ffac5f0143805de1507d9 (patch)
tree73314f02d80d6533f5b7971b07b43e3b6e0b7352
parent71d8656e309a49efcb93c9831001d7cb6b979cae (diff)
downloadpango-8275c1da3db604b67d3ffac5f0143805de1507d9.tar.gz
Fix warning
-rw-r--r--pango/pango-attributes.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pango/pango-attributes.c b/pango/pango-attributes.c
index 778a2823..4f9b1d55 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)
{