diff options
author | Richard Hughes <richard@hughsie.com> | 2017-03-15 16:50:28 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2017-03-15 16:51:50 +0000 |
commit | 48d22d2a6ee82d013252ff534af6e34913c710c9 (patch) | |
tree | c2e86bf6c38cf9839669694dc153829ebb45cea4 /libappstream-glib/as-ref-string.c | |
parent | 0320abd7ea10e5576d98fd4bf5f16e43ae22a057 (diff) | |
download | appstream-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.c | 4 |
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); |