diff options
author | Chris Hall <GMCH@hestia.halldom.com> | 2010-04-17 00:11:12 +0100 |
---|---|---|
committer | Chris Hall <GMCH@hestia.halldom.com> | 2010-04-17 00:11:12 +0100 |
commit | 81e20ffd434953e62f60f1144ab76bebe82d59b6 (patch) | |
tree | 2cc05ed4fc1a9949524a9ecd69289875ce0bc493 /lib/list_util.h | |
parent | 075b751cfe1ae87c416eceb68e01b5f8b9a9e92b (diff) | |
download | quagga-81e20ffd434953e62f60f1144ab76bebe82d59b6.tar.bz2 quagga-81e20ffd434953e62f60f1144ab76bebe82d59b6.tar.xz |
Further warnings removed for gcc 4.2.1.
Diffstat (limited to 'lib/list_util.h')
-rw-r--r-- | lib/list_util.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/list_util.h b/lib/list_util.h index e5a8b4c0..876b7b11 100644 --- a/lib/list_util.h +++ b/lib/list_util.h @@ -242,10 +242,11 @@ struct dl_void_base_pair base_pair(void*) ; (base) = item ; \ } while (0) -extern int ssl_del_func(void** p_this, void* obj, size_t link_offset) ; +extern int ssl_del_func(void* p_this, void* obj, size_t link_offset) + __attribute__((noinline)) ; #define ssl_del(base, item, next) \ - ssl_del_func((void**)&(base), item, _lu_off(item, next)) + ssl_del_func((void*)(&base), item, _lu_off(item, next)) #define ssl_del_head(base, next) \ do { if ((base) != NULL) \ @@ -265,10 +266,10 @@ extern int ssl_del_func(void** p_this, void* obj, size_t link_offset) ; */ #define _sl_p_next(item, off) \ - ( (void**)( (char*)(item) + (off) ) ) + ( (char*)(item) + (off) ) #define _sl_next(item, off) \ - *_sl_p_next(item, off) + *(void**)_sl_p_next(item, off) /*============================================================================== * Single Base, Double Link |