GitLab repository storage has been migrated to hashed layout. Please contact Infrastructure team if you notice any issues with repositories or hooks.

Commit c17aa5bc authored by Benjamin Otte's avatar Benjamin Otte

use an intermediate cast to void * in g_array_index() to not trigger cast

* glib/garray.h: use an intermediate cast to void * in g_array_index() 
to not trigger cast alignment warnings, fixes #502927.

svn path=/trunk/; revision=6092
parent a26502d7
2007-12-10 Benjamin Otte <otte@gnome.org>
* glib/garray.h: use an intermediate cast to void * in g_array_index()
to not trigger cast alignment warnings, fixes #502927.
2007-12-10 15:08:59 Tim Janik <timj@imendio.com>
* let g_warn_if_fail replace g_assert as discussed here:
......
......@@ -61,7 +61,7 @@ struct _GPtrArray
#define g_array_append_val(a,v) g_array_append_vals (a, &(v), 1)
#define g_array_prepend_val(a,v) g_array_prepend_vals (a, &(v), 1)
#define g_array_insert_val(a,i,v) g_array_insert_vals (a, i, &(v), 1)
#define g_array_index(a,t,i) (((t*) (a)->data) [(i)])
#define g_array_index(a,t,i) (((t*) (void *) (a)->data) [(i)])
GArray* g_array_new (gboolean zero_terminated,
gboolean clear_,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment