From 042d5a0eceb6701525b55126c29bea7067e7ec65 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 29 Aug 2013 17:02:27 -0400 Subject: localalloc: Fix extra indirection on gs_strfrev implementation This was tripping a compiler warning in NetworkManager; the right way to fix it is actually to be less magical in the macro and lose our synthesized *. Instead add it explicitly for each type. --- gsystem-local-alloc.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/gsystem-local-alloc.c b/gsystem-local-alloc.c index 0d404ff..fa4971d 100644 --- a/gsystem-local-alloc.c +++ b/gsystem-local-alloc.c @@ -83,7 +83,7 @@ gs_local_free (void *loc) void **location = loc; \ if (location) \ { \ - type *value = *location; \ + type value = *location; \ if (value) \ function (value); \ } \ @@ -92,55 +92,55 @@ gs_local_free (void *loc) void gs_local_obj_unref (void *loc) { - _gs_local_free(GObject, g_object_unref); + _gs_local_free(GObject*, g_object_unref); } void gs_local_variant_unref (void *loc) { - _gs_local_free(GVariant, g_variant_unref); + _gs_local_free(GVariant*, g_variant_unref); } void gs_local_variant_iter_free (void *loc) { - _gs_local_free(GVariantIter, g_variant_iter_free); + _gs_local_free(GVariantIter*, g_variant_iter_free); } void gs_local_variant_builder_unref (void *loc) { - _gs_local_free(GVariantBuilder, g_variant_builder_unref); + _gs_local_free(GVariantBuilder*, g_variant_builder_unref); } void gs_local_ptrarray_unref (void *loc) { - _gs_local_free(GPtrArray, g_ptr_array_unref); + _gs_local_free(GPtrArray*, g_ptr_array_unref); } void gs_local_array_unref (void *loc) { - _gs_local_free(GArray, g_array_unref); + _gs_local_free(GArray*, g_array_unref); } void gs_local_hashtable_unref (void *loc) { - _gs_local_free(GHashTable, g_hash_table_unref); + _gs_local_free(GHashTable*, g_hash_table_unref); } void gs_local_checksum_free (void *loc) { - _gs_local_free(GChecksum, g_checksum_free); + _gs_local_free(GChecksum*, g_checksum_free); } void gs_local_bytes_unref (void *loc) { - _gs_local_free(GBytes, g_bytes_unref); + _gs_local_free(GBytes*, g_bytes_unref); } void -- cgit v1.2.1