[sheepdog] [PATCH RFC] employ gnu99 style of GCC

Liu Yuan namei.unix at gmail.com
Mon Apr 29 16:52:09 CEST 2013


On 04/29/2013 10:25 PM, Hitoshi Mitake wrote:
> Oops, sorry. The above macro doesn't work well with the line like this:
> 		cache->lru_tree = RB_ROOT;
> # 594 of object_cache.c
> 
> I think these sort of initialization should be done with a macro like
> INIT_LIST_HEAD(). Is it okay to implement INIT_RB_ROOT()?

what else useful things can we get besides 'for (int i = 0;...)' from
gnu99 ? We have to pay prices so we need to know if it is worthy of it.

Thanks,
Yuan



More information about the sheepdog mailing list