summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-ref-string.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2017-03-15 16:50:28 +0000
committerRichard Hughes <richard@hughsie.com>2017-03-15 16:51:50 +0000
commit48d22d2a6ee82d013252ff534af6e34913c710c9 (patch)
treec2e86bf6c38cf9839669694dc153829ebb45cea4 /libappstream-glib/as-ref-string.c
parent0320abd7ea10e5576d98fd4bf5f16e43ae22a057 (diff)
downloadappstream-glib-48d22d2a6ee82d013252ff534af6e34913c710c9.tar.gz
Fix compile with -Wdiscarded-qualifiers
Some distros helpfully force this on for some reason.
Diffstat (limited to 'libappstream-glib/as-ref-string.c')
-rw-r--r--libappstream-glib/as-ref-string.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libappstream-glib/as-ref-string.c b/libappstream-glib/as-ref-string.c
index 702de91..df0a70a 100644
--- a/libappstream-glib/as-ref-string.c
+++ b/libappstream-glib/as-ref-string.c
@@ -157,9 +157,9 @@ as_ref_string_new_with_length (const gchar *str, gsize len)
if (g_hash_table_contains (as_ref_string_get_hash_safe (), str)) {
hdr = AS_REFPTR_TO_HEADER (str);
if (hdr->refcnt < 0)
- return str;
+ return (AsRefString *) str;
g_atomic_int_inc (&hdr->refcnt);
- return str;
+ return (AsRefString *) str;
}
g_clear_pointer (&locker, g_mutex_locker_free);