[libgsystem] localalloc: Fix extra indirection on gs_strfrev implementation
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgsystem] localalloc: Fix extra indirection on gs_strfrev implementation
- Date: Thu, 29 Aug 2013 21:03:23 +0000 (UTC)
commit 042d5a0eceb6701525b55126c29bea7067e7ec65
Author: Colin Walters <walters verbum org>
Date: Thu Aug 29 17:02:27 2013 -0400
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 files 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]