From: Matthias Braun Date: Sat, 11 Oct 2008 19:04:23 +0000 (+0000) Subject: avaoid gcc extensions here X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=728b12ef3143045a787ebc9a75a913335ae15b29;p=libfirm avaoid gcc extensions here [r22711] --- diff --git a/include/libfirm/adt/array.h b/include/libfirm/adt/array.h index 76347ac70..94abd85cc 100644 --- a/include/libfirm/adt/array.h +++ b/include/libfirm/adt/array.h @@ -282,7 +282,7 @@ typedef int (ir_arr_cmp_func_t)(const void *a, const void *b); * @note The differences to bsearch(3) which does not give proper insert locations * in the case that the element is not conatined in the array. */ -static inline __attribute__((const, unused)) int +static inline int ir_arr_bsearch(const void *arr, size_t elm_size, ir_arr_cmp_func_t *cmp, const void *elm) { int hi = ARR_LEN(arr);