X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fadt%2Farray.c;h=ed4fb5b4cf2846fcb9dcb6b000637372bb80ba29;hb=e775a978fff2841e0722c47f13545b54d48b8f98;hp=b4299c298363473dab9f6e9dd951400a15ebf524;hpb=1016be771dd3ab629b21ba7d0d8fecd6a5e8eb8b;p=libfirm diff --git a/ir/adt/array.c b/ir/adt/array.c index b4299c298..ed4fb5b4c 100644 --- a/ir/adt/array.c +++ b/ir/adt/array.c @@ -47,7 +47,7 @@ /** * An empty dynamic array descriptor. */ -ir_arr_descr arr_mt_descr = { ARR_D_MAGIC, 0, {0}, 0, {{{0}}} }; +ir_arr_descr arr_mt_descr = { ARR_D_MAGIC, 0, { 0 }, 0, { { 0 } } }; void ir_verify_arr(const void *arr) { @@ -193,6 +193,10 @@ void *ir_arr_resize(void *elts, size_t nelts, size_t eltsize) } #ifdef DEBUG_libfirm +/* forward declarations to avoid warnings */ +size_t array_len(const void *arr); +ir_arr_descr *array_descr(const void *arr); + /** * This function returns the length of a flexible array. * Do NOT use is in code, use ARR_LEN() macro!